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

  1. The domain and scope are set.
  2. Classes and subclasses are defined, such as a Contract class split into service and sales contracts.
  3. Properties are written with restrictions such as value type and cardinality.
  4. 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

TermHow it differs
Knowledge graphA 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.

ON-PREMISES EXAMPLE

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.

Sources

In the glossary: Glossary, M to Q

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.