One business entity across fragmented tables
In a typical manufacturing or distribution stack, a single customer exists simultaneously as a CRM account record, an ERP receivables card (CUST), a quality-complaint party and a shipping consignee. Asking an LLM to reconcile those tables at prompt time produces brittle SQL and mismatched totals.
Naditu defines canonical objects—such as Customer, Order, Item, Work order, Shipment and Invoice—whose properties point back to their authoritative operational source while preserving field-level visibility rules.
- Canonical objectCustomerAuthoritative sourcesCRM account · ERP CUST · QMSKey propertiesName, Account code, Payment terms, Credit limitField-level ruleCredit limit -> Finance only
- Canonical objectOrderAuthoritative sourcesERP ORD_HDR · ORD_LIN · CRMKey propertiesOrder number, Due date, Status (STAT), Quoted priceField-level ruleQuoted price -> Sales, Finance
- Canonical objectItemAuthoritative sourcesERP ITM · WMS · PLM docsKey propertiesItem code, Drawing revision, Stock on hand, Unit costField-level ruleUnit cost -> Purchasing, Finance
- Canonical objectWork orderAuthoritative sourcesERP / MES WO_HDR · MaintenanceKey propertiesWork order number, Planned qty, Machine, Scrap rateField-level ruleVisible to Planning & Plant ops
- Canonical objectInvoiceAuthoritative sourcesERP AR_INV · e-Invoice ledgerKey propertiesInvoice number, Due date, Amount, Paid statusField-level rulePaid status -> Finance only
| Canonical object | Authoritative sources | Key properties | Field-level rule |
|---|---|---|---|
| Customer | CRM account · ERP CUST · QMS | Name, Account code, Payment terms, Credit limit | Credit limit -> Finance only |
| Order | ERP ORD_HDR · ORD_LIN · CRM | Order number, Due date, Status (STAT), Quoted price | Quoted price -> Sales, Finance |
| Item | ERP ITM · WMS · PLM docs | Item code, Drawing revision, Stock on hand, Unit cost | Unit cost -> Purchasing, Finance |
| Work order | ERP / MES WO_HDR · Maintenance | Work order number, Planned qty, Machine, Scrap rate | Visible to Planning & Plant ops |
| Invoice | ERP AR_INV · e-Invoice ledger | Invoice number, Due date, Amount, Paid status | Paid status -> Finance only |
Evidence-backed cross-system join paths
Database schemas state only a fraction of the joins a real business question needs. An ERP may declare ORD_LIN.ORD_ID = ORD_HDR.ID, yet leave ORD_HDR.CUSTREF = CUST.REF, WO_HDR.LINREF = ORD_LIN.REF and CRM account.erp_code = CUST.CODE completely undeclared.
Naditu combines declared foreign keys with learned links discovered from column naming conventions, record-for-record value overlap and existing production reports—each confirmed by the process owner before entering the live ontology.
- Join edgeCRM Accounts -> ERP CustomersPredicateaccount.erp_code = CUST.CODEKindLearnedVerification evidenceRecord-for-record account code match across CRM and ERP
- Join edgeERP Customers -> ERP OrdersPredicateORD_HDR.CUSTREF = CUST.REFKindLearnedVerification evidenceForeign reference column verified against 100% of active CUST keys
- Join edgeERP Orders -> Order linesPredicateORD_LIN.ORD_ID = ORD_HDR.IDKindDeclaredVerification evidencePrimary-to-foreign key constraint read directly on connection
- Join edgeOrder lines -> Work ordersPredicateWO_HDR.LINREF = ORD_LIN.REFKindLearnedVerification evidenceExtracted from plant planning report and confirmed by Planning lead
| Join edge | Predicate | Kind | Verification evidence |
|---|---|---|---|
| CRM Accounts -> ERP Customers | account.erp_code = CUST.CODE | Learned | Record-for-record account code match across CRM and ERP |
| ERP Customers -> ERP Orders | ORD_HDR.CUSTREF = CUST.REF | Learned | Foreign reference column verified against 100% of active CUST keys |
| ERP Orders -> Order lines | ORD_LIN.ORD_ID = ORD_HDR.ID | Declared | Primary-to-foreign key constraint read directly on connection |
| Order lines -> Work orders | WO_HDR.LINREF = ORD_LIN.REF | Learned | Extracted from plant planning report and confirmed by Planning lead |
Preventing 1:N fan-out and chasm traps
When a single sales order line spawns three shop-floor work orders (for example, split batches or rework) and two partial shipments, a naive flat SQL JOIN multiplies ORD_LIN quoted value and unit cost three to six times.
Because every link in the Naditu ontology carries explicit cardinality metadata (1:1, 1:N, N:M) and grain ownership, the query planner isolates line-level financial sums in pre-aggregated subqueries before joining downstream work orders or shipments.
Every metric binds to its native table grain
Order value and unit_cost belong to ORD_LIN grain, whereas scrap_pct and produced_qty belong to WO_HDR grain. No ad-hoc prompt can sum across mixed grains.
Period-numbered ERP schemas resolved automatically
For ERPs that partition tables by company and fiscal period (such as LG_001_01_STLINE), the ontology routes cross-year comparisons without hardcoded table names.
Local status-code dictionaries confirmed by your team
Integer status columns are the single most common source of silent AI hallucinations on ERP data. Left to guess what ORD_HDR.STAT = 4 means, a language model routinely assumes 4 means "closed" or "cancelled", undercounting unbilled shipments.
Naditu builds each term entry from four sources: existing internal documentation, schema-guided proposals, human confirmation by process owners and phrasing observed in everyday questions. Nothing enters the live dictionary on a model proposal alone.
{
"object": "Order",
"source_column": "ERP.ORD_HDR.STAT",
"state": "confirmed",
"version": "v13",
"confirmed_by_role": "sales.lead",
"values": {
"1": {
"label": "open",
"billable_exposure": true
},
"2": {
"label": "in production",
"billable_exposure": true
},
"4": {
"label": "shipped, not yet invoiced",
"billable_exposure": true,
"note": "Goods left the warehouse; AR invoice still pending"
}
},
"synonyms_observed": "where is my order, shipped unbilled, awaiting invoice"
}Engineering deep dives
Related articles from the blog
What is an ontology in AI, and how does AI use it?
A plain guide to what an ontology means in enterprise AI, how it differs from a database schema or RAG index, and how models use it to answer accurately.
How an ontology learns what your data means
A table name tells an AI assistant little and a status code tells it nothing. An ontology learns the meaning from four places, and people confirm it.
Wren AI and Vanna AI Text-to-SQL alternative for ERP data
Comparing Wren AI (MDL + DataFusion) and Vanna AI (RAG DDL vectors) against an enterprise ontology for live multi-ERP queries, RBAC, and write gates.