Wikidata Query Service
Also written: WDQS
A service to query and retrieve structured data from Wikidata, a large, collaborative knowledge base.
The Wikidata Query Service is a tool that lets you ask specific questions about information stored in Wikidata. Wikidata is a free, collaborative knowledge base that anyone can edit. Think of it like a giant, organized database of facts about the world.
For example, you could use the service to ask for a list of all movies directed by a specific person, or all countries that border a particular nation. The service uses a special language called SPARQL to understand your questions and find the exact data you need.
The Wikidata Query Service provides an interface to query the structured data stored in Wikidata using the SPARQL protocol. It enables complex data retrieval and analysis from a collaboratively curated knowledge graph. Users can formulate queries to extract specific entities, properties, and relationships, facilitating research and data integration.
AI agents are being observed interacting with public wikis, including those managed by Wikimedia. This activity highlights the potential for AI to access and process large, structured datasets like Wikidata, raising questions about AI behavior and data integrity on shared platforms.
- OpenAI “rogue” agent activities found on Wikimedia projectsOpenAI · Simon Willison ·
- OpenAI ChatGPT
- OpenAI's research has touched upon AI agents interacting with Wikimedia projects, suggesting an interest in how AI systems can engage with and potentially learn from structured knowledge bases.
- Wikipedia
- A general online encyclopedia with articles on many topics.
- Google Search
- A general web search engine that indexes web pages.
- Database
- A general term for a structured collection of data.
The Wikidata Query Service was developed by the Wikimedia Foundation to provide programmatic access to the data within Wikidata. It is built upon the SPARQL query language. Source ↗
Visit the Wikidata Query Service website. Try a simple query like 'SELECT ?item ?itemLabel WHERE { ?item wdt:P31 wd:Q11424. SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } LIMIT 10' to see a list of items that are instances of 'movie'. This demonstrates how to retrieve specific types of data.
The Playbook: reusable how-tos, prompts, configs and tips pulled out of the news.
- PromptRole-play a student struggling with math for AI tutor simulationSimulate a student's math struggles and uncertainty for AI tutor evaluation. · 5 min
- TemplateReusable workflow templates for healthcare teamsTeams can create and share templates for common workflows like documentation or prior authorizations. · 15 min
- TemplateTemplate for building an AI tool tailored to your workA structured approach to defining and building a custom AI tool for specific business needs. · 15 min
- TemplateEvals CSV prompt list for agent skillsA CSV file template for listing prompts used in evaluating agent skills. · 20 min
- HeuristicDouble coding agent task completion with docs linksProviding coding agents with a documentation link significantly increases their task completion rate. · 2 min
Questions people ask
- What is Wikidata?
- Wikidata is a free, collaborative, multilingual knowledge base hosted by the Wikimedia Foundation. It acts as central storage for the structured data of its Wikimedia sister projects including Wikipedia, and can be edited by volunteers.
- What is SPARQL?
- SPARQL is a query language for databases, designed for efficiently retrieving and manipulating data stored in RDF format. It is the standard language used to query Wikidata.
First seen on Subvolts Oct 7, 2026. Updated Oct 13, 2026. Written by an AI model from the items above and reviewed against them weekly; report an error.

