Skip to main content

> cat ./posts/ontologies-knowledge-graphs-and-llms.md

[terminal_mode]
cat: Artificial Intelligence|date: 2026-11-20|rt: 10 min

Ontologies, Knowledge Graphs, and LLMs: Teaching Meaning to AI

Exploring the evolution from 1990s ontologies and the Semantic Web to modern GraphRAG and neuro-symbolic AI. LLMs give fluency; ontologies give truth.

#ai#ontology#knowledge-graph#software-architecture#graphrag

Exploring the evolution from 1990s ontologies and the Semantic Web to modern GraphRAG and neuro-symbolic AI. LLMs give fluency; ontologies give truth.


1. What is an Ontology?

Tom Gruber’s classic 1993 definition states that an ontology is "an explicit specification of a conceptualization." In software and knowledge engineering, an ontology provides a formal model of a domain by defining:

  • Concepts & Entities: The core objects of the domain (e.g., Patient, Diagnosis, Invoice, Machine).
  • Relationships: The precise semantics connecting them (e.g., causes, belongs_to, is_part_of).
  • Rules & Constraints: Logical invariants that must always hold (e.g., every invoice has exactly one issuer).

While neural networks learn statistical correlations from vast text corpora, ontologies provide explicit, governed definitions of meaning.


2. From the Semantic Web to Modern Knowledge Graphs

In 2001, Tim Berners-Lee, Hendler, and Lassila published "The Semantic Web" in Scientific American, envisioning a web of machine-understandable data.

Key milestones in this evolution include:

  • Standards & Reasoners: RDF, OWL, and SPARQL combined with logic reasoners (FaCT++, HermiT, Pellet) and Protégé.
  • Enterprise Graphs: DBpedia (2007), YAGO (2007), Wikidata (2012), and the Google Knowledge Graph (2012) shifting search from "strings to things."
  • Ontology Learning: Early research like Text2Onto attempted automated concept extraction from unstructured text using statistical NLP.

The 2017–2022 Transformer Era

With the rise of large language models, many assumed symbolic ontologies were obsolete. However, pure LLMs suffer from well-documented flaws:

  • Hallucinations: No explicit notion of truth or validation.
  • Inconsistency: Contradictory answers across different prompts.
  • Traceability Gaps: Inability to reliably cite governing rules or canonical sources.

3. The 2026 Convergence: Neuro-Symbolic AI & GraphRAG

Today, the roles have inverted and converged:

  1. LLMs Build Ontologies: Tasks that once required months of manual curation are now bootstrapped by LLMs reading documentation and generating initial OWL/SHACL or JSON schemas in minutes.
  2. GraphRAG & Grounding: Combining vector search with knowledge graphs (Microsoft GraphRAG, 2024) ensures multi-step reasoning with verifiable citations and zero hallucinations.
  3. Structured Contracts: Ontologies act as strict validation layers for LLM outputs, rejecting malformed extractions before they hit downstream systems.
  4. Multi-Agent Governance: Complex agentic enterprise systems rely on a shared ontology layer to coordinate actions without ambiguity.

Summary

In 2005, we attempted to build rigid world models by hand with fragile statistical rules. In 2026, LLMs provide the fluency and reasoning, while ontologies and knowledge graphs provide the truth and governance.

LLMs give fluency. Ontologies give truth.

Share this post