2009scape wiki knowledge base
The built dataset behind 2009scape-wiki-api: the raw 2009scape game sources as one immutable, searchable SQLite file, served over HTTP-JSON and MCP.
What is in it
knowledge.sqlite3 is the dataset a deployment serves; tests/knowledge.sqlite3 is the
hand-made build the test suite uses, on the same schema. Counted from build
2026.08.15.175358:
| things | 6,033 items, 3,105 npcs, 1,848 scenery, 550 music tracks, 233 shops, 210 locations, 150 quests, 93 slayer tasks, 27 construction rooms |
| variants | 3,192 noted and 220 bound items, plus duplicates, each pointing at what it is a variant of |
| relationships | 35,970: 17,090 located_in, 14,321 drops, 2,264 sells, 892 uses_ammunition, and makes, staffed_by, satisfied_by, requires, assigns, heard_during, yields, part_of |
| prices | 797,362 daily Grand Exchange values over 7,057 items, 2024-06-08 to 2026-08-01 |
Reading it
Plain SQLite with an FTS5 index, so command-line sqlite3 reads it too.
import sqlite3
from huggingface_hub import hf_hub_download
path = hf_hub_download(
"arsalan-anwari/2009scape-wiki-api-data", "knowledge.sqlite3", repo_type="dataset"
)
db = sqlite3.connect(f"file:{path}?mode=ro", uri=True)
print(dict(db.execute("select key, value from meta")))
print(db.execute("select name from entity where type = 'item' limit 5").fetchall())
entityholds one thing each.edgeone relationship between two of them, both with JSON attributes and thesource,source_fileandgame_versionthey came from.entity_aliasresolves retired and alternate names,entity_ftsbacks search.price_historyholds the daily values, andmetasays which build this is: itsdata_version,content_hash,schema_version,game_versionandbuilt_at.
Duplicates
A noted, bound, placeholder or duplicate row points at its canonical entity through
canonical_id and never at another variant, so one hop always lands; visibility says
whether a row is published. The schema is wider than any build so far: what the tables
allow stays empty until a source is read for it.
Full documentation is in the repository.
Where it comes from
The pipeline and this card are Apache-2.0; the game data belongs to the 2009scape project and is covered by its terms.
- Downloads last month
- 445