GDELT Web NGrams Search
Use CLI-owned gdelt.web-ngrams; this Skill selects and explains the operation,
without a second download, search, or join implementation.
Before running
- Read
references/tiangong-data-requirement.json.
- Use the caller- or workspace-resolved stable CLI for both describe and run.
Confirm that the capability and required operation contract majors exist.
If unavailable, report the missing capability; do not assume every package
with the same CLI version contains an unreleased candidate extension.
- Read current Discovery Metadata and input/output schemas:
tiangong-ai data describe gdelt.web-ngrams --json
Prepare and run
Select one explicit published UTC minute and literal phrases accepted by the
current input schema. Replace the version placeholders from that same describe
response. This historical minute is a documented sample, not a current-news
default:
{
"schemaVersion": "tiangong.data.run-request.v1",
"capabilityId": "gdelt.web-ngrams",
"capabilityVersion": "<describe.manifest.capabilityVersion>",
"operationId": "search",
"operationVersion": "<describe.manifest.operations[0].operationVersion>",
"input": {
"fileTimestamp": "2026-06-30T20:16:00Z",
"phrases": ["disease", "diseases"],
"match": "any"
}
}
tiangong-ai data run gdelt.web-ngrams search \
--input /absolute/path/to/request.json --json
Keep data, contract, summary, warnings, errors, and receipt together.
Selection and interpretation
- Choose this operation for literal topic-to-article discovery. Switching from
DOC is an explicit change of retrieval method, not an equivalent retry:
do not translate DOC operators into phrases or invent DOC timelines.
- Choose GKG for extracted themes/entities/document tone, Events for coded
events, and Mentions for event-to-document linkage. Use only the layers the
question needs; this Skill does not automatically invoke or join them.
- A successful call covers only the requested file pair, not a complete day or
all monitored news. The caller owns range enumeration and must retain missing
minutes. Do not present a handful of available minutes as full-window coverage.
- Distinguish successful zero matches from blocked file acquisition and partial
validation. For truncation, report returned versus matched versus omitted
records and resolve the limit before claiming exhaustive retrieval.
- Identify documents by
(fileTimestamp, documentId). Matched phrases indicate
presence, not counts: overlapping quadgrams must not be summed into phrase
frequencies. Article links and optional unvalidated image-reference text are
provider metadata, not downloaded or verified content.
- Full-text retrieval, longitudinal aggregation, persistence, and research
evidence admission remain with the caller or Auto Research.
1---2name: gdelt-web-ngrams-search3description: Find news article links containing literal words or short phrases in an explicit GDELT Web NGrams/TOC minute pair through the Tiangong CLI. Use for file-based topic discovery, including an explicitly selected alternative when DOC search is unavailable. Do not use for DOC query operators, sentiment timelines, full article text, relevance ranking, or complete time-range coverage from a single minute.4---5
6# GDELT Web NGrams Search
7
8Use CLI-owned `gdelt.web-ngrams`; this Skill selects and explains the operation,
9without a second download, search, or join implementation.
10
11## Before running
12
131. Read `references/tiangong-data-requirement.json`.
142. Use the caller- or workspace-resolved stable CLI for both describe and run.
15 Confirm that the capability and required operation contract majors exist.
16 If unavailable, report the missing capability; do not assume every package
17 with the same CLI version contains an unreleased candidate extension.
183. Read current Discovery Metadata and input/output schemas:
19
20```bash
21tiangong-ai data describe gdelt.web-ngrams --json
22```
23
24## Prepare and run
25
26Select one explicit published UTC minute and literal phrases accepted by the
27current input schema. Replace the version placeholders from that same describe
28response. This historical minute is a documented sample, not a current-news
29default:
30
31```json
32{
33 "schemaVersion": "tiangong.data.run-request.v1",
34 "capabilityId": "gdelt.web-ngrams",
35 "capabilityVersion": "<describe.manifest.capabilityVersion>",
36 "operationId": "search",
37 "operationVersion": "<describe.manifest.operations[0].operationVersion>",
38 "input": {
39 "fileTimestamp": "2026-06-30T20:16:00Z",
40 "phrases": ["disease", "diseases"],
41 "match": "any"
42 }
43}
44```
45
46```bash
47tiangong-ai data run gdelt.web-ngrams search \
48 --input /absolute/path/to/request.json --json
49```
50
51Keep `data`, `contract`, `summary`, `warnings`, `errors`, and `receipt` together.
52
53## Selection and interpretation
54
55- Choose this operation for literal topic-to-article discovery. Switching from
56 DOC is an explicit change of retrieval method, not an equivalent retry:
57 do not translate DOC operators into phrases or invent DOC timelines.
58- Choose GKG for extracted themes/entities/document tone, Events for coded
59 events, and Mentions for event-to-document linkage. Use only the layers the
60 question needs; this Skill does not automatically invoke or join them.
61- A successful call covers only the requested file pair, not a complete day or
62 all monitored news. The caller owns range enumeration and must retain missing
63 minutes. Do not present a handful of available minutes as full-window coverage.
64- Distinguish successful zero matches from blocked file acquisition and partial
65 validation. For truncation, report returned versus matched versus omitted
66 records and resolve the limit before claiming exhaustive retrieval.
67- Identify documents by `(fileTimestamp, documentId)`. Matched phrases indicate
68 presence, not counts: overlapping quadgrams must not be summed into phrase
69 frequencies. Article links and optional unvalidated image-reference text are
70 provider metadata, not downloaded or verified content.
71- Full-text retrieval, longitudinal aggregation, persistence, and research
72 evidence admission remain with the caller or Auto Research.