Originally published at naditu.com/blog/palantir-ontology-action-types-links-and-interfaces-for-erp.
Most enterprise AI teams start building an "ontology" by documenting tables, column descriptions, and SQL GROUP BY metrics. That read-only data catalog helps an assistant summarize last quarter's revenue, yet it breaks the moment an operations planner asks an MCP agent to check live stock, calculate contract discounts, and release a credit-blocked sales order safely.
Reviewing Palantir Foundry's public Ontology specification alongside real-world multi-ERP deployments (SAP S/4HANA, Logo Tiger, Netsis, Nebim V3, Odoo) highlights five structural primitives that separate an operational ontology from a passive semantic layer—without requiring petabyte lakehouse ingestion.
1. Actions Are the Missing Kinetic Half (Action Types)
A data-only ontology describes nouns (Account, SalesOrder, MaterialLot) while leaving mutations to ad-hoc REST endpoints or raw SQL. In an operational ontology, an ActionType defines one named transaction with typed parameters, submission eligibility rules, pre-flight validators, and audit side effects.
Modeling the enterprise write path (Draft -> Human Evaluation -> Official ERP API Import) as a closed catalog of declared ActionTypes guarantees an AI agent can only stage predefined business transactions—never improvise raw UPDATE statements or bypass SAP BAPI / Logo Objects REST business-object invariants.
2. Security and Audit Stand as Pillar Four, Not an Add-On
Operational decisions rest on four equal pillars: Data, Logic, Actions, and Security. Auto-generated schema crawlers routinely lack read-only replica enforcement and caller-level audit trails. Putting Security beside the other three pillars means enforcing:
-
BEGIN READ ONLYreplica isolation on every analytical query, - Caller-inherited row/column RBAC (
Human Role ∩ Agent Capability Ceiling) and mandatory data markings across derived metrics, - Out-of-context human approval nonces and immutable OpenTelemetry (
W3C traceparent) decision logs applied identically to humans and AI agents.
3. Links Are Named, Two-Sided, and Repeatable Between the Same Pair
Naive SQL-to-graph crawlers infer at most one unlabeled join per (SourceTable, TargetTable) pair—silently dropping secondary foreign keys!
In real ERPs, two object types frequently share multiple distinct business relationships simultaneously:
- A Logo Tiger order/invoice references
CLCARD(Account) twice:CLIENTREF(bill-to legal debtor) andRECVREF/TESLIMCARIREF(ship-to consignee), whileSTLINEcarries parallel links to both the order (ORDFICHEREF/SIPREF) and dispatch note (STFICHEREF/IRSREF). - SAP
VBPAbinds four distinctCustomer(KNA1) roles (AGSold-to,WEShip-to,REBill-to,RGPayer) to oneSalesOrder(VBAK).
Declaring LinkTypes by semantic name with two explicit traversal sides (SalesOrder.billedToAccount ↔ Account.billedOrders alongside SalesOrder.shippedToConsignee ↔ Account.consignedOrders) eliminates dropped foreign keys and misrouted shipments.
4. Interfaces Are the Cross-ERP Reuse Layer
Multi-entity industrial groups rarely run a single ERP. Defining abstract Interface shapes (Facility, CommercialOrder, Party) implemented by concrete per-ERP ObjectTypes (SapSalesOrder, LogoTigerSalesOrder, OdooSalesOrder) lets agents and governance workflows target one polymorphic contract rather than branching across each subsidiary's raw schema.
5. "The Model Gathers Inputs; Deterministic Code Does the Math"
Language models excel at extracting user intent and disambiguating entities, but token prediction should never compute multi-tier discounts, FX triangulation, statutory VAT withholding (KDV tevkifat), or Available-to-Promise (ATP) stock. Pairing deterministic Ontology Functions (fixed-point Decimal code returning HMAC-signed outputs) with ActionTypes ensures code does the math before a human approver ever sees a staged ERP transaction.
| Ontology Pillar | Naive Auto-Schema / Text-to-SQL | Governed Operational Ontology |
|---|---|---|
| 1. Actions | Ad-hoc POST / SQL mutations | Closed catalog of declared ActionTypes (Draft -> Evaluate -> ERP API) |
| 2. Security | Shared DB service account, no lineage | Pillar Four: read-only gate, row/column RBAC, traceparent audit |
| 3. Links | One inferred join per table pair (drops TESLIMCARIREF) | Named, bidirectional, repeatable LinkTypes per business role |
| 4. Interfaces | Separate prompts per customer ERP schema | Abstract shapes (Facility, CommercialOrder) over zero-copy replicas |
| 5. Math & Logic | LLM floating-point arithmetic in prompt | Model gathers inputs; deterministic Function computes & signs totals |
Read the full architectural deep dive at naditu.com/blog/palantir-ontology-action-types-links-and-interfaces-for-erp and the vendor-neutral open engineering specification (with TypeScript & YAML schemas) at ontoloji.org/en/guides/operational-ontology-action-types-multi-role-links-and-interfaces.