The Wikidata Query Skill empowers AI agents to translate plain English questions into complex SPARQL queries to extract structured data from Wikidata.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install query-wikidata
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install query-wikidata using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Wikidata Query Skill is a sophisticated tool designed for developers and researchers who need to tap into the world's largest collaborative knowledge base. By integrating this skill into your workflow, you enable an AI agent to navigate the complex web of Q-numbers and P-numbers that define Wikidata's architecture. This Openclaw Skills component handles the entire lifecycle of data retrieval, from identifying the correct entity identifiers to executing optimized SPARQL queries.
Beyond simple data fetching, the skill excels at synthesizing information into human-readable formats. It bridges the gap between raw semantic data and actionable insights by providing automated label resolution and high-quality visualization options. Whether you are building a research assistant or a data-driven automation pipeline, this skill ensures your agent has access to real-time, property-rich information across millions of topics.
To utilize the Wikidata Query Skill, you must ensure your agent is configured to send the mandatory User-Agent header to avoid rate limiting. Use the following structure for manual interactions with the endpoint:
# Standard query execution via curl
curl -s -G "https://query.wikidata.org/sparql" \
-H "Accept: application/sparql-results+json" \
-H "User-Agent: Claude-Code-Wikidata-Skill/1.0" \
--data-urlencode "query=[SPARQL_QUERY_HERE]"
The skill utilizes the standard Wikidata RDF structure. Data is organized through the following taxonomy:
| Component | Namespace | Description |
|---|---|---|
| Entities | wd:Q### | Unique identifiers for items (e.g., Spike Lee is Q51566) |
| Properties | wdt:P### | Direct relationship claims (e.g., P57 for Director) |
| Labels | rdfs:label | Human-readable names resolved via the Label Service |
| Results | application/json | The default machine-readable response format |
Loading
A powerful integration that transforms natural language questions into complex SPARQL queries to extract and visualize structured data from DBpedia.

A forensically-aware framework for analyzing, securing, and remediating Linux hosts during security events using distribution-aware commands.

MemoryLayer is a high-performance semantic memory infrastructure that enables AI agents to store and retrieve relevant information with 95% token savings.

A specialized utility for converting LaTeX mathematical formulas within Markdown files into production-ready Word and HTML documents.

An advanced AI-driven assistant designed for technical support, database administration, and automated RDF Views generation for OpenLink Virtuoso Servers.

A dialectical AI reviewer that validates implementation completeness against requirements through rigorous adversarial logic.








































