A formal, structured representation of concepts and relationships within a knowledge domain.
In artificial intelligence and knowledge engineering, an ontology is a formal specification of a shared conceptualization — a structured vocabulary of concepts, categories, properties, and the relationships between them within a given domain. Unlike a simple taxonomy or glossary, an ontology encodes not just what things are called, but how they relate to one another, what properties they possess, and what constraints govern their interactions. Common components include classes (types of entities), instances (specific objects), properties (attributes and relationships), and axioms (logical rules). Languages such as RDF, RDFS, and the Web Ontology Language (OWL) provide standardized syntax for expressing these structures in machine-readable form.
Ontologies serve as a shared semantic backbone that allows disparate systems to exchange and interpret information consistently. In natural language processing, ontologies like WordNet and domain-specific biomedical resources such as the Gene Ontology help systems disambiguate word meanings, resolve coreferences, and ground language in structured world knowledge. In knowledge graphs — used extensively by search engines and enterprise AI platforms — ontologies define the schema that gives raw relational data its interpretable structure. They are also central to the semantic web vision, where machine-readable ontologies enable automated reasoning and inference across distributed data sources.
The relevance of ontologies to modern machine learning has grown significantly with the rise of knowledge-augmented models and neuro-symbolic AI. Large language models, despite their impressive fluency, can struggle with factual consistency and structured reasoning; integrating ontological knowledge graphs provides a grounding mechanism that improves reliability. Ontology alignment — the task of mapping concepts across different ontologies — has itself become a machine learning problem, tackled with embedding methods and graph neural networks. As AI systems are deployed in high-stakes domains like medicine, law, and science, ontologies provide the explicit, auditable knowledge representations that purely statistical models lack.