Ontology
In artificial intelligence and information science, an ontology refers to an explicit, formalized specification of the concepts in a domain and their interrelations, a shared conceptual system. It originates from the study of being in philosophy, but in computing it has been engineered into a vocabulary and a set of constraints that machines can process, and it is the skeleton of the knowledge graph.
Core Principles
In 1993 Gruber gave the most widely circulated definition: an ontology is an explicit specification of a conceptualization. Later Studer and others added the two qualifications "formal" and "shared", forming four elements: explicit (concepts are defined clearly rather than implicitly), formal (processable by machines), shared (agreed upon within a group) and conceptualized (abstracting the objects and relations in the world).
An ontology usually contains: classes (concepts, such as "disease"), instances (concrete objects, such as "diabetes"), attributes (such as "age of onset"), relations (such as "causes"), and axioms and constraints (such as "a person cannot be both male and female at the same time"). Description logic provides formal semantics for these constructs so that reasoning can proceed automatically, for example judging whether an individual belongs to a class or detecting subsumption conflicts between concepts.
Key Points
Layers: upper ontologies describe the most general categories (such as BFO and SUMO); domain ontologies describe specific domains (such as SNOMED CT in medicine and the Gene Ontology); application ontologies target specific systems.
Standard languages: RDF describes triple facts, RDFS provides class hierarchies, OWL provides richer logical expressiveness, and SPARQL is used for querying. These are the core standards of the W3C Semantic Web stack.
Difference from knowledge graphs: knowledge graphs focus on organizing instance data at large scale, while ontologies focus on definitions and constraints at the conceptual level; in practice a knowledge graph often uses a lightweight ontology as its schema.
Engineering difficulties: building an ontology requires long-term collaboration between domain experts and knowledge engineers, and consensus is costly; over-modeling leads to maintenance difficulties, while under-modeling cannot support inference.
The judgment criterion is direct: an ontology is worth the investment only if the system needs to share semantics across systems, needs machines to reason automatically about conceptual relations, and needs to maintain terminological consistency over the long term; otherwise a lightweight tagging system is enough.
Common Misconceptions
Misconception one: equating an ontology with a database table structure. Tables aim at storage efficiency, whereas ontologies aim at semantic sharing and inference, and the two sit at different levels of abstraction. Misconception two: that an ontology must be extremely complete. In practice a "minimal ontology that is sufficient" is often more sustainable than a large and comprehensive system. Misconception three: confusing philosophical ontology with engineering ontology; the former asks about being itself, while the latter is a modeling tool.
Application Scenarios
Medical terminology standardization, bioinformatics data integration, enterprise master data management, semantic search, knowledge graph schema design, cross-institution data exchange, and knowledge modeling for smart contracts and compliance.