Standards and validation
Versioned profile
The machine-readable standards applicability
register distinguishes normative, projection,
source-native, conditional, reference-only and not-applicable use. The
core pins are:
- Core 0.3 uses the central current and historical standards register at https://github.com/chris-page-gov/okf-explorer/blob/main/docs/okf-standards.md, with specification revision 527e81aff55992be21507e97004286789126f88c. The implementation date is 24 November 2026; announcement date 18 November 2026.
- The frozen Whole-Law domain applicability register preserves the historical
Core 0.2 source profile at repository revision
3fcbb9f828c2f23d109c855ee403c3a4c81f3a96; - YAML 1.2.2;
- the 23 July 2026 YAML-LD 1.0 Working Draft;
yaml-ld==1.1.22, with the local standards checkout and test-manifest revisions recorded in the register;- JSON-LD 1.1/API/Framing with
PyLD==2.0.4; - RDF 1.1, RDF Dataset Canonicalization 1.0, SHACL 1.0, JSON Schema 2020-12 and CSVW.
The repository-controlled namespace is
https://chris-page-gov.github.io/okf-uk-legislation/profile/whole-law/v1#.
It is intentionally versioned and does not claim an unregistered w3id.org
identifier. A later permanent government-domain migration is a separate,
documented compatibility decision.
Authored and generated representations
okf-bundle.yamlld is the authored semantic control publication. The builder emits
okf-bundle.jsonld and canonical N-Triples-compatible
okf-bundle.ttl from the same governed values. Validation exercises YAML-LD
expansion, JSON-LD compaction, flattening and framing, RDF conversion,
RDF-to-JSON-LD-to-RDF round-trip, three-way graph isomorphism and canonical
dataset-digest equivalence. SHACL validates all three complete semantic
descriptor graphs and the example/entity contract. The bounded descriptor
contains the Federation, its hash-bound SourceRegister contract node and a
link to the relationship-authoritative YAML-LD manifest. Separate bounded
JSON-LD shards materialise matching direct triples and evidence-bearing
rdf:Statement/okf:RelationshipAssertion nodes without forcing all 365,786
works into the startup descriptor graph. A separately generated runtime
manifest lists active default planes, opt-in historical planes, local-route
assertion arrays and a hash-bucket route locator for bounded Reader hydration.
The
deterministic conformance receipt
separately records exhaustive source-row validation and direct/reified
reconciliation for every active and historical semantic assertion shard.
These checks establish conformance of this publication to its declared basic profile. They do not claim that the selected third-party processor passes every upstream processor test. The upstream YAML-LD, JSON-LD API and Framing test suites remain processor-level dependencies; their exact revisions and the subset exercised here are retained as release evidence.
Legal and catalogue projections
ELI, ELI-DL/ELI-I, ECLI, Akoma Ntoso/LegalDocML, CLML, LRM/WEMI, PROV-O, Dublin Core Terms, DCAT 3/DCAT-AP, SKOS, OWL-Time, Web Annotation, CiTO, ODRL, DQV and Schema.org Legislation are applied only in the roles declared by the register. Conditional mappings are not emitted when source evidence does not support them. LegalRuleML is conditional on reviewed rule extraction and LKIF remains reference-only.
Known transport exception
GitHub Pages currently serves .yamlld as application/octet-stream, not
application/ld+yaml. The document remains semantically conformant, but this
deployment is not described as transport-conformant. JSON-LD and release
downloads are universal fallbacks; Explorer may safely content-sniff a
declared .yamlld route. The exception remains open until a permanent host can
set the registered media type.