Repeatable Bidirectional Link Type
An explicit ontology relationship declaration that models multiple distinct real-world business roles between the exact same pair of object types as separate, named, two-sided traversal edges.
Why It Matters for Enterprise AI
Naive SQL-to-Graph schema crawlers and lightweight semantic layers index at most one unlabeled edge per (SourceTable, TargetTable) tuple, silently dropping or overwriting secondary foreign keys such as ship-to consignees, payer accounts, or dispatch-note line references.
Architectural Context & Execution Mechanics
In production manufacturing and distribution ERPs, a single transaction table routinely holds multiple foreign keys pointing to the exact same master table. In Logo Tiger, one sales order (LG_XXX_YY_ORFICHE) or invoice (LG_XXX_YY_INVOICE) carries both CLIENTREF (legal bill-to debtor / fatura carisi) and RECVREF / TESLIMCARIREF (physical ship-to consignee / teslim carisi), while movement lines (STLINE) reference both the originating order (ORDFICHEREF / SIPREF) and the dispatch note (STFICHEREF / IRSREF).
Likewise, SAP S/4HANA and ECC partner table VBPA binds a single SalesOrder (VBAK) to Customer (KNA1) across four distinct partner functions: AG (Sold-to), WE (Ship-to), RE (Bill-to), and RG (Payer). Collapsing (SalesOrder, Account) into one unnamed join corrupts both regional logistics routing and accounts-receivable credit exposure.
In an operational ontology, every Link Type is intrinsically bidirectional—declaring unique forward and reverse API names on a single edge (billedToAccount <-> billedOrders) without needing a duplicate reverse link. Separate business roles between the same object pair are declared as independent two-sided Link Types (shippedToConsignee <-> consignedOrders), and the query compiler rejects ambiguous unnamed JOIN Account queries at compile time.
An automated schema crawler drops TESLIMCARIREF in favor of CLIENTREF, causing a dispatch agent to route steel-coil trucks to corporate headquarters instead of the subcontractor plant, while a finance agent books receivables against a third-party warehouse.
// Link Type #1: Legal Bill-To Debtor (Logo CLIENTREF / SAP VBPA 'RE')
link_type sales_order_billed_to_account {
source: SalesOrder.billedToAccount // -> Account
target: Account.billedOrders // -> ObjectSet<SalesOrder>
logosql: "ORFICHE.CLIENTREF = CLCARD.LOGICALREF AND ORFICHE.CANCELLED = 0"
sapsql: "VBPA.VBELN = VBAK.VBELN AND VBPA.PARVW = 'RE' AND VBPA.KUNNR = KNA1.KUNNR"
}
// Link Type #2: Physical Ship-To Consignee (Logo RECVREF-TESLIMCARIREF / SAP VBPA 'WE')
link_type sales_order_shipped_to_consignee {
source: SalesOrder.shippedToConsignee // -> Account
target: Account.consignedOrders // -> ObjectSet<SalesOrder>
logosql: "COALESCE(NULLIF(ORFICHE.RECVREF, 0), ORFICHE.CLIENTREF) = CLCARD.LOGICALREF"
sapsql: "VBPA.VBELN = VBAK.VBELN AND VBPA.PARVW = 'WE' AND VBPA.KUNNR = KNA1.KUNNR"
}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
Free to reference in engineering docs, ADRs, articles, and course syllabi with attribution.
[Repeatable Bidirectional Link Type — Ontoloji.org](https://ontoloji.org/en/glossary/repeatable-bidirectional-link-type)