Dataset Viewer
The dataset viewer is not available for this subset.
Cannot get the split names for the config 'default' of the dataset.
Exception: SplitsNotFoundError
Message: The split names could not be parsed from the dataset config.
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 286, in get_dataset_config_info
for split_generator in builder._split_generators(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 90, in _split_generators
inferred_arrow_schema = pa.concat_tables(pa_tables, promote_options="default").schema
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pyarrow/table.pxi", line 6319, in pyarrow.lib.concat_tables
File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Must pass at least one table
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/split_names.py", line 65, in compute_split_names_from_streaming_response
for split in get_dataset_split_names(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 340, in get_dataset_split_names
info = get_dataset_config_info(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 291, in get_dataset_config_info
raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Geopolitical Conflict Graph Dataset
Temporal knowledge graph of geopolitical conflict events between Iran, USA, and Saudi Arabia. Built from GDELT data using the geopolitical pipeline.
Contents
| File | Size | Description |
|---|---|---|
kuzu_irn_usa_sau.tar.gz |
78 MB | Kuzu graph database (1M events) |
lancedb_irn_usa_sau.tar.gz |
3.1 GB | LanceDB vector store (1024-dim BGE-M3 embeddings, split into 500MB parts) |
Reassembling LanceDB (split parts)
The LanceDB file is split into 500MB chunks. Reassemble before extracting:
cat lancedb_part_* > lancedb_irn_usa_sau.tar.gz
tar -xzf lancedb_irn_usa_sau.tar.gz
Database Schema
The Kuzu graph has 3 node tables and 3 relationship tables:
Nation(code, name, region)
Event(event_id, cameo_code, quad_class, goldstein, tone, valid_from, source_url, ...)
Leader(id, name, nation_code, role)
(Nation)-[ACTOR_IN]->(Event)
(Event)-[ACTOR_IN_TARGET]->(Nation)
(Leader)-[LeaderOf]->(Nation)
Quickstart
1. Extract the databases
tar -xzf kuzu_irn_usa_sau.tar.gz
tar -xzf lancedb_irn_usa_sau.tar.gz
2. Install dependencies
pip install kuzu lancedb
3. Query the graph (Kuzu)
import kuzu
db = kuzu.Database("kuzu_test_irn_usa_sau", read_only=True)
conn = kuzu.Connection(db)
# Count events
result = conn.execute("MATCH (e:Event) RETURN count(*) AS cnt")
print(result.get_next()[0])
# Find events between Iran and USA
result = conn.execute("""
MATCH (a:Nation {code: 'IRN'})-[:ACTOR_IN]->(e:Event)-[:ACTOR_IN_TARGET]->(b:Nation {code: 'USA'})
RETURN e.event_id, e.valid_from, e.cameo_code, e.goldstein
LIMIT 10
""")
while result.has_next():
print(result.get_next())
4. Search embeddings (LanceDB)
import lancedb
db = lancedb.connect("lancedb_test_irn_usa_sau")
table = db.open_table("geopolitical_events")
print(f"Total vectors: {table.count_rows()}")
# Search similar events
results = table.search(query_vector).limit(10).to_list()
Data Source
Events sourced from GDELT Project, filtered for IRN-US-SAU interactions. Updated every 15 minutes.
Citation
If you use this dataset, please mention "geopolitical" and link back to this repository.
- Downloads last month
- 21