govuk-orgchart

Extract and query ministerial roles from GOV.UK content via SPARQL.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires rdflib, and includes scripts (resource) components.

What problem does it solve?

This skill solves the difficulty of tracking complex, shifting ministerial roles and government organizational structures by providing a queryable, local knowledge graph of GOV.UK data.

Core Features & Use Cases

  • Structured Org-Chart Querying: Use SPARQL to identify current and past ministerial office holders, their departments, and historical tenures.
  • Cross-Corpus Integration: Join government data with Parliament Members API and Wikidata identifiers to track politicians across different systems.
  • Use Case: Quickly identify who held the position of Chancellor of the Exchequer at a specific time or map the reporting lines within a government department without manual web browsing.

Quick Start

Use the govuk-orgchart skill to query the current holder of the Chancellor of the Exchequer role using the bundled SPARQL script.

Frequently Asked Questions about govuk-orgchart

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

FAQPage Schema
How do I query UK government ministerial roles and department structures using SPARQL?

You can query UK government ministerial roles by using a local RDF knowledge graph built from GOV.UK data. The skill parses N-Quads files and executes SPARQL queries via the rdflib Python library to extract current and historical office holders.

What is the best way to find who held a specific UK government position at a certain time?

Finding historical ministerial office holders is done by querying a structured knowledge graph of GOV.UK content. It supports complex relational lookups across government departments and historical appointments without manual web browsing.

Can I cross-reference GOV.UK ministerial data with Wikidata and Parliament APIs?

You can cross-reference GOV.UK ministerial data by performing cross-corpus joins with Wikidata identifiers and the Parliament Members API. This allows you to track politicians across different organizational systems.

Does this government orgchart skill require Python and rdflib to run?

The skill requires Python with the rdflib dependency installed to function. It relies on rdflib for local N-Quads parsing and SPARQL execution to build and query the government organizational knowledge graph.

How do I map reporting lines within a UK government department from structured data?

Mapping reporting lines within a government department is achieved by executing SPARQL queries against a local RDF graph. This extracts organizational structures and hierarchical relationships directly from GOV.UK content.

What are the limitations of using an RDF knowledge graph for government org chart queries?

The primary limitation is the dependency on local N-Quads parsing and SPARQL execution via rdflib. Users must be familiar with SPARQL query syntax and ensure their Python environment is properly configured.