Ontology Tools and Standards

From WFM Labs
The four rungs
1. Taxonomy
Names, synonyms and a hierarchy
2. Ontology
Kinds of thing and their relationships
3. Knowledge Graph
Recorded facts, each with a source
4. Guardrails for AI Agents
Checks on what an AI agent may do
Standards and software: Ontology Tools and Standards

Ontology tools and standards are the languages, specifications and software used to write a taxonomy, an ontology or a knowledge graph and to build guardrails for AI agents on top of them. The field has many overlapping names, and the tools are easily confused: an ontology language does not reject bad data, and a graph validator does not check a JSON payload. This page states what each item is for, what it does not do, and its standing on the date it was checked. It ends with a comparison table and a guide to choosing. All statuses and versions were checked against the cited sources on 29 November 2026 and will date.

Reading the status of a standard

Most of the standards below come from the World Wide Web Consortium (W3C), which publishes documents at different levels of authority. The level matters when choosing what to depend on.

Label Meaning Dependability
Recommendation A finished standard, endorsed by W3C Stable
Candidate Recommendation (including a Candidate Recommendation Draft) Technically complete; being tested in implementations Usable with care; details may still change
Working Draft Work in progress on the standards track Expect change
Working Group Note Published by a working group without being taken to Recommendation Depends on tool support, not on W3C endorsement
Member Submission A proposal sent to W3C by member organizations; not produced or endorsed by W3C A proposal only

The standards

RDF, Turtle and JSON-LD: the data model and its file formats

The Resource Description Framework (RDF) is the data model beneath everything else on this page. Every statement is a triple of subject, predicate and object, a set of triples is a graph, and a dataset can hold several named graphs. RDF 1.1 is a W3C Recommendation of 25 February 2014.[1] RDF 1.2, which adds the ability to make a statement about another statement, was a Candidate Recommendation Draft dated 16 November 2026.[2]

RDF is written down in several interchangeable file formats. Turtle is the compact text format most people author by hand, a Recommendation of the same date as RDF 1.1.[3] JSON-LD expresses the same triples as ordinary JSON, with a context that maps each short field name to a global identifier; JSON-LD 1.1 is a Recommendation of 16 July 2020.[4] JSON-LD is the usual bridge between application code that speaks JSON and the graph standards below.

SKOS: vocabularies

The Simple Knowledge Organization System is for concept schemes: preferred and alternative labels, broader and narrower links, definitions, scope notes and mappings between vocabularies. It has been a Recommendation since 18 August 2009.[5]

  • Use it for a glossary that software can read, a hierarchy of terms such as shrinkage buckets, and mappings such as a platform's "occupancy" recorded as a close match to an internal definition.
  • It does not describe what a thing is, what properties it has or how a measure is computed. See Taxonomy.

RDFS: classes and properties

RDF Schema declares classes, subclasses, properties, and the domain and range of each property. RDF Schema 1.1 is a Recommendation of 25 February 2014.[6]

  • Use it for the backbone of an ontology: the classes (Measure, Measure Variant, Time Bucket, Queue) and the properties that link them.
  • It does not validate. A domain or range declaration lets software infer the type of a value. It never rejects a value of the wrong type.

OWL: richer meaning and reasoning

The Web Ontology Language adds statements that RDFS cannot make: disjoint and equivalent classes, cardinality, and property characteristics such as transitive or functional. OWL 2 (Second Edition) is a Recommendation of 11 December 2012 and defines three lighter profiles, EL, QL and RL.[7]

  • Use it for automatic classification and consistency checking of the ontology itself, and where several independently written models must be combined.
  • It does not validate data record by record. OWL assumes that missing information is unknown and that two names may denote one thing, so a reasoner draws conclusions where a validator would report an error; the behaviours are set out in Ontology. A reasoner can report that a set of statements is inconsistent, and some can explain why, but it does not produce a record-by-record validation report.[8]
  • Cost: Reasoning requires a separate reasoner program. The three profiles restrict what can be said in exchange for faster reasoning; they are optional. A small ontology can use a handful of OWL terms as documentation without running a reasoner at all.

SHACL: validation

The Shapes Constraint Language is defined as "a language for validating RDF graphs against a set of conditions". The conditions are written as shapes. A validator returns a report that either conforms or lists each failure with the node at fault and a severity of violation, warning or information. SHACL is a Recommendation of 20 July 2017.[9] A revision, SHACL 1.2, was in Working Draft on 26 November 2026, split into several documents including Core, SPARQL-related features and inference rules.[10]

  • Use it for every rule of the form "a thing of this kind must have": every measure variant names exactly one numerator and one denominator; every measurement names its variant, period and source; the buckets recorded under paid time for a period sum to paid time. SHACL is the tool that reports each failure, and the surrounding pipeline rejects on that report.
  • It does not validate JSON. It validates RDF graphs. A JSON payload must first be converted to RDF, or be checked by a JSON schema validator instead.
  • Two tiers: SHACL Core covers how many values a property may have, datatypes, value ranges, patterns and class membership. SHACL-SPARQL allows a constraint to be written as a query for rules Core cannot express, such as a sum across several records. Not every validator implements the second tier.

SPARQL: queries

SPARQL is the query language for RDF. SPARQL 1.1 is a Recommendation of 21 March 2013.[11] SPARQL 1.2 was in Working Draft on 19 November 2026.[12] It has four query forms: SELECT returns a table, ASK returns true or false, CONSTRUCT returns a new graph built from a template, and DESCRIBE returns a description of a resource.

  • Use it for reading facts from a knowledge graph, for checks that compare a proposal with recorded facts, and, through CONSTRUCT, for deriving new statements by rule.
  • It does not prove a negative. A query tests the graph, not the world. An ASK that returns false means no match was found. Whether that may be read as "no" depends on whether the graph is complete for that kind of fact.

SWRL: rules, with a caveat

The Semantic Web Rule Language combines OWL with if-then rules. It is not a W3C standard. SWRL is a W3C Member Submission of 21 May 2004. It was never taken up as a Recommendation, and the submission's own status section says that publication "indicates no endorsement of its content by W3C".[13] The SWRL tooling examined in the November 2026 check, a rule-editing plugin for the Protégé editor and the library behind it, is written in Java. The check was not exhaustive.[14]

Two alternatives sit on firmer ground for a new project:

  • SPARQL CONSTRUCT, which is part of a Recommendation and runs on any SPARQL engine.
  • SHACL rules, defined in the SHACL Advanced Features Working Group Note of 8 June 2017 and being redrafted as part of SHACL 1.2.[15][10] A Note is not a Recommendation either, so support should be confirmed in the chosen validator.

PROV-O: provenance

The Provenance Ontology is a vocabulary for recording where something came from. Its three core classes are entity, activity and agent, linked by properties such as was generated by, was derived from and was attributed to. It is a Recommendation of 30 April 2013.[16]

  • Use it for the source and derivation of a figure, and for the audit record of an agent's proposals and the decisions taken on them.
  • It does not enforce anything. It is a vocabulary; SHACL can require that the provenance be present.

Schema validators for tool-call inputs

When an AI agent calls a tool, the arguments arrive as structured data, typically JSON. Checking that data is a separate job from validating a graph, and it uses separate tools.

Tool What it is Status checked 29 November 2026
JSON Schema A language-neutral vocabulary for describing the allowed structure of a JSON document. Current version is Draft 2020-12[17]
Zod A TypeScript library in which a schema is written once as code and yields both a runtime validator and a static type. Converts to JSON Schema, targeting Draft 2020-12 by default. Zod 4 is the stable major version[18]
Pydantic The equivalent for Python: data models declared as annotated classes, validated at runtime, with JSON Schema output. Version 2.14 series; requires Python 3.10 or later[19]
Ajv A JavaScript validator that checks data directly against a JSON Schema document. Needed where the JSON Schema file itself is the source of truth, for example when it is generated by another tool. Supports Draft 2020-12 and earlier drafts[20]

Zod and Pydantic validate against schemas written in their own notation and can export JSON Schema; Ajv validates against JSON Schema itself.

  • Use them for the first check on any tool call: required fields, types, enumerated values, simple ranges.
  • They do not know what the values mean. A schema validator can confirm that queue_id is a string of the right pattern. It cannot confirm that the queue exists, that the named agent holds its skill, or that the proposed change respects a rule that depends on other records. Those checks need the graph.

Authoring and publishing tools

Tool Purpose Runs on Status checked 29 November 2026
A text editor and version control Turtle files are plain text and review well in a pull request. For a small vocabulary this is the whole authoring environment. Anything Not applicable
Protégé Free, open-source graphical ontology editor from Stanford University, with plug-in reasoners. A browser-based collaborative version, WebProtégé, is also offered. Java desktop; web Desktop release 5.6.9[21]
LinkML A modelling language in which a schema is written once in YAML and generators emit JSON Schema, SHACL, OWL, Pydantic classes, TypeScript types, SQL and documentation. Python toolchain Release 1.12.1[22]
Widoco Generates a documentation website for an ontology from the ontology file, with a change log between versions. Java Release 1.4.26; marked as actively developed[23]
w3id.org A permanent-identifier service run by the W3C Permanent Identifier Community Group. A project claims a path and controls where it redirects, so that identifiers survive a change of hosting. It redirects only and does not host files. Registration by pull request In operation[24]

Stable identifiers deserve early attention. The history summarized in Ontology shows that the vocabularies that lasted are those whose identifiers never moved. Registering a permanent path before the first term is published costs little, and changing identifiers later breaks every dataset that uses them.

Libraries for JavaScript and TypeScript

Several of the tools above are written in Java or Python. A project whose stack is JavaScript or TypeScript can stay within one runtime by using libraries built on RDF/JS, a shared set of JavaScript interfaces for RDF data.

Library Purpose Notes from the November 2026 check
N3.js Parses and writes Turtle and the other standard RDF text formats; provides an in-memory store. Release 2.13.12 of 10 October 2026; MIT licence; lists RDF 1.2 syntax support; includes a simple rule engine[25]
rdf-validate-shacl SHACL validator over RDF/JS data. Returns a report with a conforms flag and a list of results. Its documentation states that it does not support SHACL-SPARQL constraints[26]
shacl-engine SHACL validator over RDF/JS data. Lists Core constraints and SPARQL-based constraints and targets; MIT licence[27]
Comunica SPARQL query engine that runs inside the application, over in-memory data and remote sources. Lists support for the SPARQL 1.2 query and update specifications[28]
Oxigraph Graph database and SPARQL engine written in Rust, also distributed as a package for JavaScript. Implements SPARQL 1.1; describes its RDF 1.2 and SPARQL 1.2 support as preliminary[29]

The project pages describe these libraries as running on Node.js and in browsers. Behaviour on other JavaScript runtimes is not stated by the projects and should be tested before a build depends on it.

Libraries and mapping tools outside JavaScript

Tool Purpose Notes from the November 2026 check
pySHACL SHACL validator for Python, built on the rdflib library. Supports SHACL Advanced Features, including rules, as an option; can apply RDFS or OWL RL inference to the data before validating, which is off by default; Apache 2.0 licence[30]
Apache Jena Java framework for RDF, with a SPARQL engine, a graph database and a SHACL module. The SHACL module implements SHACL Core and SHACL-SPARQL constraints[31]
R2RML A W3C language for mapping the tables of a relational database to RDF, so that facts can stay in a warehouse and be presented as a graph. It is a mapping language only: a separate engine, generally outside the JavaScript ecosystem, executes the mapping. W3C Recommendation of 27 September 2012[32]

The option in pySHACL to infer before validating is an instance of the ordering risk described in Guardrails for AI Agents: inference applied to unvalidated data can supply the very type a shape was written to check.

Comparison

Item Kind Job Operates on Reports bad data so it can be rejected Status (29 November 2026)
RDF Data model Statements as triples; graphs Not applicable No W3C Recommendation, 2014; version 1.2 a Candidate Recommendation Draft
Turtle File format RDF written as compact text RDF No W3C Recommendation, 2014
SKOS Vocabulary standard Names, synonyms, hierarchy, mappings RDF No W3C Recommendation, 2009
RDFS Schema language Classes, properties, domain and range RDF No. Infers W3C Recommendation, 2014
OWL 2 Ontology language Richer statements; reasoning RDF No. Infers; reports only that the whole is inconsistent W3C Recommendation, 2012
SHACL Constraint language Validation against shapes RDF Yes W3C Recommendation, 2017; version 1.2 in Working Draft
SPARQL Query language Read facts; test patterns; derive by CONSTRUCT RDF Only as a query written to find violations W3C Recommendation, 2013; version 1.2 in Working Draft
SWRL Rule language If-then rules over OWL RDF with OWL No. Infers W3C Member Submission, 2004; never a Recommendation
PROV-O Vocabulary standard Source and derivation RDF No W3C Recommendation, 2013
JSON-LD File format RDF written as JSON JSON to RDF No W3C Recommendation, 2020
JSON Schema Schema language Structure of JSON documents JSON Yes Draft 2020-12 is current
Zod Library, TypeScript Runtime validation and static types JSON and objects Yes Version 4
Pydantic Library, Python Runtime validation of data models JSON and objects Yes Version 2
Protégé Editor Author and inspect OWL ontologies OWL files No. A plug-in reasoner reports inconsistency Maintained; 5.6.9
LinkML Modelling framework One schema, many generated artifacts YAML Through generated validators Maintained; 1.12.1
Widoco Documentation generator Ontology website OWL files No Maintained; 1.4.26
R2RML Mapping language Relational tables presented as RDF Relational data No W3C Recommendation, 2012
w3id.org Identifier service Permanent addresses Web addresses Not applicable In operation

Which to pick when

The guide below starts from the job and names the least machinery that does it.

A shared list of terms with synonyms and a hierarchy
SKOS, written in Turtle, kept in version control. This is sufficient for a taxonomy; the tradeoff is that SKOS alone carries no formulas and no rules.
A vendor's or partner's term to be related to an internal one
SKOS mapping properties. Use skos:closeMatch unless the two definitions have been compared and found identical.
Measure definitions with named variants
A small RDFS ontology for the classes and properties, SKOS for the labels, and SHACL shapes for the rules every definition must satisfy. This covers occupancy with and without hold time and the three utilizations of Occupancy and the Three Utilizations without any OWL reasoning.
Bad data to be stopped before it is accepted
SHACL. Not RDFS and not OWL, which infer and do not reject.
A rule that spans several records, such as buckets that must sum to paid time
A SHACL-SPARQL constraint, or a SPARQL query written to return violations. Confirm that the chosen validator supports SHACL-SPARQL.
New facts to be derived by rule
SPARQL CONSTRUCT first. SHACL rules where the validator supports them. SWRL only where an existing Java and OWL toolchain already depends on it.
Automatic classification, or a check that the ontology does not contradict itself
OWL with a reasoner, run as a design-time check on the ontology and not as a gate on operational data.
The arguments of an agent's tool call
A schema validator at the boundary: Zod in TypeScript or Pydantic in Python, each exporting JSON Schema as the format shared with the model. Where a JSON Schema file is the source of truth, a validator such as Ajv checks against it directly.
Whether an agent's proposed action is permitted
The JSON check first, then SHACL on the proposal expressed as RDF, then SPARQL against the knowledge graph. The step from JSON to RDF is made with a JSON-LD context that maps each field of the tool call to a term in the ontology, or with a few lines of mapping code. Three details decide whether the check works. The converted proposal needs an identifier and a type, which a context alone does not supply, or shapes aimed at a class will not apply to it. Fields that the context does not map are dropped without warning, so the JSON check should forbid unknown fields. And the validator must be given the proposal together with the ontology and the facts its shapes refer to, such as the controlled list of reason codes; a proposal validated alone gives false failures or misses. The proposal is validated as stated, before any inference. For any tool that changes something, all three checks run before the tool does. See Guardrails for AI Agents.
Facts that stay in a relational warehouse
A mapping such as R2RML, or an export of the relevant tables to RDF on a schedule. A graph database is not required to begin.
The source of every figure and the record of every agent decision
PROV-O terms, with a SHACL shape requiring them.
One source of truth that generates JSON Schema, SHACL and code types together
LinkML, accepting a Python step in the build. The alternative is to hand-write Turtle and SHACL and keep the JSON schemas alongside, which is simpler for a small model and drifts more easily as it grows.
Publication for others to use
Permanent identifiers through w3id.org, a documentation site generated by Widoco or by hand, and the Turtle files served at the identifier.

Two rules of economy apply throughout. Use the weakest language that does the job, because every step up in expressive power narrows the choice of tools and the pool of people who can maintain the result. And prefer a Recommendation to a draft, a Note or a submission wherever one exists.

Maturity Model Position

The placement below is an interpretation of the model and is not taken from the model's own text. In the WFM Labs Maturity Model™, the tools on this page are adopted in the order of the rungs. A function at Level 2 needs none of them; a written register such as The Definitions Register is sufficient. SKOS, a small RDFS model, a first knowledge graph (often a mapped warehouse) and schema validators at tool boundaries become worthwhile at Level 3, when automated processes first resolve terms and take actions without a person. SHACL validation in the build pipeline and SPARQL checks against a graph belong to Levels 4 and 5, where software agents act on the operation and their proposals are gated.

See Also

References

  1. ↑ Cyganiak, R., Wood, D. & Lanthaler, M. (eds.) (25 February 2014). RDF 1.1 Concepts and Abstract Syntax. W3C Recommendation. https://www.w3.org/TR/rdf11-concepts/
  2. ↑ World Wide Web Consortium (16 November 2026). RDF 1.2 Concepts and Abstract Data Model. W3C Candidate Recommendation Draft. https://www.w3.org/TR/rdf12-concepts/
  3. ↑ Prud'hommeaux, E. & Carothers, G. (eds.) (25 February 2014). RDF 1.1 Turtle. W3C Recommendation. https://www.w3.org/TR/turtle/
  4. ↑ Sporny, M., Longley, D., Kellogg, G., Lanthaler, M., Champin, P.-A. & Lindström, N. (16 July 2020). JSON-LD 1.1. W3C Recommendation. https://www.w3.org/TR/json-ld11/
  5. ↑ Miles, A. & Bechhofer, S. (eds.) (18 August 2009). SKOS Simple Knowledge Organization System Reference. W3C Recommendation. https://www.w3.org/TR/skos-reference/
  6. ↑ Brickley, D. & Guha, R. V. (eds.) (25 February 2014). RDF Schema 1.1. W3C Recommendation. https://www.w3.org/TR/rdf-schema/
  7. ↑ W3C OWL Working Group (11 December 2012). OWL 2 Web Ontology Language Document Overview (Second Edition). W3C Recommendation. https://www.w3.org/TR/owl2-overview/
  8. ↑ Hitzler, P., Krötzsch, M., Parsia, B., Patel-Schneider, P. F. & Rudolph, S. (eds.) (11 December 2012). OWL 2 Web Ontology Language Primer (Second Edition). W3C Recommendation. https://www.w3.org/TR/owl2-primer/
  9. ↑ Knublauch, H. & Kontokostas, D. (eds.) (20 July 2017). Shapes Constraint Language (SHACL). W3C Recommendation. https://www.w3.org/TR/shacl/
  10. ↑ 10.0 10.1 W3C Data Shapes Working Group (26 November 2026). SHACL 1.2 Core. W3C Working Draft. https://www.w3.org/TR/shacl12-core/
  11. ↑ Harris, S. & Seaborne, A. (eds.) (21 March 2013). SPARQL 1.1 Query Language. W3C Recommendation. https://www.w3.org/TR/sparql11-query/
  12. ↑ World Wide Web Consortium (19 November 2026). SPARQL 1.2 Query Language. W3C Working Draft. https://www.w3.org/TR/sparql12-query/
  13. ↑ Horrocks, I., Patel-Schneider, P. F., Boley, H., Tabet, S., Grosof, B. & Dean, M. (21 May 2004). SWRL: A Semantic Web Rule Language Combining OWL and RuleML. W3C Member Submission. https://www.w3.org/submissions/SWRL/
  14. ↑ Protégé Project. SWRLAPI. https://github.com/protegeproject/swrlapi
  15. ↑ Knublauch, H., Allemang, D. & Steyskal, S. (eds.) (8 June 2017). SHACL Advanced Features. W3C Working Group Note. https://www.w3.org/TR/shacl-af/
  16. ↑ Lebo, T., Sahoo, S. & McGuinness, D. (eds.) (30 April 2013). PROV-O: The PROV Ontology. W3C Recommendation. https://www.w3.org/TR/prov-o/
  17. ↑ JSON Schema. Specification. https://json-schema.org/specification
  18. ↑ Zod. Zod documentation. https://zod.dev/
  19. ↑ Pydantic. Pydantic Validation documentation. https://pydantic.dev/docs/validation/latest/get-started/
  20. ↑ Ajv. Ajv JSON schema validator. https://ajv.js.org/
  21. ↑ Stanford University. Protégé. https://protege.stanford.edu/ Release listing: https://github.com/protegeproject/protege/releases
  22. ↑ LinkML. LinkML documentation. https://linkml.io/linkml/ Release listing: https://github.com/linkml/linkml/releases
  23. ↑ Garijo, D. WIDOCO: a wizard for documenting ontologies. https://github.com/dgarijo/Widoco Release listing: https://github.com/dgarijo/Widoco/releases
  24. ↑ W3C Permanent Identifier Community Group. Permanent Identifiers for the Web. https://w3id.org/
  25. ↑ RDF/JS. N3.js. https://github.com/rdfjs/N3.js Release listing: https://github.com/rdfjs/N3.js/releases
  26. ↑ Zazuko. rdf-validate-shacl. https://github.com/zazuko/rdf-validate-shacl
  27. ↑ RDF-Ext. shacl-engine. https://github.com/rdf-ext/shacl-engine
  28. ↑ Comunica. Supported specifications. https://comunica.dev/docs/query/advanced/specifications/
  29. ↑ Oxigraph. Oxigraph. https://github.com/oxigraph/oxigraph
  30. ↑ RDFLib. pySHACL. https://github.com/RDFLib/pySHACL
  31. ↑ Apache Software Foundation. Apache Jena SHACL. https://jena.apache.org/documentation/shacl/
  32. ↑ Das, S., Sundara, S. & Cyganiak, R. (eds.) (27 September 2012). R2RML: RDB to RDF Mapping Language. W3C Recommendation. https://www.w3.org/TR/r2rml/