What is an AI ontology?
An ontology is a formal, explicit description of the concepts in a domain (classes), their properties and the restrictions on those properties. It provides a shared vocabulary defining the domain's basic concepts and their relations in a form machines can interpret.
Unlike a knowledge graph or knowledge base, an ontology defines the schema; adding individual instances of its classes produces a knowledge base. Unlike a taxonomy of broader and narrower categories, it also carries properties and restrictions.
- Topic
- Embeddings, document processing and RAG
- Also known as
- Domain ontology
- Origin
- 1993 definition for knowledge sharing, 2004 W3C OWL standard
How an AI ontology works
- The domain and scope are set.
- Classes and subclasses are defined, such as a Contract class split into service and sales contracts.
- Properties are written with restrictions such as value type and cardinality.
- The ontology is expressed in a standard language such as the W3C's OWL; reasoners check class consistency.
In more detail
OWL profiles
The 2012 version of OWL defines profiles that trade expressive power for computational benefits: the EL profile allows polynomial time algorithms for all standard reasoning tasks on very large ontologies, the QL profile suits lightweight ontologies queried with relational database technology and the RL profile suits rule-based reasoning directly over RDF triples.
Commonly confused terms
| Term | How it differs |
|---|---|
| Knowledge graph | A knowledge graph is a data structure holding entities and their relations as nodes and edges. An ontology is the schema defining which entity and relation types may appear in that graph and which restrictions they follow. |
Why an AI ontology matters for on-premises AI
According to a widely used ontology development guide, the main aims are sharing a common understanding of the structure of information among people or software agents and reusing domain knowledge; when sites share an ontology, agents can aggregate information across them. In enterprise AI, an ontology can be the shared schema telling methods such as Graph Retrieval-Augmented Generation and entity linking which class an extracted entity belongs to.
Before building a knowledge graph from claim files, an insurer defines Policy, Claim and Assessment Report classes and restrictions such as each claim linking to a single policy. Entities a language model extracts from documents are checked against this schema; misfits go to human review.
Common questions
Is an ontology the same as a taxonomy?
No. A taxonomy is only a hierarchy of broader and narrower classes; an ontology adds properties, restrictions and other relations between classes.
Which language is an ontology written in?
The common standard on the web is the W3C Web Ontology Language, OWL. OWL ontologies are mostly exchanged as RDF documents.
Does an ontology replace a language model?
No. An ontology defines the structure of knowledge; a language model understands and generates text. The two can work together, for example when extracting structured information from documents.
Related terms
- AI knowledge graph
- AI knowledge representation
- AI knowledge base
- Graph retrieval-augmented generation (GraphRAG)
- Entity linking
Sources
- Ontology Development 101: A Guide to Creating Your First Ontology, Stanford Knowledge Systems Laboratory, 2001
- OWL Web Ontology Language Overview, W3C Recommendation, 2004
- OWL 2 Web Ontology Language Document Overview (Second Edition), W3C Recommendation, 2012
In the glossary: Glossary, M to Q