2009scape-wiki-api-data
收藏资源简介:
2009scape wiki知识库数据集将2009scape游戏中的物品、NPC、商店、掉落表、任务、位置等原始数据整理为一个不可变的、可搜索的SQLite数据库。该数据集通过HTTP JSON API和MCP服务器提供服务,适合用于游戏信息检索、AI代理和Wiki前端等场景。数据完全从源码离线构建,无人为编辑,每个版本对应一个独立的SQLite文件。当前构建为种子规模,主要用于端到端API测试,尚未覆盖全部游戏内容。数据集包含两个文件:主文件knowledge.sqlite3和测试文件tests/knowledge.sqlite3,两者共享相同的数据库模式。模式包括entity(实体)、edge(关系)、entity_alias(别名)、entity_fts(全文搜索索引)、price_history(价格历史)和meta(元数据)等表。其中meta表记录data_version、content_hash、schema_version、game_version、built_at等关键版本信息。数据来源包括2009scape服务器配置和代码、大交易所价格快照以及少量手工编写的覆盖文件。遵循Apache-2.0许可证。
The 2009scape wiki knowledge base dataset organizes raw data such as items, NPCs, shops, drop tables, quests, locations, etc., from the 2009scape game into an immutable, searchable SQLite database. It is served via HTTP JSON API and MCP server, suitable for game information retrieval, AI agents, and Wiki frontends. Data is built offline from source code without manual editing, each version corresponds to an independent SQLite file. Current build is a seed scale, mainly for end-to-end API testing, not covering all game content. The dataset includes two files: main file knowledge.sqlite3 and test file tests/knowledge.sqlite3, sharing the same database schema. Schema includes tables such as entity, edge, entity_alias, entity_fts, price_history, and meta. The meta table records key version info like data_version, content_hash, schema_version, game_version, built_at. Data sources include 2009scape server configuration and code, Grand Exchange price snapshots, and a small number of hand-written override files. Licensed under Apache-2.0.
数据集概述
2009scape wiki knowledge base 是一个基于 SQLite 构建的知识图谱数据集,源自 2009scape 游戏服务器的原始数据(物品、NPC、商店、掉落表、任务、地点等),并通过自动化流水线生成,支持 HTTP JSON API 和 MCP 服务器运行时查询。
基本信息
| 属性 | 值 |
|---|---|
| 许可证 | Apache-2.0 |
| 语言 | 英语 |
| 标签 | 2009scape, runescape, knowledge-graph, sqlite, mcp |
| 数据规模 | n<1K |
| 数据查看器 | 不可用 |
数据内容与结构
数据集包含一个主要文件 knowledge.sqlite3,以及一个供测试使用的独立构建 tests/knowledge.sqlite3,两者共享相同 schema。
数据表结构如下:
| 表名 | 内容 |
|---|---|
entity |
每个物品、NPC、商店、任务或地点一行,包含 slug、描述、图标、JSON 属性和来源 |
edge |
实体间关系(掉落、出售、员工、奖励、使用弹药、位于、属于等) |
entity_alias |
退役 slug、缩写和别名,确保名称迁移后仍可解析 |
entity_fts |
FTS5 索引,支持搜索和近似名称匹配 |
price_history |
每个物品每日大交易所价格,日期为 ISO-8601 格式 |
meta |
构建元数据(版本、哈希、schema 版本、游戏版本、构建时间) |
数据特性:
- 变体(如注记、绑定、占位符或重复项)通过
canonical_id指向其规范实体,visibility字段标明发布或隐藏及原因。 - 每行记录
source、source_file和game_version,确保答案可追溯。
构建元数据
meta 表包含五个关键字段,用于区分不同构建:
| 键 | 含义 |
|---|---|
data_version |
构建标识,API 报告和缓存依据 |
content_hash |
内容哈希,内容相同则值相同 |
schema_version |
表结构版本 |
game_version |
游戏源数据版本 |
built_at |
构建时间 |
数据来源与使用
- 来源:2009scape 服务器配置与代码、大交易所价格快照及少量手写覆盖数据。
- 构建方式:完全离线且从源数据自动生成,无手工编辑。
- API 集成:服务在运行时拉取此数据集,通过 HTTP JSON 接口和 MCP 服务器提供查询。
- 当前状态:项目仍在开发中,当前构建为种子规模,主要用于端到端 API 测试,未覆盖完整游戏内容。
使用示例
可通过 sqlite3 直接读取该文件(支持 FTS5 索引),无需安装额外依赖。读取 meta 可查看构建版本信息,查询 entity 表可获取实体数据。




