What problem does it solve?
This skill solves the difficulty of programmatically accessing, validating, and querying the official UK statute book, which is often locked behind complex content negotiation or restricted SPARQL endpoints.
Core Features & Use Cases
- Linked Data Retrieval: Fetch Acts of Parliament, Statutory Instruments, and devolved legislation as RDF/XML or Turtle.
- Local SPARQL Materialization: Create a local, searchable SPARQL endpoint from a collection of fetched legislation slices to bypass invitation-only restrictions.
- Validation: Use ShEx shapes to ensure the integrity and structure of retrieved legal data.
- Use Case: A researcher needs to analyze all amendments to a specific Act of Parliament; this skill allows them to fetch the relevant RDF, materialize it locally, and run SPARQL queries to map the legislative history.
Quick Start
Use the tna-legislation skill to fetch the Leasehold and Freehold Reform Act 2024 as RDF data by running the provided fetch script with the appropriate legislative slug.