Skip to content

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.

Alessandro ColaceUpdated on 10 October 20265 min read
A row of dim rectangular slabs, like isolated tables, with filaments of light rising from them and weaving into a connected network of violet and white nodes

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.

ClientOrderContractProductSupplier
Data as a network: entities (dots) and relationships (lines), how a knowledge graph reasons.

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.

CriterionYou don't need a graphYou need a graph
DataSmall, tidy, in one systemScattered across systems that don't talk
QuestionsSimple, directSpan several things (multi-hop)
Need explainability?NoYes, the AI must justify its answers
When a knowledge graph is worth the complexity, and when it isn't.

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

Frequently asked questions

A database organizes data into separate tables; a knowledge graph puts the connections between things (clients, orders, suppliers) first. When the value is in the relationships, the graph answers questions a database would need manual work for.

It is the technique of having AI consult a knowledge graph before answering, instead of relying on text similarity alone. Gartner predicts 40% of enterprises will use it by 2029 to improve model accuracy and reasoning.

No. An ontology is a principle, not a product: you can build it on Databricks, Snowflake or BigQuery too. Palantir Foundry made it popular, but the method matters more than the tool.

Keep reading

If it touches your company's data, getting that data in order is the first thing I do.

See Data Foundations

Or write to me.