UK Legislation and Whole-Law OKF documentation
This is the maintained documentation spine for the UK Legislation OKF, its legislation-specific Explorer behaviour and the additive Whole-Law federation.
Current publication
The current published Legislation/Whole-Law bundle is v0.4.0, published on 3 November 2026. Its release receipt binds the exact commit, archive and digest. It uses the OKF 0.2 specification. The legislation catalogue snapshot is dated 11 July 2026 and the Whole-Law source-access snapshot is dated 25 July 2026.
Bundle version v0.4.0 and format version OKF 0.2 are independent. The July source snapshots remain explicit; the November release does not imply a November refresh of upstream legal data.
Choose your route
| If you need to… | Start here |
|---|---|
| open the pack and find an Act, instrument or provision | Getting started |
| learn the interface through worked examples | Illustrated persona manual |
| understand who the pack serves and what success means | Personas and user journeys |
| follow guidance tailored to your role | Role guides |
| design an agent that answers with passage-level provenance | Agent research guide |
| understand completeness, ontology and official access methods | Architecture and data model |
| understand relationship composition | Relationships |
| author or consume directed YAML-LD assertions | Rich relationship semantics |
| inspect official effects and model-assisted enrichment | Effects and enrichment |
| understand Whole-Law sources, rights and access state | Source coverage |
| assess an AI answer or the Explorer itself | Evaluation and quality |
| refresh the corpus, evidence or documentation | Maintenance guide |
| navigate all researched legal-source families | Whole-Law documentation |
Documentation layers
The spine keeps these concerns separate:
- Task guidance — how a person finds and verifies legislation.
- Persona evidence — whose needs and risks the interface serves.
- Technical contract — ELI, Schema.org, CLML, YAML-LD, federation and provider-datapack contracts.
- Agent contract — progressive discovery and proposition-level provenance.
- Authority and coverage — official, derived and model-assisted relationships; source access and constraints.
- Assurance — evaluation questions, scoring, validation and immutable audit evidence.
Stable public entry points
| Publication | Repository | Canonical descriptor | Declared raw_subpath |
Release/archive fallback |
|---|---|---|---|---|
| UK Legislation | GitHub | root descriptor | bundle |
releases |
| UK Whole-Law | GitHub | federation descriptor | bundle/whole-law |
releases |
The maintained documentation is published at
https://chris-page-gov.github.io/okf-uk-legislation/docs/. The legislation
and Whole-Law evaluation routes are /evaluation/ and
/whole-law/evaluation/ beneath the same publication root.
Keep these source and worked-example routes available without path guessing:
- legislation.gov.uk and its official data/API documentation;
- the official data.gov.uk API documentation;
- the GOV.UK CKAN example descriptor;
- the current OKF Foundry authoring guide.
The original combined repository README and documentation remain at the compatibility site. It preserves the historical authoring material, while the current workflow is the OKF Foundry authoring guide. The preserved Explorer manual and GOV.UK CKAN example remain available alongside it.
Boundaries
The pack is a legislation discovery and statutory-text research aid. It is not a complete case-law database, citator, substitute for checking commencement and territorial extent, legal advice or qualified practitioner assurance. Topic labels are navigation aids rather than official legal classifications.
Use legislation.gov.uk and its official data/API documentation for authoritative source material.