What an Ontology Is — Meaning You Can Compute With

"Ontology" sounds like philosophy, and historically it was — the study of what exists. In computing it means something more concrete and more useful: a formal, explicit description of the things in a domain and how they relate, written so a machine can reason about it. As AI systems increasingly need to ground their answers in structured truth rather than guess from text, ontologies and the knowledge graphs built on them have become quietly essential. This series builds both from first principles.

This series is for engineers who keep hearing “knowledge graph” and “ontology” — especially now, next to RAG and LLMs — and want to actually understand what they are and when to reach for them. Post 1 pins down the core idea: an ontology is a way of writing down meaning so that software, not just humans, can use it. Get that idea and everything else — RDF, OWL, SPARQL, GraphRAG — falls into place.

Schema, taxonomy, ontology: a ladder of meaning

The clearest way to understand an ontology is to climb up to it from things you already know, each rung capturing more meaning than the last:

So an ontology is a taxonomy’s richer cousin: it keeps the hierarchy but adds the full graph of relationships and the logical rules that govern them. The jump that matters is from structure (schema) to meaning (ontology) — from “this field is a string” to “this thing is a Person, who works for an Organization, located in a City.”

The building blocks

Every ontology, whatever the notation, is built from a small, consistent vocabulary:

Notice the shape this implies: things connected by typed relationships is a graph. An ontology defines the types (the schema of the graph); the knowledge graph (post 3) is the graph of actual individuals filled in against those types. That relationship — ontology as the blueprint, knowledge graph as the populated building — is the spine of this whole series.

Why this matters, especially now

Ontologies have quietly powered search, biomedical databases, and enterprise data integration for decades, for one core reason: shared, explicit meaning lets independent systems and people agree on what data means. When two databases both commit to the same ontology, “customer” means the same thing in both, and you can merge them without a human translating field by field. Meaning becomes an asset you can share, reuse, and compute over rather than re-deriving it in every application.

The reason the topic is resurgent is LLMs and RAG. Language models are brilliant at fluent text but weak at precise, consistent, verifiable facts — they hallucinate, and they have no stable model of entities and their relationships. An ontology and its knowledge graph provide exactly what an LLM lacks: a structured, queryable, authoritative source of truth about the specific entities in your domain, with explicit relationships the model can be grounded in. This is why “ontology-grounded RAG” / GraphRAG (post 6) has become a serious technique — it marries the LLM’s fluency to the knowledge graph’s precision. Understanding ontologies is, increasingly, understanding how to give an AI system something true to stand on.

The takeaway: in computing, an ontology is a formal, explicit, machine-readable description of the things in a domain and how they relate — the top of a ladder that climbs from a schema (shape, little meaning) through a taxonomy (hierarchy only) to a full web of typed concepts, relationships, and logical rules. It’s built from classes (types), individuals (instances), properties (relationships + attributes), and axioms (rules that let machines derive unstated facts). Because things linked by typed relationships form a graph, the ontology is the blueprint (the types) and the knowledge graph is the populated building (the individuals) — the spine of the series. It matters because shared explicit meaning lets independent systems agree on what data means, and it matters now because an ontology + knowledge graph gives an LLM the precise, verifiable, relationship-aware source of truth it otherwise lacks.

Key takeaways

Further reading

Sources & References

The rung below an ontology