AI Glossary / Graphs and symbolic AI / Beginner
Ontology
Definition
An ontology is an explicit model of the concepts, entities, and relationships relevant to a domain, with definitions that clarify their meanings. In AI, it provides a structured vocabulary that people and software can use consistently. Formal ontologies can also include logical statements that support inference. An ontology describes how information is understood; it is not automatically a complete collection of facts about the world.
What it means
A glossary explains words, and a taxonomy arranges categories. An ontology can build on both while specifying relationships and assumptions more precisely. For example, it can distinguish a machine from its manufacturer and a maintenance event from the machine involved.
These distinctions help different systems interpret data consistently. A label such as part is ambiguous without context: it could mean a component type or one physical component. An ontology can define which meaning applies and how that concept relates to other concepts in the model.
How it works
An ontology commonly includes classes for categories, properties for relationships or attributes, and axioms describing how they connect. It may also contain assertions about particular individuals, although some projects separate those facts into a knowledge base that uses the ontology.
Formal languages give these statements precise semantics. For example, declaring one class a subclass of another means that each member of the first belongs to the second. A compatible reasoning tool can derive consequences from the stated axioms and facts.
The language and modeling choices matter. In OWL, a missing fact is not automatically false, and a logical restriction does not necessarily operate like a database rule that rejects an incomplete record. Users need to understand the adopted semantics before relying on a query result or interpreting a missing value.
Three practical examples
- Product information: distinguish product categories, individual units, and manufacturers when combining catalog and inventory data.
- Enterprise knowledge: connect projects, teams, documents, and responsibilities through defined relationships that support structured questions.
- Equipment assistance: organize machine types, compatible components, and service concepts so an assistant can retrieve information using shared meanings.
Think of it this way
Think of a map legend combined with a set of rules explaining how map features relate. The legend identifies what symbols mean, while the rules distinguish a road crossing a river from a road connected to another road.
The analogy is limited because an ontology may express logical constraints and derived categories rather than geographic positions. It also does not guarantee that the facts supplied using its vocabulary are accurate.
Worked example
Consider a small equipment ontology. It states that every ElectricForklift is a Forklift and every Forklift is a Vehicle. It also states that f7 is an ElectricForklift. A reasoner can infer that f7 is a Forklift and a Vehicle through the subclass chain.
Now add the fact manufacturedBy(f7,MakerA). This relates the individual vehicle to its manufacturer. It does not make MakerA a Vehicle, because the relationship is not a subclass statement. The meaning of each link determines what follows.
Suppose no maximumLoad value is recorded for f7. Under an open-world interpretation, the correct conclusion is that the provided information does not establish that value. It is not that f7 has zero load capacity or no capacity at all.
Finally, if the ontology declares Vehicle and Building disjoint and also asserts that f7 is a Building, the statements conflict: the same individual would belong to classes declared to have no common members. Detecting that inconsistency helps review the data or definitions, but it does not independently reveal which assertion is wrong. These deductions are a hand-worked illustration, not a claim that a particular ontology reasoner was executed.
Illustrative case study
Fictional case: a company builds a knowledge service from equipment documents. Its first version treats any repeated label as the same concept, so battery as a product family becomes mixed with a specific replacement battery in a service record.
The team introduces explicit identifiers and definitions for types and individual parts. It reviews relationships using representative questions before expanding the model. The case illustrates how an ontology can make intended distinctions explicit; it does not claim that adding one automatically resolves every ambiguity in source documents.
Common misconceptions and mistakes
An ontology is not simply any graph. A graph may connect items without specifying the meaning or logical behavior of those connections. An ontology adds conceptual definitions and, depending on its formality, precise axioms.
It is not interchangeable with a database schema or an application class diagram. Those artifacts can overlap, but their purposes and semantics may differ. Storage structure alone does not settle conceptual meaning.
Nor is an ontology a guarantee of truth. Consistent definitions can coexist with inaccurate instance data, and a model can omit distinctions needed for a new application. Scope and evidence remain important even when the representation is formal.
Business use
Ontologies are useful when shared meaning matters across teams, data sources, and automated reasoning tools. They can support integration and more precise retrieval by making concepts and relationships explicit.
The business value depends on whether the model helps answer real questions or reduces recurring interpretation problems. Teams should identify its scope, maintain definitions and examples, and review changes that affect dependent data. Counting classes or drawing an elaborate diagram is not enough to demonstrate usefulness. A small, well-understood ontology may serve a focused application effectively.
People also ask
Is an ontology the same as a knowledge graph?
No. An ontology can define concepts and relationships used by a knowledge graph, while the graph may also contain many facts about individual entities.
Does every ontology use OWL?
No. OWL is one formal language; ontologies can be expressed using other languages and levels of formality.
Can an ontology include individual objects?
Yes, although some workflows separate the conceptual model from the instance data that uses it.
Check your understanding
Why does manufacturedBy(f7,MakerA) not imply that MakerA is a Vehicle?
Answer: It is a manufacturer relationship, not an assertion that MakerA is a member or subclass of Vehicle. The meaning of the link matters.
Related terms
- Taxonomy
- Class
- Axiom
- Ontology engineering
- knowledge graph
- individual
- property
- open-world assumption
Learn next
Model a small domain with three classes, two relationships, and a few individuals. Write down what should follow and what should remain unknown. Then study the reasoning semantics of the chosen ontology language before introducing stronger restrictions.
More in Graphs and symbolic AI
- Online search - Online search is problem solving that interleaves computation with actions and observations in an environment.
- Ontological commitment - An ontological commitment is a choice about what kinds of things a representation treats as existing and how its vocabulary refers to them.
- Ontological engineering - Ontological engineering is the disciplined work of designing, evaluating, and maintaining explicit models of the concepts and relationships in a domain.
- Open-loop - Open-loop describes a control or action process that does not use feedback from the controlled result to revise its commands during the relevant execution...
- Operationality - Operationality is the suitability of a concept description for effective use by a particular performance system.
- Operations research - Operations research is the use of mathematical models and analytical methods to support better decisions about complex systems.
Sources
W3C, OWL 2 Web Ontology Language Primer: https://www.w3.org/TR/owl2-primer/ — classes, properties, individuals, formal reasoning, and open-world semantics.
Noy and McGuinness, Ontology Development 101: https://protege.stanford.edu/publications/ontology_development/ontology101-noy-mcguinness.html — shared vocabulary and domain modeling. Equipment examples and the fictional case are original illustrations.
Previous: Ontological engineering Next: Ontology alignment