Inferensys

Glossary

Ontology

An ontology is a formal, explicit specification of a shared conceptualization that defines the types, properties, and interrelationships of entities within a domain, enabling logical inference and semantic reasoning beyond simple hierarchies.
Stylish home-office setup in a modern highrise apartment, floor-to-ceiling windows showing city skyline at golden hour, a laptop displaying a beautiful semantic search interface.
SEMANTIC ENGINEERING

What is an Ontology?

An ontology is a formal, explicit specification of a shared conceptualization, defining the types, properties, and interrelationships of entities within a domain to enable logical inference and semantic reasoning beyond simple hierarchies.

An ontology is a formal, machine-readable model that defines the concepts, attributes, and relational rules within a specific domain of knowledge. Unlike a simple taxonomy, which only establishes parent-child hierarchies, an ontology captures rich, multi-dimensional relationships such as "causes," "treats," or "is a component of." This semantic richness allows both humans and software agents to share a common, unambiguous understanding of a domain's structure, enabling automated reasoning and knowledge discovery.

In the context of Schema Markup Engineering, an ontology provides the logical scaffolding for a Knowledge Graph. By defining classes and properties—often using standards like RDF and OWL—an ontology allows a machine to infer new facts from explicitly stated ones. For example, if an ontology defines that a "CTO" reportsTo a "CEO" and "Alice" isA "CTO," a reasoner can deduce Alice's reporting structure without that fact being directly encoded, making ontologies foundational for Entity Disambiguation and semantic search.

ONTOLOGICAL ENGINEERING

Core Components of an Ontology

An ontology is more than a taxonomy. It is a formal, machine-readable specification of a shared conceptualization. These are the structural primitives that enable logical inference and semantic reasoning.

01

Classes (Concepts)

The fundamental categories or types of things within a domain. Classes define the intensional definition of a group of entities.

  • Formal Definition: A set of individuals sharing common characteristics.
  • Example: In a financial ontology, FinancialInstrument is a class; Equity and Bond are its subclasses.
  • Mechanism: Classes are arranged in a taxonomic hierarchy (subclass/superclass) supporting inheritance of properties.
02

Individuals (Instances)

The concrete, specific objects or ground-level entities that are members of a class. They represent the extensional definition or the actual data.

  • Formal Definition: A single, unique object in the domain of discourse.
  • Example: AAPL (Apple Inc.) is an individual of the class PublicCompany.
  • Distinction: Unlike classes, individuals do not have sub-instances. They are the leaf nodes of the ontology.
03

Properties (Slots/Roles)

Binary relations that define the attributes of classes or the relationships between individuals. Properties are first-class citizens in an ontology.

  • Object Properties: Link an individual to another individual (e.g., hasCEO links Apple to Tim Cook).
  • Datatype Properties: Link an individual to a literal value (e.g., hasRevenue links Apple to "383.29B"^^xsd:decimal).
  • Annotation Properties: Add metadata like rdfs:label or rdfs:comment.
04

Axioms (Rules & Restrictions)

Assertions that constrain the interpretation of the ontology and enable logical inference. Axioms transform a simple data model into a reasoning engine.

  • Domain/Range Restrictions: Specify that the property hasCEO only applies to Organization and points to Person.
  • Cardinality Constraints: Assert that a Person has exactly one dateOfBirth.
  • Disjointness: Declare that Man and Woman are disjoint classes, preventing logical contradictions.
05

Relations (Object Properties)

The semantic links that define how entities interact. Unlike a simple database foreign key, relations carry explicit formal semantics.

  • Transitive: If Paris isPartOf France, and France isPartOf Europe, then Paris isPartOf Europe.
  • Symmetric: If Bob isSpouseOf Alice, then Alice isSpouseOf Bob.
  • Inverse: hasParent is the inverse of hasChild.
06

Restrictions (OWL Constructs)

Anonymous class expressions that define a class by constraining its properties. These are the building blocks of description logic.

  • Universal Restriction (allValuesFrom): A HappyPerson has all children HappyPerson.
  • Existential Restriction (someValuesFrom): A Parent has at least one child Person.
  • HasValue: A RedWine has color Red. This allows classification of individuals based on their property values.
STRUCTURED DATA COMPARISON

Ontology vs. Taxonomy vs. Knowledge Graph

A technical comparison of three distinct but related methods for organizing domain knowledge, from simple classification to inferential reasoning.

FeatureOntologyTaxonomyKnowledge Graph

Core Definition

A formal, explicit specification of a shared conceptualization that defines types, properties, and interrelationships with logical constraints

A hierarchical classification scheme organizing concepts into parent-child relationships using a controlled vocabulary

A structured data model representing entities as nodes and their relationships as edges, storing deterministic facts about a domain

Primary Relationship Type

Semantic (is-a, part-of, has-property, causal, temporal) with domain-specific constraints

Hierarchical (broader-than, narrower-than) only

Labeled, directed edges representing any real-world relationship (works-for, located-in, founded-by)

Supports Logical Inference

Formal Axioms and Constraints

Yes — uses description logic (OWL) to define cardinality, disjointness, transitivity, and existential restrictions

No — limited to transitive parent-child inheritance

No — focuses on instance-level assertions rather than class-level axioms

Typical Schema Language

OWL, RDFS, Description Logic

SKOS, simple tree structures

RDF triples, LPG (Labeled Property Graph), Cypher, SPARQL

Reasoning Capability

Deductive reasoning: can infer new knowledge from stated axioms (e.g., if X is-a Y and Y has-property Z, then X has-property Z)

None — purely structural navigation

Graph traversal and pattern matching: can discover paths and connections but not infer new class-level truths

Primary Use Case

Domain modeling for semantic interoperability, automated reasoning, and AI decision support systems

Content categorization, site navigation, and information architecture for consistent tagging

Search engine fact storage, recommendation engines, fraud detection, and grounding LLM outputs

Example

A biomedical ontology defining that 'Myocardial Infarction' is-a 'Cardiovascular Disease' and has-location 'Myocardium' with the constraint that it is-caused-by 'Coronary Artery Occlusion'

An e-commerce taxonomy: Electronics > Computers > Laptops > Gaming Laptops

Google's Knowledge Graph linking 'Albert Einstein' (node) to 'Theory of Relativity' (node) via 'developed-by' (edge) and to 'Ulm' (node) via 'born-in' (edge)

ONTOLOGY CLARIFIED

Frequently Asked Questions

Precise answers to the most common technical questions about ontologies in the context of schema markup engineering and semantic knowledge representation.

An ontology is a formal, explicit specification of a shared conceptualization that defines the types, properties, and interrelationships of entities within a domain, enabling logical inference and semantic reasoning. Unlike a taxonomy, which is strictly a hierarchical classification structure organizing concepts into parent-child relationships, an ontology captures a far richer set of semantic relationships. A taxonomy might state that a sedan is a child of car, but an ontology can also define that a car hasEngine engine, that an engine producesPower measured in horsepower, and that a sedan isDisjointWith a truck. This allows for automated reasoning: a system can infer that if an entity is a sedan, it cannot also be a truck, and it must have exactly one engine. In the context of Schema.org, a taxonomy is represented by the type hierarchy, while an ontology is expressed through the full vocabulary of types and properties and their formal constraints, enabling search engines to perform entity reconciliation and disambiguation beyond simple categorization.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.