How Palantir Foundry Ontology Works
Objects, links and actions: the business layer Palantir builds on top of your messy data.
Transcript
Palantir's own chief architect describes the Ontology as the nouns and the verbs of a company. Objects and links are the nouns. Actions are the verbs. Put them in a sentence and you've made a decision.
That's a nice line, but what IS it? Like, is it a database?
No, and that's the first thing to get straight. It sits on top of your databases and translates them into real-world concepts: a Machine, a Work Order, a Supplier. Not tables, things.
Honestly my assumption was that you just point it at your ERP system and it mirrors the tables.
That's the number one anti-pattern. A Palantir consultant, Michael Ellerbeck, wrote it up this February: if your object type is a direct copy of a source table, you've done it wrong. His test is whether the model is easier for a database admin to read than for an operator.
So the ontology is supposed to mirror the world, not the warehouse.
Exactly the design principle Palantir teaches. A virtual twin of what exists outside, not of your datasets. So, piece one: object types and properties. Then link types, which connect them. A hospital system that BD Emerson built this year has beds, units, staff, patients, and the events that move patients between them.
And the links are, what, this patient is in that bed?
Right, and links can be many-to-many. One nurse to many patients, one patient across many units over a stay. Every number on the charge nurse's dashboard traces back to the source system that produced it. That's lineage.
Okay so far it's a fancy map. Where does anything actually happen?
Actions. That's the kinetic half. An action is a defined, governed thing a person or an AI can do: reassign a work order, close a work order. And crucially it writes back into the real systems.
Writes back? So it's not just reading your data, it's changing the hospital's actual records?
That's the line between an analytical system and an operational one. Palantir's architecture paper says decisions get staged as scenarios, reviewed, then synced back to transactional systems, edge devices, rugged assets in the field.
Who's allowed to press the button though? That sounds terrifying.
There's a split: people who can explore options, people who can stage them for review, people who can commit. And each decision is logged with which version of the data it was made on.
Decision lineage.
Their term for it. And a developer writing about production ontologies in September argued most teams get this backwards: they design row-level read access beautifully and then let any editor submit any action.
Classic. Lock the front door, leave the window open.
The other killer mistake is the primary key. Every object type needs a unique ID, and Palantir says it must be a string, in its own column called id.
Why does that matter so much? It's just an ID.
Because links, user edits and every app downstream hang off it. If your key is a row number that gets regenerated each time the pipeline runs, your links break and people's edits get orphaned. Changing it later is expensive.
Orphaned edits. So a nurse's note just... detaches from the patient.
That's the fear. Which is why the advice is: unique, deterministic, stable across rebuilds. No reissued badge numbers. Now the newest piece. As of the week of November ninth, Palantir made Ontology SQL generally available across all Foundry enrollments.
Finally, SQL. So I can just query the whole thing like a warehouse?
No, and this is where people will trip. It's read-only. One SELECT statement, no writes, no schema changes, and you can't mix ontology objects and raw datasets in the same query.
Huh. So it's deliberately fenced in.
Plus hard limits: a twenty-second execution timeout, up to six seconds of queueing when Spark is saturated, and results truncated at ten thousand rows.
Ten thousand? That rules out anything like a big report.
Which matches the design advice, actually. Heavy aggregations belong in datasets and analytics tools. The ontology is for the entities people act on.
Alright. Say I've got an energy company, fifty thousand turbines, and I want a monthly report of total downtime hours by region. Ontology or not?
Go on, what's your call?
Not. That's a big aggregation, no one's taking an action on it, and I'd blow past ten thousand rows anyway. Put it in the warehouse.
Right. The ontology version is Turbine objects linked to Maintenance Jobs, with an action a technician presses to dispatch a crew. Report in Snowflake, decision in Foundry.
And presumably that's the honest case against all of this.
It is. InfoWorld ran a data engineer's take in August: he said the self-service layer felt like the default in Foundry, versus deliberate engineering effort on Snowflake. But he also said a strong team could build a better, more tailored layer themselves.
And it isn't cheap, I assume.
Palantir publishes no list price. From UK procurement records, core-based licences start around sixty-six thousand pounds per server core per year. His question for any organisation: what share of your people can actually write SQL?
If it's most of them, you don't need the translation layer.
That's the test. So: objects and links as the semantic map, actions as the governed verbs that write back, decision lineage recording who did what on which data, and a stable string primary key holding it all together.
And don't copy your ERP in there.
Don't copy your ERP in there.
Sources
Katy and Theo researched this episode from these sources.
- Palantir’s Ontology SQL is GA—but its execution limits should shape your rollout — nl2sql.ai
- Ontology basics (v2, latest) • API Reference • Palantir
- Hospital System Palantir Foundry Case Study | BD Emerson
- Palantir Foundry vs. Snowflake: A data engineer's honest take | InfoWorld
- A few Palantir Ontology Anti-Patterns (Don’t do this) – Michael Ellerbeck
- Deep Dive: Advanced Ontology | DevCon 5 Transcript, Summary & Key Takeaways — transcribe
- by Akshay Krishnaswamy, Chief Architect, Palantir
- Palantir Foundry vs. Traditional Data Platforms: When Does Enterprise Consulting Make Sense?
- Designing a Palantir Foundry Ontology That Holds Up in Production: Object Types, Link Types, and Action Governance - DEV Community
- Sovereign AI for the Supply Chain, Built on Infrastructure You Control | Dell USA