
An ontology records how things relate and how each relationship should be read. Once it is written down, people and AI tools can follow the same route through the material each time.
Most of what an organisation knows sits in documents. The connections between them usually sit in people’s heads: which definition governs a word, which exception qualifies a rule, which earlier decision was distinguished and why. Each new reader, and each AI tool, has to work those connections out again.
Three pieces of structure make the connections explicit. An index names each thing and says where to find it. A graph records which things connect. An ontology sets out the kinds of thing and connection the graph may hold, and what each connection means.
Where things are
An index lists each thing under the names people look for, with a stable reference to it. It gives a reader, or a search, somewhere to start. Each entry stands alone: the index records nothing about how one section bears on another.
- Acceptable quality
- CGA s 6 · CGA s 7 · CGA s 17
- Contracting out
- FTA s 5C · FTA s 5D · CGA s 43
- Definitions
- FTA s 2 · CGA s 2
- Misleading conduct
- FTA s 9 · FTA s 13
- Offences
- FTA s 40
- Remedies
- FTA s 43 · CGA s 16 · CGA s 18
- Time limits
- FTA s 43A
Related terms overlap with these. A taxonomy is a hierarchy of categories. A controlled vocabulary fixes the words used for things. A knowledge graph is a network of recorded facts, which may or may not follow a formal ontology. A product described as having an ontology may hold only a taxonomy or a search index. The test is whether it records the relationships, and the rules for reading them.
A repeatable route
Search depends on the words a person happens to use. Two people asking the same question in different words can start in different places and finish with different material.
An index and a graph remove that variation. Start at section 9 of the Fair Trading Act, follow the connections the ontology marks as necessary, and the same sections come back each time with the same reasons attached. The route is written down, so anyone can retrace it.
A written route can also be challenged. If a connection is wrong, someone can find it, dispute it and correct it. The correction then carries into every later search. A wrong connection that nobody corrects is repeated just as reliably.
Why this matters for AI
A large language model, or LLM, learns associations between words from the text it was trained on. When it answers a question, it infers afresh how the pieces of the question relate. Those inferences are not kept as a record that a reader can inspect and correct for next time. The same question can produce a different answer on another occasion or from another model.
An ontology moves the decision about relationships out of the model and into the application around it. A retrieval rule, written in advance, says which connections to follow. The application runs the rule, collects the records and passes them to the model together with the meaning of each connection. The model’s task is then to read and explain what it has been given.
Because the rule is code, it runs the same way for every question, every user and every model. Its output can be logged, checked and compared over time.
start the section found by search
follow uses a definition in
has a qualification in
refers to (either direction)
depth one stepThe application runs this rule. The model plays no part in choosing what to fetch.
FTA s 9 uses a definition in FTA s 2
MeaningThe first section uses a word that the second section defines. Apply the definition, subject to the context of the first section.
Recorded conditionDetermine whether the conduct is in trade; do not treat the definition as a finding of fact.
FTA s 9 has a qualification in FTA s 5D
MeaningThe second section can limit how the first applies. Read the second before relying on the first. It applies only if its own conditions are met.
Recorded conditionReverse research link. Section 5D names section 9; it does not automatically validate any exclusion clause.
FTA s 5D refers to FTA s 9
MeaningThe first section names the second in its own words. Read the second section wherever the first depends on it.
Recorded conditionThe reference is part of a conditional exception.
FTA s 40 refers to FTA s 9
MeaningThe first section names the second in its own words. Read the second section wherever the first depends on it.
Recorded conditionThis exclusion is from section 40(1); it is not a statement that the same facts cannot engage another provision.
Built from the sample records, with no model call. Run against this collection, the rule returns these 4 connections, with the same meanings and conditions, every time.
Retrieval on its own supplies passages of text. It does not tell the model that one passage is an exception to another, or which version was in force. The ontology supplies that structure. The same structure can check the model’s answer afterwards: whether each record it cites was supplied, and whether it dealt with a qualification recorded against a section it relied on. Sam Redlich describes this division of labour as neuro-symbolic. A symbolic structure holds the legal content. The language model reads, drafts and explains.
The model can still misread good material. A wrong connection will mislead it consistently. The structure narrows where the model can go wrong and keeps a record of what it was shown. How retrieval supplies context to a model sets out the steps in more detail.
No gold standard
Every ontology is a set of choices. Someone decides what counts as a thing: an Act, a section, a subsection or a single obligation. Someone decides which connections to record, what to call them and where to stop. Those choices shape what a search returns and how an AI tool reads it.
Some connections are in the text. Section 5D(1) of the Fair Trading Act names section 9. Anyone recording the Act’s cross-references will record that link. Many of the connections that make a graph useful are interpretations: a reader’s view that one provision qualifies another, or that two provisions should be read together. Of the 30 connections in our sample, 9 are express references in the legislation. The other 21 are our reading.
What the legislation states
Section 9 names no other section. Two sections name it: section 5D, which allows parties in trade to contract out in limited circumstances, and section 40, which makes contraventions of Parts 1 to 4A an offence and lists section 9 among the exceptions. A reader who starts at section 9 and follows only its own words reaches no other section.
- In the textFTA s 5D refers to FTA s 9
- In the textFTA s 40 refers to FTA s 9
Across the whole sample: 9 connections are express references in the legislation and 21 are editorial.
The labels carry a view as well. Our sample records that section 9 “has a qualification in” section 5D, with the conditions on which section 5D applies. A label such as “is excluded by” would tell a reader, or an AI tool, that a contract term defeats the claim. Choosing between those labels takes a position on the law.
There is no single correct ontology of a body of law. Several published standards for structuring legal material exist side by side, each built for a different purpose.
| Standard | What it structures | Status |
|---|---|---|
| Akoma Ntoso | Legal documents, including legislation | OASIS Standard, 29 August 2018 |
| LegalRuleML Core | Legal rules and norms | OASIS Standard, 2021 |
| LKIF Core | Legal concepts | Ontology library from the European ESTRELLA project, first released 2007 |
| ELI | Identifiers for legislation | European identifier introduced by Council conclusions in 2012 |
| ECLI | Identifiers for court decisions | European identifier introduced by Council conclusions in 2011 |
New Zealand’s Parliamentary Counsel Office publishes legislation as XML defined by its own document type definitions. Its XML data page links to a guide to them.
Treat any ontology as a position that can be challenged. A well-kept one records who made each connection, on what basis and when. A reader can then dispute a particular link without discarding the whole structure.
Hard problems in law
Law is harder to model than most subjects. Sam Redlich’s account of the hard problems of legal ontology (June 2026) sets out the structural reasons. Each of them shows up in our small sample.
ExceptionsA legal conclusion can be withdrawn when a new fact arrives.
A rule applies unless an exception does, and the exception may have exceptions of its own. Many ontology tools were designed for facts that stay true once stated, so they handle a conclusion that must later be withdrawn poorly.
Our sample records that section 9 has a qualification in section 5D. Whether the qualification applies depends on the facts and on the requirements in section 5D(3). The graph points to those requirements and leaves the question open.
Open textureSome legal words have no fixed boundary until someone with authority draws one.
H L A Hart described this as the open texture of law, using a rule against vehicles in a park. A car is plainly covered. Whether a bicycle is covered remains unsettled until it is decided.
Section 5D(3)(d) of the Fair Trading Act requires that it be “fair and reasonable” for the parties to be bound by a contracting-out term. Section 5D(4) lists matters a court must take into account. A sound ontology records the test and the listed matters, and leaves the answer to the person deciding.
TimeThe question is often which rule applied on a particular date.
Statutes come into force, are amended and are repealed. A contract term operates until it is varied. A legal model has to record when each record had effect, and that has to be designed in from the start.
Section 5D was inserted into the Fair Trading Act on 17 June 2014. A question about an agreement made before then needs the earlier law. Our sample does not establish the dates on which its provisions applied.
Obligations and breachMuch of the law concerns what follows once a duty is broken.
Law is built from obligations, permissions and prohibitions. Many of the questions that matter arise after a breach: what remedy follows, what can be put right and by when. Formal logics of obligation have well-known difficulties with exactly those cases.
Our sample’s remedy links point to where relief may lie. Whether relief follows depends on findings the graph cannot make.
MaintenanceThe law changes, and the structure has to change with it.
Redlich argues that the cost of keeping a legal ontology current decides more than its sophistication does. In 1992 Trevor Bench-Capon and Frans Coenen proposed that a legal knowledge system should mirror the structure of its sources, so that an amendment to one provision changes one record.
Our sample follows that pattern: each record is one section, tied to its official source. On Redlich’s account, universal schemas detached from any source have proved hard to keep current, and structures built on one organisation’s own material have fared better.
Publishers and vendors
Legal publishers have organised law in these ways for well over a century. West Publishing devised its Key Number System in the nineteenth century. It is a taxonomy of case law. Thomson Reuters describes more than 400 topics and nearly 100,000 distinct points of law, and its attorney-editors file each point of law in a decision under a topic and key number.
Citators record relationships between cases. Shepard’s, published since the 1870s, labels how a later case treats an earlier one. “Followed by” means the later court relied on the earlier case as authority. “Distinguished by” means it found the facts, or the application of the law, to be different. “Overruled by” means it expressly overruled or disapproved all or part of the earlier case. LexisNexis says its attorney-editors read the cases and apply those labels. In the terms used here, they are an ontology’s relationship types.
Both publishers now place these structures beneath their AI research tools. Thomson Reuters says CoCounsel Legal is guided by 35 million West Key Number classifications, and that the editors’ filing helps its AI find the most relevant authority faster. LexisNexis says its Shepard’s Verify tool, part of Lexis+ with Protégé, is built on a proprietary Shepard’s point-of-law knowledge graph.
Legal AI companies are building the same kind of structure. Legora announced on 14 September 2026 that it was building “a full ontology of the law” with an AI-native citator. On 29 October 2026 it launched Ontological Legal Research for United States law. It describes the ontology as “a map of how the law connects” that records the authority of legal sources, from persuasive commentary to binding precedent. Neither announcement explains how the ontology ranks one authority against another.
Sources: Thomson Reuters, the West Key Number System (20 May 2025), CoCounsel Legal (20 April 2026) and legal expertise in CoCounsel Legal (10 November 2026); LexisNexis, Shepard’s signal indicators and analysis phrases (2020), Shepard’s editorial process (2013) and the Lexis+ with Protégé release (October 2026, as published by Legal Futures on 30 October 2026); Legora, press release (14 September 2026) and Introducing Ontological Legal Research (29 October 2026). Read on 18 November 2026.
These structures are editorial products. Their categories were chosen for the publisher’s purposes, and each label records an editor’s reading of a judgment. Whether a later court followed an earlier decision or distinguished it is often itself contested. When a research tool rests on such a structure, it is reasonable to ask what relationships it records, who decided them and whether you can see the basis for a particular link.
An ontology of your own
You can build an ontology for your own work. One made for a single argument or thesis can be small. It records your view of how the material fits together, using the same three pieces: an index of the propositions, a graph of how they connect and a short list of relationship types, each with a definition.
The example maps a decision many teams now face: whether to use an AI assistant for first drafts of routine letters.
List the propositions
Write the thesis and every proposition it relies on, including the objections you expect. Give each an identifier so it can be referred to without restating it.
- TThesis
The team should use an AI assistant for first drafts of routine client letters.
- P1Proposition
Routine letters take up a large share of the team’s drafting time.
- P2Proposition
A person checks every draft before it is sent.
- C1Challenge
The letters contain client information.
- P3Proposition
The assistant’s business plan meets the team’s confidentiality requirements.
- P4Proposition
The provider does not use the team’s inputs to train its models.
- L1Limit
The assistant is not used for letters containing information a court has suppressed.
An illustration. The propositions are claims to be tested and say nothing about any particular provider.
Writing down how each proposition bears on the thesis exposes the steps with no support and the ones that carry more weight than they should. It also gives an AI tool a fixed structure to review, so its comments follow your route through the argument.
State the thesisOne sentence you would be prepared to defend.
Write the proposition you want to establish in a single sentence. If it needs two sentences, there are two theses. Give it an identifier.
Index the propositionsEach claim the thesis needs, with its own identifier.
List every proposition the thesis relies on and every objection you expect. Give each a short identifier and a one-sentence statement. The list is your index. It lets you, a colleague or an AI tool refer to a proposition without restating it.
Define the relationshipsFive or six types, each defined in a sentence.
Choose a small set of relationship types and write a definition for each. Settle the difference between “supports” and “is required for” before using either. The checks depend on it.
Stephen Toulmin’s The Uses of Argument (Cambridge University Press, 1958) sets out a layout of argument with six elements: claim, data, warrant, backing, qualifier and rebuttal. His qualifier and rebuttal correspond to the limit and the challenge in the example above.
Connect and citeEvery link has a direction and every proposition a source.
Link each proposition to the one it bears on, using one of your relationship types. Record the source for each proposition: the document, the passage relied on and the date you read it. A proposition with no source should look unfinished on the map.
Read the gapsLook for what the structure does not hold.
Find the required propositions without evidence, the challenges without an answer and the single sources on which several propositions depend. Those are the points an opponent, an examiner or a reviewer will press.
Review it with an AI toolSupply the map and the meanings together.
Give the tool the map, the relationship definitions and an instruction such as the one below. Its review then follows the route you recorded. Before you paste a map into a tool, check what is safe to put into it.
Here is an argument map. Each line gives an identifier, a proposition, its relationship to another proposition and its evidence. Relationship meanings: - supports: makes the target more likely; the target can stand without it. - is required for: the target fails if this fails. - challenges: counts against the target. - answers: meets a challenge. - limits: narrows the scope of the target. For each "is required for" link, say whether the recorded evidence supports the proposition. List any challenge without an answer. Use only the map. Where the map is silent, say so.
Further reading
- Sam Redlich: The Hard Problems of Legal Ontology (LinkedIn, 23 June 2026). The structural reasons legal ontologies are hard to build and keep, and the approaches that have been tried.
- Stephen Toulmin: The Uses of Argument (Cambridge University Press, 1958). A layout of argument that works as a small ontology.
- T J M Bench-Capon and F P Coenen, “Isomorphism and legal knowledge based systems” (1992) 1 Artificial Intelligence and Law 65. Why a legal model should mirror the structure of its sources.
- OASIS: Akoma Ntoso Version 1.0 and LegalRuleML Core. Open standards for legal documents and legal rules.
- LKIF Core. A library of ontologies for the legal domain.
- W3C: OWL 2 Web Ontology Language Primer. How an ontology defines concepts and relationships so their meaning can be shared.
- W3C: RDF 1.1 Primer. A foundation for representing records and their relationships.