Back to list

Tech Blog · AI Agents

What is an ontology, and why is everyone talking about it?

An ontology is a vocabulary that defines the entities and relationships in your data so that many systems use them with the same meaning. We cover the principles set by the standards, a factory-floor example, and what an ontology still cannot do.

Aug 4, 2026 · OPTI-X

These days, the word ontology shows up in almost every enterprise AI announcement. It sounds like a term from philosophy, but in practice its meaning is simple: "a definition of what the things in our company's data are, and how they connect to one another."

Definition: a vocabulary that many systems share

In the frequently cited definition by Gruber (1993), an ontology is a specification of the representational vocabulary for a shared domain. It is a collection of definitions of classes, relations, functions and similar objects. He also stated the purpose: for many AI systems to share and reuse knowledge, they first have to speak the same vocabulary. He further proposed a way to write definitions once in a standard format and translate them into the representations of different systems.

Factory data has exactly this problem. Equipment history sits in the maintenance system, production results in the production management system, and quality inspections in the quality system. The same piece of equipment may even go by a different code in each system.

Table-centric data vs. ontology

Same data, different way of organizing it

Table-centric
Ontology-centric
Basic unit
Rows and columns
"Entities" such as equipment, processes and products
Connections
People know the join rules
Relationships are defined in the data
Terminology
Differs by system
Unified under one definition
For agents
Struggles to find which table to look at
Queries by following entities and relationships

Tables are perfectly good at holding data. But which column refers to which entity, and what it links to in another table, usually lives only in people's heads or inside queries. An ontology writes those connections down next to the data.

How the standards write it: triples and classes

RDF, a W3C standard, writes every fact as a three-part statement of subject–predicate–object (a triple), such as "Neutralization tank 1 – performs – neutralization process." Each entity gets a global identifier called an IRI, and according to the standard, the same IRI denotes the same entity wherever it appears. Because a graph is a set of triples, data from multiple sources is easy to combine.

On top of that, RDF Schema and OWL 2 define what the vocabulary means. An OWL 2 ontology consists of classes, properties, individuals and data values. Once meanings are defined, a reasoner can derive facts that were never written down.

Inferences from a single definition

The reasoner fills in facts that were not written into the data

Definition typeExample definitionWhat is inferred
SubclassA neutralization tank is a subclass of reactor tankNeutralization tank 1 also shows up as a reactor tank
DomainThe subject of 'measures' is a sensorAnything that measures something is classified as a sensor
RangeThe object of 'processes' is a batchWhatever a process handles is classified as a batch
Same individualThe pump codes in two systems refer to the same thingRecords from both systems merge into one piece of equipment
Source: W3C RDF Schema 1.1 and OWL 2, Hogan et al. (2021)

An ontology example from the factory floor

A simplified manufacturing ontology

Defines entities (boxes) and relationships (descriptions)

EntityEquipmentAttributes: equipment ID, location, status · Relationship: performs a process
EntityProcessAttributes: step, target conditions · Relationship: processes a batch
EntityBatch / productAttributes: raw materials, production date · Relationship: undergoes inspection
EntityQuality inspectionAttributes: measured values, verdict · Relationship: traced back to the responsible equipment

With these definitions in place, finding "the condition, at the time, of the equipment that last week's defective batch passed through" no longer requires a person to join five tables. The question becomes a path of relationships: quality inspection → batch → process → equipment.

It does not have to be elaborate from day one. According to the knowledge graph survey by Hogan et al. (2021), the ontologies in enterprise knowledge graphs tend to be lightweight, often simple class hierarchies. OWL 2 also defines profiles (EL, QL, RL) that trade expressive power for faster computation. Of these, QL is designed so that queries can be answered with standard relational database technology.

An ontology is not a document you write once and forget. The common traits of enterprise knowledge graphs summarized in the same survey include refinement, which means merging duplicate entities and adding new links, and keeping the graph up to date as the domain changes. When equipment is replaced or the process sequence changes, the ontology has to change with it.

Why it matters for agents

When an agent gets a question, it has to figure out on its own which data to look at. If terms and relationships are not defined, the agent may look at the wrong table with a similar name, or calculate the same metric in different ways.

With an ontology, what the agent receives changes from "a list of tables" to "a map of entities and relationships." Ask for "the batches processed on the day the neutralization tank pH fluctuated," and the agent finds the individuals of the neutralization tank class and follows the "processes" relationship to the batches. Even if equipment codes differ across systems, a same-individual definition lets it gather the records of one piece of equipment at once. As the enterprise practitioners cited in the survey put it, a knowledge graph is a shared substrate that lets different products and applications within an organization use the same vocabulary.

Limits: no record is not the same as did not happen

OWL follows the open world assumption: a fact missing from the graph is not treated as false. In the example by Hogan et al., the absence of a flight record between two cities does not let us conclude that no such flight exists. On the plant floor, if a batch has no inspection record, inference alone will not conclude that "it was not inspected."

The questions the floor needs answered are often the opposite. "Does every batch have an inspection result?" and "Does every dosing record have a unit?" are validation questions. For this, the W3C has a separate standard, SHACL, which checks whether an RDF graph satisfies a set of conditions, such as "there must be at least one value."

What an ontology solves and what it cannot

It is not a cure-all

SolvesSame words, same meaning
Metric, equipment and term definitions unified in one place
SolvesGuiding the agent
Follows entities and relationships to reach the data it needs
CautionNo record does not mean "none"
Check required records with validation rules (SHACL), not inference
LimitIt cannot create what is not in the data
If adjustment history was never recorded, even an ontology cannot recover it

An ontology makes data "understandable." But deciding what to change, and by how much, with that data is still a separate problem.

References

Could this work for your process?

Talk to us