Shard schema
Constituency shard
A UK Parliamentary constituency. Carries current MP, geographic context, mention contexts in records, and recent records referencing the constituency.
This page is the field reference for developers and AI clients. If you came here looking for a constituency, browse the constituency index instead.
Required fields
6
Optional fields
7
Dialect
JSON Schema draft 2020-12
Version
Required fields
Every shard validating against constituency@0.1.0 ships these fields. Provenance lines show where each value comes from — the load-bearing column for the structured-evidence promise.
-
slugstring<slug>URL-safe constituency identifier.
Provenance: Derived from displayName; stable across boundary review unless the constituency is abolished.
-
displayNamestringOfficial constituency name.
Provenance: OS Boundary-Line; cross-checked against Members API constituency reference.
-
officialIdstringONS GSS code (e.g. E14001392).
Provenance: ONS geography portal.
-
countryenum (4 values)Nation.
EnglandScotlandWalesNorthern Ireland
Provenance: ONS geography portal.
-
canonicalUrlstring<URL>Constituency page on members.parliament.uk.
Provenance: Constructed from the Members API constituency reference via the documented URL template.
-
provenanceobjectProvenance for the constituency snapshot.
Provenance: Emitted by intake at admission.
Optional fields
Present where the source carries the value or the derivation succeeds. Code consuming this schema should treat them as nullable.
-
regionstring · optionalRegion (England) or null (Scotland / Wales / NI).
Provenance: ONS geography portal.
-
boundaryReviewstring · optionalBoundary-review generation this geometry belongs to.
Provenance: OS Boundary-Line release tag.
-
currentMPobject · optionalCurrent MP.
Provenance: Members API latest constituency membership.
-
recordsMentioningCountinteger · optionalRecords mentioning this constituency.
Provenance: Count over records whose body text mentions the constituency name, derived by the geoparser at shard-build time.
-
topMentionContextsarray<object> · optionalMost-common record-types in which this constituency appears.
Provenance: Aggregated from the record-type field of records mentioning the constituency.
-
recentRecordsarray<object> · optionalRecent records mentioning this constituency.
Provenance: Geoparser-derived constituency matches in record bodies, ordered by published date.
-
outboundSourcesarray<object> · optionalExternal source links.
Provenance: Curated at admission.
Related schemas
Entities referenced by this shard kind. A constituency shard's entities[] / nested references resolve to shards of these kinds.
Versioning + dialect
Each planned schema follows semver. Patch bumps are additive and backwards-compatible. Minor bumps may add required fields or change validation rules. Major bumps will use a new URL path once canonical files are published.
Published structured data will declare its version in a $schema field. AI clients should respect that version when files become available.