In artificial intelligence and knowledge representation, an ontology is a formal, machine-readable specification of the concepts, relationships, and constraints within a specific domain. It provides a structured vocabulary and a shared understanding, enabling disparate systems to interoperate and reason about data consistently. Ontologies are foundational to knowledge graphs and semantic technologies, acting as the schema that defines the types of entities (classes), their properties (attributes), and how they relate (predicates). This explicit modeling allows for logical inference and complex querying beyond simple keyword matching.
