Knowledge graphs and ontologies: AI you can trust
AI projects fail on the data, not the model. Knowledge graphs and ontologies in plain words: Gartner expects 40% of firms on GraphRAG by 2029.

Key takeaways
- Gartner expects 60% of AI projects lacking AI-ready data to be abandoned by 2026; RAND puts failures above 80%.
- With data structured as a graph, the same model goes from 17% to 54% correct answers (data.world).
- Gartner predicts 40% of enterprises will use GraphRAG by 2029.
- The ontology matters more than the platform it is built on.
In every company there's a person who "knows everything": which client is tied to which project, handled by which supplier, with that issue still open since March. They hold it in their head, made of connections. The day they go on vacation, you notice. And when you try to replace them with AI, you find that the AI talks beautifully but doesn't have their map. So now and then it makes the answers up.
Gartner reckons that through 2026 companies will scrap 60% of AI projects that aren't backed by AI-ready data; RAND's estimates put failure north of 80%, with data among the top causes. The bottleneck isn't the model.
Knowledge graphs and ontologies give that map to a machine.
Your company as a network of connections
Draw your company as a network of dots joined by lines. The dots are the things that matter: a client, a product, an order, a supplier. The lines are the links: this client signed that contract, covering that product, supplied by that plant. A knowledge graph is your company as a network of connections, not twenty separate tables.
In traditional systems the connections exist but are hidden, and every new question that crosses them is manual work. In a graph the connections come first: you walk on them. Tables stay the right call for plenty of cases. The graph earns its place when the value is in the connections, and in a business it almost always is.
Ontologies: agree on the words
To sales a "client" is whoever signed; to support, whoever has an active contract; to finance, whoever paid. Three teams, three meanings, reports that never match. That's the number-one hidden cost of data, and it's not technology: it's the words. The ontology is the agreement that fixes it: a shared dictionary that aligns people and systems on what the company's words mean and which links make sense. "An order belongs to a customer." Simple rules, written once. It's the grammar that holds the graph together, and it grows one piece at a time: start from the few entities that matter and expand only where it pays.
There's one more piece a plain shared dictionary doesn't have: an ontology in the strict sense (the OWL kind) also encodes inference rules. If "an active contract implies a current client" is a rule written once, the system automatically deduces consequences nobody entered by hand. Inference rules are what separate an ontology from a plain schema table or a data dictionary, which stop at agreeing on names. That's also why much of what gets called "ontology" today isn't one.
The Palantir approach (and why you don't need Palantir)
Palantir brought this idea to the mainstream: in its Foundry platform the ontology is the layer on top of the data that describes the business: objects, relationships, even the actions you can take (a kind of "digital twin" of the organization). Strong design. Credit where it's due (and on why Palantir as a company is polarizing, I cover that separately).
But the principle is independent of the tool. Building a shared model of the company and letting AI reason over it works on Databricks, Snowflake or BigQuery too. On Foundry or elsewhere, it's how I work.
Why does this make AI trustworthy?
The real obstacle to AI in business isn't power: it's trust. A tool that occasionally makes things up doesn't get near your processes, and rightly so. Instead of letting the AI answer "from memory", you let it consult your data first. If that data is connected in a graph governed by an ontology, the AI follows your company's real links, even several hops away (supplier → component → product → client), which plain text similarity can't do. Answers become verifiable: you can always ask "where did you get that?", which is the minimum bar for putting an answer in front of a client.
How widely is this used today?
Gartner predicts that by 2029, 40% of enterprises will use GraphRAG techniques to improve the accuracy and reasoning of their AI. The strongest source here is Microsoft Research, which sells no graph technology and publishes its methodology: its GraphRAG consistently beats classic RAG on questions that demand joining several pieces together (multi-hop reasoning), though Microsoft doesn't give a fixed multiplier. As directional confirmation, not as the main proof, add two independent-of-each-other benchmarks that happen to both come from graph-technology vendors (so neither is a third-party test): one from data.world across 43 real business questions and one from Diffbot and FalkorDB, landing on the same order of magnitude: the exact same model jumps from roughly 17-20% correct answers to over 50% once the data gets a graph structure instead of raw SQL, a 3 to 3.4x gain in both cases.
And the market is backing it with its wallet: in July 2026 Snowflake launched Cortex Sense, a contextual "grounding" engine for enterprise AI agents. Another major vendor, the same underlying idea: ontology first, agent second.
When you DON'T need it (yes, that's a thing)
If you have small and tidy data and simple questions, a graph is complexity that won't pay you back, so skip it. It helps when data is scattered across systems that don't talk, the valuable questions span several things, and you need AI that explains itself.
| Criterion | You don't need a graph | You need a graph |
|---|---|---|
| Data | Small, tidy, in one system | Scattered across systems that don't talk |
| Questions | Simple, direct | Span several things (multi-hop) |
| Need explainability? | No | Yes, the AI must justify its answers |
In short
Trustworthy AI doesn't come from a bigger model, but from data that finally talks to each other. The knowledge graph is how you get it talking; the ontology is the grammar. The platform (Palantir or otherwise) is chosen afterwards, once the graph and the ontology are settled. And it's the same graph that becomes common ground when the "talking" is done by multiple AI agents that need to coordinate with each other. The same principle, applied to location data, sits at the center of geospatial data governance.
Sources and further reading
- Gartner: Lack of AI-Ready Data Puts AI Projects at Risk (2025) (accessed July 2026)
- RAND: The Root Causes of Failure for AI Projects (2024) (accessed July 2026)
- Gartner: Top Trends for Data & Analytics 2026 (accessed July 2026)
- data.world: knowledge graph and LLM accuracy benchmark (accessed July 2026)
- Microsoft Research: Project GraphRAG (accessed July 2026)
- Diffbot / FalkorDB: GraphRAG vs vector RAG benchmark (accessed July 2026)
- Snowflake: Cortex Sense, grounded context for enterprise AI agents (2026) (accessed July 2026)
- Palantir: Ontology (Foundry documentation) (accessed July 2026)
- W3C: OWL, the Web Ontology Language
Frequently asked questions
Keep reading

The ontology illusion: a buzzword for not talking about data
Gartner: 80% of data governance initiatives will fail by 2027. Why 'ontology' is the buzzword of the moment, but without clean data it's still just marketing.

Stigmergy: what it is and what ants teach AI agents
Ants coordinate with no boss or messages. In 2025 the idea came back: Cursor measured 70,000 merge conflicts among poorly coordinated AI agents.

Temporal knowledge graphs: why Pluto breaks your graph
Is Pluto a planet? Not since 2006, but it was one for 76 years. A static knowledge graph erases that history: here is the bitemporal model that keeps it.
If it touches your company's data, getting that data in order is the first thing I do.
See Data Foundations