ontoloji.orgOpen Reference Hub

Ontology Interface (Object Polymorphism)

An abstract shape, link, and action contract (Facility, CommercialOrder, Party) implemented zero-copy across concrete per-ERP object types (SapSalesOrder, LogoTigerSalesOrder, NetsisSalesOrder, OdooSalesOrder) so AI agents operate uniformly without per-subsidiary schema branching.

Why It Matters for Enterprise AI

Multi-entity industrial groups and acquisitive holdings run heterogeneous ERPs across plants and countries. Without object polymorphism, every cross-subsidiary AI workflow, RBAC policy, and executive query fractures into N fragile ERP-specific branches.

Architectural Context & Execution Mechanics

An operational ontology cleanly separates concrete storage from abstract interaction contracts. Concrete ObjectTypes bind directly to physical SQL replicas or ERP APIs and preserve every native system attribute, whereas an Interface is purely abstract—unbacked by any duplicated warehouse table—defining required scalar properties, Link Type roles, and polymorphic Action Type capabilities.

Unlike centralized UNION ALL ETL tables in a cloud data warehouse—which introduce CDC replication lag, strip subsidiary-specific ERP columns, and sever transactional write-back context—queries against an Ontology Interface compile into zero-copy pushdown queries across each subsidiary’s read replica at runtime.

When a newly acquired plant maps its native ERP order table to implement CommercialOrder, every existing supply-chain, credit-control, and customer-operations agent becomes immediately compatible with zero prompt edits or harness code changes.

Typical Production Failure Without an Ontology

An agent computing group-wide open backlog maintains four separate SQL branches across SAP VBAK, Logo ORFICHE, Netsis TBLSIPAMAS, and Odoo sale_order; when one subsidiary adds a credit-hold status code, consolidated group reporting silently drifts.

Abstract CommercialOrder Interface implemented zero-copy across four subsidiary ERPs
interface CommercialOrder {
  canonicalOrderId: String @primary
  documentNumber: String
  normalizedNetEur: Decimal(18, 2)
  fulfillmentState: Enum<OPEN | PARTIAL | HOLD | COMPLETED | CANCELLED>
  originFacility: Link<Facility>
  billedToParty: Link<Party>
  shippedToParty: Link<Party>
  releaseAction: ActionType<release_credit_blocked_sales_order>
}

objectType SapSalesOrder implements CommercialOrder        { source: sap_s4.VBAK }
objectType LogoTigerSalesOrder implements CommercialOrder  { source: logo.LG_301_01_ORFICHE }
objectType NetsisSalesOrder implements CommercialOrder     { source: netsis.TBLSIPAMAS }
objectType OdooSalesOrder implements CommercialOrder       { source: odoo.sale_order }
Related Engineering Guide

Operational Ontology Primitives: Declared Action Types, Multi-Role Link Types, Polymorphic Interfaces & Deterministic Functions

An open, vendor-neutral engineering specification for operational AI ontologies: unifying Data, Logic, Action, and Security across SAP S/4HANA, Logo Tiger, Netsis, and Odoo without ad-hoc SQL mutations or collapsed foreign-key graphs.

Read guide (15 min read)

Related Ontology Concepts

Open License (CC BY 4.0) · Cite This Page

Free to reference in engineering docs, ADRs, articles, and course syllabi with attribution.

[Ontology Interface (Object Polymorphism) — Ontoloji.org](https://ontoloji.org/en/glossary/polymorphic-ontology-interface)