parliament-thesaurus

Crawl the UK Parliament Thesaurus API and normalize it into N-Quads.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

The UK Parliament Thesaurus is a critical SKOS concept scheme for subject-tagging parliamentary records, but it is only available via a legacy Linked Data API that lacks modern SPARQL support and proper data hygiene. This skill solves the problem of data accessibility and quality by crawling, normalizing, and re-hosting this dataset as a clean, usable N-Quads file.

Core Features & Use Cases

  • Automated Crawling: Efficiently traverses the paginated legacy Linked Data API to capture over 140,000 term resources.
  • Data Normalization: Automatically applies RDF types and language tags to labels, ensuring the dataset is ready for immediate use in SPARQL stores like Oxigraph.
  • Use Case: Researchers and developers can use this skill to build a local SPARQL store for faceted UI development, subject-tagging parliamentary feeds, or integrating parliamentary vocabulary into broader knowledge graphs.

Quick Start

Use the parliament-thesaurus skill to perform a full crawl of the thesaurus dataset and generate the normalized N-Quads file.

Frequently Asked Questions about parliament-thesaurus

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

FAQPage Schema
How do I bulk-export UK Parliament RDF data into a local SPARQL store?

To bulk-export UK Parliament RDF data, this skill crawls the legacy Linked Data API and normalizes over 140,000 term resources into a structured N-Quads file ready for immediate SPARQL store integration.

What is the UK Parliament Thesaurus used for in linked-data applications?

The UK Parliament Thesaurus is a SKOS concept scheme used for subject-tagging parliamentary records. It enables faceted browsing and vocabulary integration into broader knowledge graphs for researchers and developers.

How do I normalize SKOS language tags and RDF types from a legacy API?

You normalize SKOS language tags and RDF types by applying automated data hygiene rules during the crawling process, ensuring labels are properly tagged before exporting the dataset as N-Quads.

Does this Parliament thesaurus crawl work with Oxigraph and rdflib?

Yes, the crawl works with rdflib and outputs normalized N-Quads data that is ready for immediate use in SPARQL stores like Oxigraph, supporting faceted UI development and parliamentary feeds.

Why does crawling large-scale RDF datasets require a resumable process?

Crawling large-scale RDF datasets requires a resumable process to handle over 140,000 paginated term resources efficiently, preventing data loss and ensuring complete extraction from the legacy API without restarting.