The question
The word "ontology" now shows up in places it never used to. Enterprise data platforms call their object model an ontology . Agent memory libraries offer "ontology grounding" . And a popular benchmark result from 2023 is often summarised as "knowledge graphs triple LLM accuracy" .
This review asks three linked questions. First, what exactly is an ontology, and how does it differ from a taxonomy, a schema or a knowledge graph? Second, does grounding an LLM in an ontology measurably improve its answers, and on what kind of task? Third, how does an ontology compare with the other ways we hand knowledge to a model: vector stores, relational schemas, property graphs and agent memory?
Two earlier Pico's News features cover neighbouring ground. One asks whether LLMs can build ontologies. The other compares grep, vectors and graphs for retrieval. Here we concentrate on what the formal layer, the ontology itself, adds on top.
What an ontology is, and what it isn't
The word comes from philosophy, where it means the study of what exists. Computer science borrowed it in the early 1990s. Tom Gruber's definition is still the one most people quote: an ontology is an explicit specification of a conceptualization . In plainer terms, you write down, in a form a machine can process, the concepts in a domain and how they relate. Gruber's aim was portability, so that knowledge bases built in different systems could share one vocabulary .
Later work sharpened the definition. The version taught today, "formal, explicit specification of a shared conceptualization", adds two words . Formal means machine-readable with defined semantics. Shared means a community has agreed on it, not just one developer . Nicola Guarino drew a further distinction. The conceptualization is the idea in people's heads and does not depend on any language. The ontology is a logical theory, written in some language, that tries to capture the intended meaning of a vocabulary .
It helps to picture a spectrum. At one end sit catalogues, glossaries and thesauri. Further along come informal hierarchies, then formal is-a hierarchies, then classes with properties and value restrictions, and finally general logical constraints . Lassila and McGuinness set a minimum bar for calling something an ontology: a controlled vocabulary, an unambiguous interpretation, and strict subclass hierarchies . Uschold and Gruninger describe the same range as running from highly informal to rigorously formal .
The question
The word "ontology" pops up everywhere now. Some data companies call their main data model an ontology . Some AI memory tools offer "ontology grounding" . One famous 2023 test is often retold as "knowledge graphs triple AI accuracy" .
We ask three questions. First, what is an ontology? How is it different from a list, a table plan or a web of facts? Second, does an ontology make AI answers better? For which jobs? Third, how does it compare with other ways to give AI knowledge? That means search, tables, webs of facts and AI memory.
Two earlier Pico's News stories are close to this one. One asks if AI can build an ontology. The other compares ways for AI to look things up. Here we focus on what the rule layer adds.
What an ontology is, and what it isn't
The word comes from philosophy. There it means the study of what exists. Computer scientists borrowed it in the early 1990s. Tom Gruber gave the most famous definition. He said an ontology is "an explicit specification of a conceptualization" . In plain words, you write down the ideas in a topic. You also write how they connect. You write it so a computer can read it. Gruber wanted different systems to share one set of words .
Later, people added two words. The common definition now says "formal" and "shared" . Formal means a computer can read it, and the meaning is exact. Shared means a group agrees on it, not just one person . Nicola Guarino split the idea in two. The idea in people's heads is one thing. It needs no language. The ontology is a set of logic rules, written in a language. It tries to pin down what the words mean .
Think of a line from loose to strict. At the loose end are word lists and thesauruses. Next come rough family trees of ideas. Then strict "is a kind of" trees. Then ideas with properties and limits. At the strict end are full logic rules . Two experts set a minimum for calling something an ontology. It needs a fixed set of words. Each word must have one clear meaning. And it needs a strict "kind of" tree . Another pair describe the same line, from very loose to very strict .
The standard machinery for the formal end is the W3C stack. RDF stores facts as subject–predicate–object triples with global identifiers . OWL 2 adds a vocabulary for classes, properties and restrictions with formally defined meaning. Its main semantics corresponds to a description logic, and it has lighter profiles (EL, QL, RL) where reasoning stays tractable . SNOMED CT, the clinical terminology, is maintained with description-logic reasoning under a restricted feature set its authors compare to an OWL 2 profile .
Two properties of OWL matter for anyone hoping to "ground" an LLM. First, OWL reasons under the open-world assumption: a missing fact is unknown, not false . Second, the OWL primer is explicit that OWL is not a schema language for checking that data conforms . An OWL reasoner derives new facts from what you declared. It does not, by default, tell you that your data or your LLM's output is incomplete.
Ontology versus knowledge graph
People often use "ontology" and "knowledge graph" as synonyms. The literature doesn't. Hogan and colleagues define a knowledge graph broadly, as a graph of data meant to accumulate and convey knowledge, and treat the ontology as the formal layer that says what the graph's terms mean . Ehrlinger and Wöß set a stricter bar: a knowledge graph integrates information into an ontology and applies a reasoner . On either reading, a pile of LLM-extracted triples with free-text labels is a graph, but not an ontology.
The same survey notes that RDF graphs and property graphs (the Neo4j style, with attributes on nodes and edges) can be translated into each other. RDF is the more minimal model, property graphs the more flexible one . So the real difference is not the storage format. It is whether there is a formal, agreed layer of meaning on top.
Ontologies in the wild
Real ontologies span the whole spectrum. The Gene Ontology began as a dynamic controlled vocabulary of biological processes, functions and cellular components, shared across all eukaryotes . Schema.org was deliberately kept lightweight so that web publishers would use it, and by 2015–16 its authors found markup on 31.3% of pages in a 10-billion-page sample . Palantir's "Ontology" is an operational layer of objects, properties, links and actions mapped from datasets. When its agents are "grounded" in it, they receive a fixed set of objects or the top-K objects from a semantic search . That is typed retrieval, closer to an enterprise object model than to an OWL ontology.
Strict ontologies use web standards. RDF stores facts as little three-part sentences. Each thing gets a unique web name . OWL 2 adds words for groups, links and limits. Their meanings are exact. Its logic comes from a family called description logic. It has lighter versions where a computer can reason quickly . SNOMED CT is a big list of medical terms. It is kept tidy with this kind of logic .
Two facts about OWL matter for AI. First, OWL assumes the world is open. A missing fact means "unknown", not "false" . Second, OWL is not built to check that data is complete . An OWL reasoner works out new facts from old ones. It won't warn you, by default, that your data or the AI's answer has gaps.
Ontology versus knowledge graph
People often mix up "ontology" and "knowledge graph". Experts don't. One big review says a knowledge graph is any web of facts about the world. The ontology is the strict layer on top. It says what the web's words mean . Another paper sets a higher bar. It says a knowledge graph must also use rules to work out new facts . Either way, a pile of facts made by an AI is a web. It is not an ontology.
The same review says two kinds of web can turn into each other. One kind is simpler. The other is more flexible . So the format is not the real difference. The difference is whether there is a strict, agreed meaning on top.
Ontologies in the wild
Real ontologies sit all along the line. The Gene Ontology started as a shared word list for biology. It covers what genes do, and where in the cell . Schema.org was kept simple on purpose, so websites would use it. By 2015–16, its makers found it on 31.3% of pages they checked. They checked 10 billion pages . Palantir's "Ontology" is a layer of business objects and actions. Its AI helpers get a set list of objects. Or they get the top matches from a search . That is a kind of labelled search. It is closer to a company data model than a strict OWL ontology.
Where ontologies came from, and what they cost
Ontologies grew out of the expert-systems era. Edward Feigenbaum identified acquiring domain knowledge from experts as the field's bottleneck . The most ambitious response was Cyc, a hand-built ontology and knowledge base of common sense. By 1995 Lenat reported about a person-century of effort . By 2023 he and Gary Marcus put the total at four decades and about 2,000 person-years, and conceded that fast reasoning in expressive logics remained unsolved .
Even very large curated graphs stay incomplete. Google's Knowledge Vault team found that 71% of people in Freebase had no known place of birth and 75% no known nationality . This is why the open-world assumption exists, and also why a graph cannot simply be treated as the whole truth when an LLM answers from it.
The cost question has changed shape. LLMs now draft ontologies, which our earlier feature examined in detail. The short version is that they do well at terms and familiar hierarchies and poorly at axioms . The bottleneck has moved from typing knowledge in to checking what the model typed.
Does an ontology make an LLM answer better?
The strongest evidence comes from question answering over structured enterprise data, where the "answer" is a database query that either returns the right rows or doesn't.
The enterprise SQL benchmark
In 2023, Sequeda, Allemang and Jacob built a benchmark on an insurance data model: 43 questions, split by question complexity and schema complexity . GPT-4, zero-shot, wrote SQL directly against the relational schema in one arm. In the other, it wrote SPARQL against a knowledge graph of the same data, described by an OWL ontology and mapped from the database. Overall accuracy rose from 16.7% to 54.2%. On the two high-schema-complexity quadrants, SQL scored 0% while the graph arm scored 35.7% and 38.5% .
A follow-up added an ontology-based query check . Generated SPARQL was tested against the ontology's domain and range rules by a deterministic checker. Violations were explained back to the model for up to three repair attempts. Queries that still failed were answered "I don't know". Accuracy rose from 42.88% on the first attempt to 72.55%, with 8% "I don't know" and about 19% still wrong .
Where ontologies came from, and what they cost
Ontologies grew out of early "expert systems". Edward Feigenbaum said the hard part was getting knowledge out of experts' heads . The biggest try was Cyc. People typed common sense into it by hand. By 1995, about a person-century of work had gone in . By 2023, the total was four decades and about 2,000 person-years. Its founder admitted fast reasoning was still unsolved .
Even huge fact webs have holes. One Google team checked Freebase. 71% of people in it had no known birthplace. 75% had no known nationality . That is why OWL treats missing facts as unknown. It is also why AI can't treat a web of facts as the whole truth.
The cost question has changed. AI can now draft ontologies. Our earlier story looked at this closely. In short, AI is good at words and simple trees. It is weak at the strict rules . The hard part has moved. Typing knowledge in is easier. Checking the AI's draft is now the work.
Does an ontology make an LLM answer better?
The best evidence comes from company databases. There, the AI writes a database query. The query either finds the right rows or it doesn't.
The company database test
In 2023, three researchers built a test on an insurance database. It had 43 questions. Some were easy and some were hard. Some used small database plans and some used big ones . In one setup, GPT-4 wrote SQL straight against the database. In the other, it wrote SPARQL against a web of the same facts. That web came with an OWL ontology. Overall, correct answers rose from 16.7% to 54.2%. On the two hardest groups, SQL scored 0%. The web scored 35.7% and 38.5% .
A follow-up added an ontology checker . A fixed program tested each query against the ontology's rules. If a rule broke, the AI was told why. It got up to three tries to fix it. If it still failed, the answer was "I don't know". Correct answers rose from 42.88% on the first try to 72.55%. 8% were "I don't know". About 19% were still wrong .
These are large effects, but the caveats are real. There is one schema, 43 questions and one model, and all the authors work for a knowledge-graph vendor . The SQL arm received only the table definitions, while the graph arm received the ontology, so the arms did not get the same information . The follow-up's first-attempt baseline (42.88%) is also lower than the original paper's 54.2%, and the paper doesn't explain why . Its checker also treats classes not declared as related as disjoint, which is a closed-world reading at odds with OWL semantics .
These are big jumps, but there are catches. There was one database, 43 questions and one AI model. All the authors work for a company that sells knowledge graphs . The SQL setup only got table names. The web setup got the full ontology. So the two setups didn't get the same help . The follow-up's first-try score (42.88%) is also lower than the first paper's 54.2%. The paper doesn't say why . Its checker also treats unlinked groups as separate. That bends OWL's open-world rule .
Is it the ontology, or the meaning?
Later tests suggest that much of the gain comes from adding business meaning in any form, not from graphs as such. dbt Labs re-ran the insurance questions in 2026 against a semantic layer, a curated model of metrics and entities rather than an ontology . With current models, the semantic layer scored 72.7% against 64.5% for text-to-SQL. After an LLM added three data models, the semantic layer reached 98.2–100% and text-to-SQL 84.1–90.0% . Text-to-SQL itself has improved: with 2023's GPT-4 the same comparison was 32.7% against 60.5% . The semantic layer scored 0% on multi-hop questions its model didn't cover, where one model's text-to-SQL scored 100% . This is a vendor blog with a small question set.
A 2026 preprint went further, using no graph at all. Adding a hand-written 4 KB markdown document of business definitions to the schema raised text-to-SQL accuracy by 17–23 points across three frontier models, on 100 questions .
Is it the ontology, or the meaning?
Newer tests hint at something. Much of the gain may come from adding meaning in any form. It may not need a web at all. In 2026, dbt Labs ran the insurance questions again. They used a "semantic layer". That is a tidy list of business numbers and things. It is not an ontology . With new AI models, the semantic layer scored 72.7%. Plain SQL scored 64.5%. Then an AI added three extra data models. The semantic layer reached 98.2–100%. Plain SQL reached 84.1–90.0% . Plain SQL has got better fast. With 2023's GPT-4, the same test scored 32.7% against 60.5% . The semantic layer scored 0% on multi-step questions it didn't cover. On those, one model's plain SQL scored 100% . This is a company blog with only a few questions.
A 2026 paper went further. It used no web at all. It added a short 4 KB text file of business meanings. Correct answers rose by 17–23 points. That held across three top AI models, on 100 questions .
Unstructured text and open domains
Outside databases, the evidence is weaker and more mixed. OG-RAG maps documents onto a domain ontology and retrieves ontology-shaped "fact blocks". On a soybean corpus it raised context recall over chunk RAG from 0.22 to 0.84, and GPT-4o's answer correctness from 0.31 to 0.48 . The ontologies were curated, the corpora small, and the metrics scored by an LLM . On CRAG, adding knowledge-graph APIs to five retrieved web pages raised GPT-4 Turbo's accuracy from 35.9% to 41.3% and cut hallucination from 28.2% to 25.1% . When the graph is the curated source of truth, letting the model walk it helps: Think-on-Graph lifted ChatGPT from 38.8 to 57.1 Hits@1 on CWQ .
Writing queries against an ontology is still hard. In the 2025 Text2SPARQL challenge, the best systems scored between 0.43 and 0.55 on DBpedia and a corporate ontology .
Ontologies versus other ways of structuring knowledge
Pan and colleagues sort LLM-plus-graph work into three families: graphs that improve LLMs, LLMs that build or complete graphs, and systems where the two work together . Most of the "graph RAG" wave belongs to the first family, and almost none of it uses an ontology.
Microsoft's GraphRAG has an LLM extract entities and relationships from text, groups them into communities with the Leiden algorithm, and summarises each community . The graph has no fixed schema. On "global" questions about a whole corpus, an LLM judge preferred its answers to vector RAG's for comprehensiveness 72–83% of the time on podcast transcripts and 72–80% on news .
Independent evaluations are cooler. Han and colleagues found that triplet-only graph retrieval scored 34.28 F1 on Natural Questions, against 64.78 for plain chunk RAG. The graphs the LLM built contained only about 65% of the answer entities . Community-based GraphRAG came close to RAG and edged ahead on some multi-hop sets . GraphRAG-Bench found that basic RAG matches GraphRAG on simple fact retrieval, while graphs help on complex reasoning . A peer-reviewed study in PVLDB reached the same conclusion and added that keeping the original text chunks is crucial . HippoRAG 2, which keeps passages in its graph, beat strong dense retrieval where earlier graph methods had lost to it .
Plain text and the open world
Outside databases, the evidence is weaker and mixed. OG-RAG sorts documents using an ontology. Then it fetches facts in ontology-shaped bundles. On soybean papers, finding the right facts rose from 0.22 to 0.84. GPT-4o's correct answers rose from 0.31 to 0.48 . But experts built the ontologies. The test sets were small. An AI did the marking . Another test is called CRAG. There, adding a fact web to five web pages helped a bit. GPT-4 Turbo's correct answers rose from 35.9% to 41.3%. Made-up answers fell from 28.2% to 25.1% . When the web is a trusted source, walking it helps. Think-on-Graph lifted ChatGPT from 38.8 to 57.1 on one test .
Writing queries for an ontology is still hard for AI. In a 2025 contest, the best systems scored only 0.43 to 0.55 .
Ontologies versus other ways of structuring knowledge
One review sorts AI-and-web work into three groups. Webs can help AI. AI can build webs. Or the two can work as a team . Most "graph RAG" tools are in the first group. Almost none use an ontology.
Microsoft's GraphRAG asks an AI to pull out names and links from text. It groups them into clusters, then sums up each cluster . The web has no fixed rules. On big-picture questions about podcasts, an AI judge liked its answers better 72–83% of the time .
Outside tests are cooler. One team found that a facts-only web scored 34.28 on a common quiz. Plain search scored 64.78. The AI-built webs held only about 65% of the right answers . Cluster-based GraphRAG came close to plain search. It did a bit better on some multi-step quizzes . Another test found plain search matches GraphRAG on easy facts. Webs help on harder reasoning . A checked study agreed. It said keeping the original text is key . HippoRAG 2 keeps the text inside its web. It beat strong search where older web tools lost .
The judging method matters too. When Han and colleagues swapped the order of answers shown to the judge, GraphRAG's win rate on one summary task went from 0.97 to 0.12 . Zeng and colleagues corrected for position, length and trial bias. LightRAG's reported 66.70% win rate over naive RAG on one dataset fell to 39.06% .
So does cost. On GraphRAG-Bench's novel corpus, vanilla RAG used about 879 tokens per query, against roughly 331,000 for GraphRAG's global search . Microsoft's own team warns that indexing is expensive, and it built LazyGraphRAG partly to cut that cost . Graphs also open a new attack surface. They resist ordinary retrieval poisoning better than plain RAG, but an attack designed for the graph reached success rates of 58.7–96.9%, depending on the dataset and attacker model .
None of these results tests an ontology. They test schema-free graphs built by an LLM. What they do show is that structure without a formal layer is not automatically better than text, and that it costs much more.
Ontologies versus agent memory
Agent memory is a different problem from retrieval. The store keeps changing, facts go stale, and the agent has to update and forget as well as recall. The CoALA framework divides long-term memory into episodic (what happened), semantic (what is true about the world and the agent) and procedural (how to act) . An ontology is one way to structure the semantic part, but the systems in use mostly don't.
Generative Agents kept an append-only stream of natural-language observations, with reflections summarising them . MemGPT treated context like an operating system's memory hierarchy, with the model paging text between tiers . A-Mem writes linked, tagged notes whose structure emerges from the model, not from a designed schema . Mem0's graph variant stores entities and relations with free-form labels in Neo4j . Zep's Graphiti builds a bi-temporal graph of episodes, entities and communities. Its authors flag formal graph ontologies as something that warrants further exploration .
How you mark the test matters too. One team swapped the order of answers shown to the AI judge. GraphRAG's win rate on one task fell from 0.97 to 0.12 . Another team fixed several judge biases. LightRAG's 66.70% win rate fell to 39.06% .
Cost matters as well. Plain search used about 879 tokens per question. GraphRAG's big-picture mode used about 331,000 . (A token is a small piece of a word.) Microsoft's own team warns that building the web is costly. They made a cheaper version partly for that reason . Webs can also be attacked in new ways. They resist simple tricks better than plain search. But an attack built for webs worked up to 96.9% of the time .
None of these tests use an ontology. They test loose webs made by an AI. They show that structure without strict meaning doesn't beat plain text. And it costs much more.
Ontologies versus agent memory
AI memory is a different job. The facts keep changing. Old facts go stale. The AI must update and forget, not just remember. One framework splits long-term memory into three kinds. Episodic means what happened. Semantic means what is true. Procedural means how to do things . An ontology could organise the "what is true" part. But most memory tools don't use one.
Generative Agents kept a long diary of plain sentences. It wrote summaries of its own diary . MemGPT copied how computers handle memory. The AI moves text between fast and slow storage . A-Mem writes linked notes with tags. The AI invents the structure as it goes . Mem0's web version stores names and links with free labels . Zep builds a web that tracks when each fact was true. Its makers say strict ontologies need more study .
On accuracy, the record is underwhelming and disputed. On LoCoMo, Mem0's evaluation found that full context scored 72.90, ahead of every memory system tested. Mem0's graph variant scored 68.44, plain Mem0 66.88, Zep 65.99 and the best chunk RAG 60.97 . Memory's win was efficiency: p95 latency fell from about 17.1 s to 1.4 s, and context from about 26,000 tokens to 1,800 . The graph variant beat plain Mem0 on temporal questions but lost on multi-hop ones . Zep disputes how it was configured and reports 75.14 under its own setup . Letta's agent, with plain file tools over the raw history, scored 74.0% . LoCoMo's conversations are short enough to fit in context, which limits what it can show .
On longer histories, structure starts to pay. On LongMemEval, Zep scored 71.2% against 60.2% for full context with GPT-4o, while cutting latency from 28.9 s to 2.58 s, though it lost ground on questions about what the assistant itself had said . LongMemEval's own authors found a design rule that is worth keeping. Extracted facts used as extra index keys over the raw text improved retrieval. Facts used instead of the text made it worse .
On being right, the results are weak and argued over. In Mem0's test on LoCoMo, giving the whole chat scored 72.90. That beat every memory tool. Mem0's web version scored 68.44. Plain Mem0 scored 66.88. Zep scored 65.99. The best simple search scored 60.97 . Memory's win was speed. Slow answers dropped from about 17.1 seconds to 1.4 seconds. The text it sent dropped from about 26,000 tokens to 1,800 . The web version beat plain Mem0 on time questions. It lost on multi-step ones . Zep says Mem0 set it up wrong. With its own setup, Zep reports 75.14 . Letta gave an AI simple file tools and the raw chat. It scored 74.0% . LoCoMo's chats are short enough to fit in the AI's view. So the test can't show much .
On longer chats, structure starts to pay off. On LongMemEval, Zep scored 71.2%. The whole chat scored 60.2%, with GPT-4o. Zep also cut waiting from 28.9 seconds to 2.58 seconds. But it did worse on what the AI itself had said . LongMemEval's makers found a useful rule. Facts work well as extra labels that point to the raw text. Facts used instead of the text made things worse .
Where are the ontologies? Graphiti lets developers declare entity and edge types, and Cognee can load an OWL ontology and fuzzy-match extracted entities against it. Neither publishes evidence that this improves accuracy . The strongest pro-schema result we found is a vendor preprint reporting 97.10% end-to-end F1 against 80–87% for rival memory systems, on its own benchmark and with no schema ablation visible . We found no independent study comparing ontology-guided memory with schemaless memory.
Can the model use the ontology it's given?
If an ontology is meant to make answers more correct, the model has to respect it. The evidence says LLMs read ontologies better than they reason with them. On OntoURL, a benchmark of about 58,000 questions, open models scored well on understanding but reached only about 69% at best on description-logic reasoning, and near zero when asked to build ontology structure zero-shot . On DL-Lite ontologies, models handled syntax but struggled with chains of negative inclusions and with spotting inconsistency, and they tended to accept incorrect axioms . Generated ontologies show the same weakness: in one expert review, every generated file had incorrect domains and ranges .
This explains why the most convincing use of an ontology so far is outside the model. Domain and range violations are exactly what Allemang and Sequeda's checker catches . dbt makes the matching practical point: with a semantic layer, a failure surfaces as an error message instead of a plausible wrong number .
Where the evidence disagrees
- Ontology or semantics? The 16.7% → 54.2% result is often credited to the knowledge graph . Semantic layers and plain-text definitions produce gains of a similar size, so the active ingredient may be explicit business meaning rather than graph structure . No study has isolated the two on the same benchmark. Contested.
- Do graphs beat text? Self-reported LLM-judge results favour graph RAG . Independent F1 evaluations and debiased judging mostly do not, except on multi-hop and global questions . Contested, leaning against.
- Does structured memory beat full context? Not on short histories like LoCoMo . It does on long ones like LongMemEval, in a vendor's own evaluation . The same system scored 65.99 and 75.14 depending on who ran it . Contested.
- Open world or closed world? OWL is designed so that missing facts are unknown . The most effective validator so far deliberately reads the ontology in a closed-world way . Whether that is a pragmatic fix or a misuse of OWL is unsettled.
What this means in practice
This section is our interpretation of the evidence above.
- Start with meaning, not machinery. Before building a graph, write down what your business terms mean, which joins are valid and what each metric is. A semantic layer or even a short definitions document captures much of the measured benefit at low cost .
- Use an ontology where you can check against it. Its strongest measured role is as a deterministic validator of model output, with an explicit "I don't know" when repair fails . Loud failure beats plausible wrong answers .
- Don't expect a schema-free graph to beat good chunk retrieval on facts. Keep the source text, test hybrid retrieval, and budget for indexing and per-query cost .
- For agent memory, use structure as an index, not a replacement. Keep raw episodes and add extracted facts or typed entities as keys . Test against a full-context or filesystem baseline before trusting a leaderboard .
- Ask what "ontology" means when a vendor says it. It may be an OWL ontology with a reasoner, an object model, a metrics layer or a typed graph . Each makes different promises.
Open questions & opportunities
Speculation is labelled as such.
- An isolating benchmark. Run the same questions with schema only, with a text glossary, with a semantic layer and with a full OWL ontology plus checker, on several schemas and models. This would settle the "ontology or semantics" question.
- Ontology-guided memory, ablated. Graphiti and Cognee already support types and ontologies . A study that switches the schema on and off, on long-horizon benchmarks with updates, is overdue.
- SHACL and validation at scale. Speculation: constraint languages built for validation may fit LLM checking better than OWL's open-world reasoning, but we found no strong quantified study.
- Cheaper meaning. LLMs can draft ontologies and semantic models, and humans can review them . Measuring end-to-end time and error from draft to deployed checker would be valuable.
Limitations of this review
- Thin core evidence. The headline enterprise result rests on one 43-question benchmark by vendor authors, with no independent replication of the full set that we could find .
- Many preprints and vendor sources. GraphRAG, MemGPT, Zep and several critiques are not peer-reviewed, and Mem0, Zep, dbt and data.world results are vendor-authored. Memory-system numbers depend heavily on who ran them.
- Definitions vary. "Ontology", "knowledge graph" and "semantic layer" are used loosely in the sources, so we classified systems by what they do, not what they are called.
- Fast-moving models. Several results use GPT-4-era models. dbt's re-run shows text-to-SQL baselines improving quickly .
- Weak medical and validation evidence. We found no strong peer-reviewed study of SNOMED- or UMLS-grounded LLMs with a hallucination metric, nor of SHACL-based validation of LLM output.
Method
- Date researched: 2 December 2026.
- Approach: five parallel lines of inquiry: foundations, frontier methods (2023–2026), evidence and benchmarks, critique, and agent memory with applied deployments.
- Sources searched: ACL Anthology, arXiv, OpenReview, NeurIPS, ICLR and ICML proceedings, PVLDB, Springer LNCS (ISWC/ESWC), CEUR-WS, W3C recommendations, publisher pages and official vendor documentation.
- Representative queries: "ontology definition Gruber Studer", "knowledge graph definition", "knowledge graph LLM accuracy enterprise SQL", "ontology-based query check", "OG-RAG", "RAG vs GraphRAG", "unbiased GraphRAG evaluation", "LLM description logic reasoning", "Mem0 LoCoMo", "Zep temporal knowledge graph", "LongMemEval", "semantic layer text-to-SQL benchmark".
- Inclusion criteria: foundational definitions and standards; primary studies that measure the effect of ontologies, knowledge graphs or semantic layers on LLM answers; critiques; and agent-memory systems and benchmarks. Peer-reviewed work was preferred. Preprints and vendor material were included and labelled.
- Screening: about 140 records screened across the five lines of inquiry; 52 sources included after deduplication.
- Verification: an independent verification pass, made without sight of the draft, checked every citation's metadata, excerpt and key numbers against the source. Corrections were applied and unverifiable items were removed.
So where are the ontologies? Graphiti lets builders name types of things and links. Cognee can load an OWL ontology and match names to it. Neither shows proof that this makes answers better . The strongest case for rules comes from one company's paper. It reports 97.10% against 80–87% for rivals. But it used its own test. And it shows no test with the rules switched off . We found no outside study of memory with an ontology versus memory without.
Can the model use the ontology it's given?
An ontology only helps if the AI follows its rules. The evidence says AI reads ontologies better than it reasons with them. One test had about 58,000 questions. Open AI models understood ontologies well. But their best logic score was only about 69%. They scored near zero when asked to build one from scratch . On another kind of ontology, models got the grammar right. They struggled with long chains of "is not" rules. They missed clashes, and they accepted wrong rules . AI-made ontologies show the same weak spot. In one expert check, every file had wrong links between groups .
This explains why the best use so far is outside the AI. Those wrong links are exactly what the checker catches . dbt makes the same point. With a semantic layer, a mistake shows up as an error message. You don't get a wrong number that looks right .
Where the evidence disagrees
- Ontology or meaning? The 16.7% → 54.2% result is often credited to the web . But a semantic layer or plain text gives similar gains. So the key may be clear business meaning, not the web . No study has tested both on the same questions. Contested.
- Do webs beat plain text? Tests by the builders, marked by AI, favour webs . Outside tests and fairer judges mostly don't. The exception is multi-step and big-picture questions . Contested, leaning against.
- Does memory with structure beat the whole chat? Not on short chats like LoCoMo . It does on long ones like LongMemEval, in the maker's own test . One tool scored 65.99 or 75.14, depending on who ran it . Contested.
- Open world or closed world? OWL treats missing facts as unknown . The best checker so far treats them as false on purpose . Is that a smart fix or a misuse of OWL? Experts haven't settled it.
What this means in practice
This part is our reading of the evidence.
- Start with meaning, not tools. Before building a web, write down what your business words mean. Note which links between tables are valid. Note what each number means. A semantic layer or a short text file gets much of the gain cheaply .
- Use an ontology where you can check against it. Its best tested job is checking the AI's work. Let the system say "I don't know" when fixing fails . A clear failure beats a wrong answer that looks right .
- Don't expect a loose web to beat good search on facts. Keep the original text. Try mixing methods. Plan for the extra cost .
- For AI memory, use structure as labels, not a replacement. Keep the raw history. Add facts or types as pointers . Compare with simply giving the whole chat before trusting a scoreboard .
- Ask what a seller means by "ontology". It could be strict OWL with logic. It could be a data model, a list of numbers or a labelled web . Each one promises different things.
Open questions & opportunities
Guesses are marked as guesses.
- A fair head-to-head test. Try the same questions four ways. First, table names only. Then a text glossary, then a semantic layer. Last, a full ontology with a checker. Use many databases and models. That would show whether the ontology or the meaning does the work.
- Memory with and without rules. Graphiti and Cognee already support types and ontologies . Someone should test them with the rules on and off. Long tests with changing facts would be best.
- Checking tools at scale. Guess: tools built for checking data may suit AI better than OWL. We found no strong study yet.
- Cheaper meaning. AI can draft ontologies and semantic layers. People can then review them . It would help to measure the whole job, from draft to working checker.
Limitations of this review
- The main evidence is thin. The big company-database result rests on one 43-question test. Its authors work for a seller. We found no outside repeat of the full test .
- Many unchecked papers and company sources. GraphRAG, MemGPT, Zep and several critiques are not peer-reviewed. Several results come from the companies that sell the tools. Memory scores depend a lot on who ran the test.
- Words mean different things. Sources use "ontology", "knowledge graph" and "semantic layer" loosely. So we sorted tools by what they do, not what they're called.
- AI models change fast. Some results use older GPT-4 models. dbt's re-run shows plain SQL improving quickly .
- Weak medical and checking evidence. We found no strong checked study of medical ontologies with AI that measured made-up answers. We also found none on rule-checking tools for AI output.
Method
- When: 2 December 2026.
- How: five lines of inquiry at once. They covered history, new methods, test results, criticism, and AI memory in real use.
- Where we looked: ACL Anthology, arXiv, OpenReview, NeurIPS, ICLR and ICML papers, PVLDB, Springer LNCS (ISWC/ESWC), CEUR-WS, W3C standards, publisher pages and company docs.
- Example searches: "ontology definition Gruber Studer", "knowledge graph LLM accuracy enterprise SQL", "OG-RAG", "RAG vs GraphRAG", "Mem0 LoCoMo", "LongMemEval", "semantic layer text-to-SQL benchmark".
- What we kept: key definitions and standards. Papers that measured whether ontologies, webs or semantic layers help AI. Also criticism, and AI memory tools and tests. Checked papers came first. Unchecked papers and company material were kept, with labels.
- How many: about 140 looked at, 52 kept.
- Checking: a separate check, done without seeing our draft, looked at every source. It checked names, quotes and numbers. We fixed what it found. Anything we couldn't confirm came out.
