Skip to content
AnswerWell geo Documentation

Research · 6 min read · Answerwell

Legislation Structured Data: ELI Identifiers, Force Status and Amendment Relations

How Schema.org Legislation types and properties model identifiers, legal force, dates, and links between acts, aligned with the EU ELI vocabulary.

This page summarises Schema.org’s Legislation vocabulary: types and legislation* properties used to describe statutes, regulations, and related legal instruments in structured data (typically JSON-LD). The vocabulary is grounded in the European ELI (European Legislation Identifier) model; Schema.org points maintainers to EU vocabularies — ELI dataset and tracking issues schemaorg#1156 and schemaorg#2698 for the original design and later extensions.

You need this when publishing legal corpora on the web, building law portals, or linking acts to amendments, applicability dates, and official identifiers so machines can relate one instrument to another without scraping prose.

Legislation and LegislationObject: what to mark up

Section titled “Legislation and LegislationObject: what to mark up”

The central type is Legislation, a CreativeWork that represents a legal instrument. LegislationObject is the companion type for concrete manifestations of legislation (for example a specific consolidated text or an official PDF). In practice, publishers often use Legislation for the abstract act and LegislationObject when the page is about a particular expression or version of that act.

Choose Legislation when the page is about the law itself (title, identifier, status, relationships). Use nested or linked Legislation / LegislationObject nodes when you also expose expressions, versions, or downloadable official texts.

legislationIdentifier: CELEX, NOR, ELI and URN-Lex

Section titled “legislationIdentifier: CELEX, NOR, ELI and URN-Lex”

Publishers ask how to put EU CELEX numbers, national codes, or ELI URIs into structured data. Schema.org defines legislationIdentifier for that purpose.

An identifier for the legislation. This can be either a string-based identifier, like the CELEX at EU level or the NOR in France, or a web-based, URL/URI identifier, like an ELI (European Legislation Identifier) or an URN-Lex.

— Schema.org, legislationIdentifier

The same wording appears on the Schema.org version listing under relevant properties for Legislation.

String identifiers suit national or EU catalogue codes (CELEX, French NOR, and similar). URI identifiers suit resolvable ELI URLs or URN-Lex forms. Pick one canonical identifier per act that matches how your jurisdiction officially cites the instrument, and use ELI rules from the ELI dataset when you publish European acts as HTTP URIs.

legislationJurisdiction and legislationType

Section titled “legislationJurisdiction and legislationType”

legislationJurisdiction scopes where the act applies (country, region, or supranational body). legislationType classifies the form of instrument (directive, regulation, decree, etc., depending on how you map local types). Together with legislationIdentifier, they answer “which law, where, and what kind of act?” — the minimum triangle for a useful legislation graph.

Section titled “Legal force status: InForce, NotInForce and PartiallyInForce”

Readers want to know whether text on a page is still binding. Schema.org separates force (is it legally effective?) from legal value (how authoritative is this expression?).

LegalForceStatus is the type used for force status values. The vocabulary includes explicit status concepts:

Status concept Schema.org type
In effect InForce
No longer in effect NotInForce
Partly in effect PartiallyInForce

On a Legislation node, legislationLegalForce carries the force status. Do not confuse this with legislationLegalValue and LegalValueLevel, which describe how official or authoritative a given expression is.

Section titled “Legal value levels (official vs unofficial text)”

Consolidated or commentary sites often host unofficial HTML. ELI-aware markup distinguishes that from gazette PDFs.

Level (examples in vocabulary) Schema.org type
Authoritative AuthoritativeLegalValue
Definitive DefinitiveLegalValue
Official OfficialLegalValue
Unofficial UnofficialLegalValue

Set legislationLegalValue on the Legislation or LegislationObject that reflects the actual source you are publishing, so consumers do not treat an unofficial consolidation as the definitive gazette version.

Dates: adoption, applicability and version

Section titled “Dates: adoption, applicability and version”

Legal timelines are a frequent source of errors in markup.

Property Typical use
legislationDate Key dates such as signature or publication (as defined on the property page)
legislationDateOfApplicability When obligations start to apply to addressees
legislationDateVersion Dating a specific version or expression of the text

When a directive “applies from” a given day, legislationDateOfApplicability is the property people search for; adoption and publication dates often belong under legislationDate or separate documented date fields on the same type.

Relationships between acts: amend, repeal, transpose, consolidate

Section titled “Relationships between acts: amend, repeal, transpose, consolidate”

National and EU law is a graph. A second family of legislation* properties links one Legislation resource to others:

Relationship Property
Amends another act legislationAmends
Applies another act legislationApplies
Changes another act legislationChanges
Commences another act legislationCommences
Consolidates texts legislationConsolidates
Corrects another act legislationCorrects
Repeals another act legislationRepeals
Transposes (e.g. EU directive into national law) legislationTransposes
Ensures implementation of another act legislationEnsuresImplementationOf

Use the property that matches the legal nature of the link your jurisdiction uses in metadata (amendment vs correction vs consolidation). Each target should ideally be another Legislation node with its own legislationIdentifier so the graph is stable across sites.

Properties in this group were extended or refined in schemaorg#2698; the core ELI alignment is discussed in schemaorg#1156.

Institutional roles: who adopted, implements, or countersigns

Section titled “Institutional roles: who adopted, implements, or countersigns”
Property Role
legislationPassedBy Body that adopted the act
legislationResponsible Body responsible for implementation or stewardship
legislationCountersignedBy Countersigning authority where applicable

These properties answer provenance questions (“who passed this?”) and are useful alongside jurisdiction and type metadata in parliamentary and government portals.

  • Force vs value: Marking unofficial HTML as InForce without UnofficialLegalValue (or equivalent) misstates how courts would treat the text.
  • Broken graphs: Linking legislationAmends to a URL that is not also a Legislation with a stable legislationIdentifier.
  • Wrong identifier scheme: Mixing ELI URI, CELEX, and internal database IDs on different pages for the same act.
  • Missing applicability: Publishing transposition or commencement content without legislationDateOfApplicability or legislationCommences where the underlying act defines those links.
  • Ignoring open issues: Behaviour for edge cases may still be discussed in schemaorg#1156 and schemaorg#2698; check before relying on rarely used properties.
  1. Open a sample act page and confirm embedded data uses @type Legislation or LegislationObject as appropriate; compare property names to the Legislation type page.

  2. Verify legislationIdentifier matches your official scheme (CELEX, NOR, ELI URI, or URN-Lex) using the definition on legislationIdentifier.

  3. For EU or ELI-based publishing, cross-check URI patterns and relation semantics against the EU vocabularies ELI dataset.

  4. Review amendment and repeal links (legislationAmends, legislationRepeals, and related properties) so each target resolves and carries its own identifier.

  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact sentence you are asking about, and we will correct or clarify it.