wikidata

Query Wikidata SPARQL for UK political figure entity resolution.

1|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/danbri/forgetmenot --skill wikidata-danbri
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wikidata
Source: https://github.com/danbri/forgetmenot/tree/main/skills/wikidata
Command: npx skills add https://github.com/danbri/forgetmenot --skill wikidata-danbri

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the challenge of cross-referencing UK Parliament records with external datasets by providing a direct interface to the world's largest open knowledge graph.

Core Features & Use Cases

  • SPARQL Querying: Execute complex queries against the Wikidata knowledge graph to find relationships between entities.
  • Entity Lookup: Retrieve full Linked-Data JSON for any QID to inspect claims, labels, and cross-corpus identifiers.
  • Label Search: Quickly resolve human-readable names to Wikidata QIDs for efficient data joining.
  • Use Case: Use this to map a UK MP to their corresponding Wikidata entry to discover their international identifiers, party history, or other linked biographical data.

Quick Start

Use the wikidata skill to search for the QID of Keir Starmer and then retrieve his full entity details.

Frequently Asked Questions about wikidata

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I resolve UK Parliament records to Wikidata QIDs for data integration?

You can resolve UK Parliament records to Wikidata QIDs by using label search to match human-readable names to unique identifiers, then retrieving full Linked-Data JSON to inspect cross-corpus identifiers and linked biographical data.

Can I execute SPARQL queries against the Wikidata knowledge graph to find relationships between political entities?

Yes, you can execute complex SPARQL queries against the Wikidata knowledge graph to perform graph traversals and discover relationships between UK political figures and global entities.

Do I need a User-Agent header to query the Wikidata SPARQL endpoint?

Yes, a polite User-Agent header is required for all requests to the Wikidata Query Service to ensure compliance with service policies and maintain access to the endpoint.

What's the best way to map a UK MP to their corresponding Wikidata entry?

The best way to map a UK MP to Wikidata is to search for their name to find the matching QID, then retrieve the full entity details to discover international identifiers, party history, and other linked data.

Does this Skill support complex graph traversals for cross-dataset integration?

Yes, this Skill supports complex graph traversals and identifier lookups to bridge Parliament-specific records with global knowledge bases, facilitating cross-dataset integration and entity resolution.

Are there limitations when using Wikidata for UK political figure entity resolution?

Limitations include dependency on Wikidata's coverage accuracy for UK political figures and the requirement to always send a polite User-Agent header to avoid being blocked by the Wikidata Query Service.