ontoloji.orgOpen Reference Hub
Open Enterprise Ontology Reference2027 AI Data & Agent Architecture

What Is an Ontology? Teach AI Agents Your Company's Real Business Meaning.

Frontier language models can write fluent code and prose, yet they still guess what STAT = 3 means inside your ERP. An enterprise business ontology turns raw tables, undeclared joins, status dictionaries, and write permissions into one deterministic contract for every AI agent.

In Philosophy (Metaphysics)

Derived from Ancient Greek ontos (being) + logos (study): the foundational branch of metaphysics investigating existence, categories of being, substance, and causality from Aristotle and Avicenna to Wolff and Heidegger.

In Computer Science & 2027 Enterprise AI

An explicit, machine-executable specification of business entities, cross-system relationships, canonical metrics, RBAC policies, and human-approved kinetic actions served to AI agents via MCP.

Anatomy of an Operational Ontology

Four Building Blocks Between Raw Databases and AI Agents

Interactive Reference Models

See How an Ontology Grounds Queries and Enforces Guardrails

Explore the 5-layer enterprise stack, inspect row-level ERP/MES provenance behind an AI answer, and test live guardrail gates.

01 · Architectural Position

Where Does an Ontology Sit in the Stack?

An ontology is neither a chat UI nor another database to migrate into. It is the deterministic meaning and governance contract between raw operational systems and AI agents.

Selected Layer · 03Core Meaning Contract
Enterprise Business Ontology

Unifies Customer, SalesOrder, MaterialLot, and Invoice objects, undeclared joins, status dictionaries, KPI formulas, and typed kinetic actions.

02 · Verifiable Provenance

Inspect the Ontology Proof Behind Every Sentence

Hover or click numbered citation chips: an ontology-grounded agent never guesses numbers—it proves every figure against live ERP, MES, and policy rules.

4 ontology sources · 14 tables/rules evaluated

Across the EMEA manufacturing region, 3 enterprise orders totaling €482,000 scheduled for shipment this week carry critical delay risk. The root cause is aluminum extrusion batch LOT-2026-88 allocated to orders #SO-4821 and #SO-4839, placed under incoming quality quarantine (STAT = 3).

Additionally, because buyer Nordwerk GmbH sits at 92.2% credit utilization including unbilled delivery notes, releasing a partial shipment requires Finance Controller sign-off under ontology policy.

/en/glossary/status-codes-business-glossary · Live Record2
Status Mapping: LOT-2026-88 (STAT=3 -> QualityQuarantine)
LOT_ID: LOT-2026-88 · Qty: 1,400 kg · Status: 3 (QualityQuarantine - surface tolerance check) · Automatically excluded from Available-to-Promise (ATP).
Inspect concept
Live provenance from MES · MaterialLot
03 · Deterministic Guardrails & Write-Gates

Stop Schema Hallucinations & Ungated ERP Writes

Click any funnel stage to inspect intercepted failures: chasm-trap joins blocked, unit costs masked by role, and ERP mutations held for human sign-off.

Ontology Policy Gateenterprise-mcpLive
  • Incoming Agent QueriesIncoming agent calls8,520100%
  • Schema & Join Validation216 rejected8,30497.5%
  • Role-Based Masking (RBAC)1,170 masked8,30497.5%
  • Kinetic Write & Approval Gate132 queued for sign-off8,17295.9%
  • Verified Response & ExecutionExecuted safely8,17295.9%
Kinetic Write & Approval GateERP mutations requiring human sign-off
  • …overage="7.2%")CreditLimitGate · Finance Controller sign-off required2m ago
  • …delta="+9d")SLAThreshold · >7d shift requires Logistics Lead14m ago
Architectural Comparison Matrix

Text-to-SQL vs. Vector RAG vs. Semantic Layer vs. Knowledge Graph vs. Ontology

Why standalone retrieval or BI views cannot safely run multi-system operational AI agents—and how each layer complements the stack.

DimensionRaw Text-to-SQLVector RAGBI Semantic LayerKnowledge GraphEnterprise AI Ontology
Primary MechanismAd-hoc SQL synthesis from physical column namesCosine similarity over chunked text embeddingsPre-aggregated analytical cubes & BI metricsEntity/triple graph storage & traversalLive semantic entities + rules + governed kinetic actions
Undeclared ERP Joins & Status CodesHigh hallucination & wrong join riskLoses relational integrity across rowsPartial (warehouse views only)Strong once ETL-ingested100% deterministic via conditional links & status maps
1:N Chasm-Trap ProtectionFrequently inflates sums 2x–10x on multi-joinsCannot compute exact SUM/COUNT mathSafe on pre-modeled KPIsRequires explicit SPARQL/Cypher disciplineBuilt-in cardinality-aware query compilation
Per-User Row & Column RBACOften shares a single read service accountCoarse document-level ACLsDashboard-level access controlGraph-level permissions varyAutomatic caller-inherited row filters & cost/PII masking
Operational Write-Back (HITL)Unsafe direct UPDATE/INSERTRead-only text retrievalRead-only historical analyticsRead-heavy knowledge storeTyped kinetic actions with preconditions & human sign-off
Interactive Architecture Diagnostic

Do You Need an Enterprise Ontology? (60-Second Assessment)

Ontology Necessity Score
90 / 100
1. Across how many systems does your operational truth live when an AI agent answers a question?
2. Do your tables contain cryptic column names, undeclared foreign keys, or numeric status codes (STAT=4)?
3. Who and what will query this data layer over the next 12 months?
4. Will AI agents only summarize history, or also assist with live operations and write-backs?
Mission-Critical Requirement

Full Semantic + Kinetic Enterprise Ontology (MCP + Write-Gates) Required

With multi-system data, custom status codes, and multi-agent execution, running without a governed semantic + kinetic ontology guarantees prompt drift and security exposure.

Detected Architectural Failure Modes
  • •Cross-system identity & undeclared join gaps
  • •Severe semantic ambiguity for raw Text-to-SQL
  • •Multi-agent coordination drift across duplicated system prompts
  • •Batch warehouse latency & stale RAG embeddings
In-Depth Engineering Guides

Enterprise Ontology Architecture Handbook

View all 25 guides →
Core Architecture9 min read

How to Use an Ontology in Enterprise AI: The Architectural Reference

Moving beyond fragile Text-to-SQL and stale Vector RAG by grounding AI assistants and agents in verified business objects, links, rules, and kinetic actions.

Read guide →
Agent Engineering8 min read

Agent Harness vs. Ontology: Separating Execution Loops from Business Meaning

In software engineering, Agent = Model + Harness. In enterprise production, Enterprise Agent = Model + Harness + Ontology.

Read guide →
Data Engineering10 min read

Enterprise Ontology Design Patterns for ERP, CRM & Manufacturing (MES)

Field-tested patterns for polymorphic movement tables, undeclared foreign keys, quarantine inventory, and chasm-trap prevention.

Read guide →
Strategy & Governance7 min read

Should You Build an Enterprise Ontology? A Practical 30-Day Rollout Strategy

How to ship a high-value vertical ontology slice in four weeks without falling into the 18-month "boil the ocean" trap.

Read guide →
ERP Integration11 min read

Connecting SAP, Odoo, Dynamics, NetSuite, Logo & Netsis ERPs to AI via Ontology

Mapping real-world ERP schemas, fiscal-period tables, multi-currency rules, and unit conversions into a clean zero-copy ontology.

Read guide →
ERP Data Engineering14 min read

Logo Tiger & Nebim V3 SQL Schemas: Polymorphic Joins & Turkish Unicode Traps in AI

Solving firm/period table sharding, context-dependent TRCODE/MODULENR routing, 6-column SKU variant keys, and silent İ/ı NFKD failures with an enterprise ontology.

Read guide →
Agent Governance13 min read

Production Agent Engineering: Adversarial Verification, 3-Layer Permissions & Compaction

Eliminating circular provenance with three hostile review lenses, gating tools with circuit-breaker permissions, and microcompacting long-running agent context.

Read guide →
Verification Engineering13 min read

Absence-Aware AI Validation Gates, Ratio Reconstruction & N-of-M Count Audits

Closing the omission loophole in token-keyed validators, reverse-computing undeclared inputs from printed totals, and separating gate-forced matches from real corroboration.

Read guide →
Provenance & Governance12 min read

Draft vs. Normative Sources: Provenance Hygiene & Liveness Traps in Enterprise AI

Why HTTP 200 on an official domain is not authority, how administrative announcements distort statutory citations, and why exercised checklists beat static annexes.

Read guide →
SAP & Protocol Architecture11 min read

SAP BTP Cloud Connector, Integration Suite & ORD Metadata for Enterprise AI Ontologies

How to connect on-premise SAP S/4HANA and SAP ECC systems to AI agents using Principal Propagation, SAP Integration Suite MCP Gateway, Open Resource Discovery (ORD 1.16), and OData V2/V4 vocabularies.

Read guide →
ERP Write-Safety12 min read

Logo Objects REST, Nebim V3 Integrator & GİB UBL-TR e-Document Write-Safety for AI Agents

Why direct SQL writes corrupt Logo Tiger/GO and Nebim V3 ledgers and Turkish e-Invoice locks—and how to architect safe kinetic AI actions over official business-object APIs and UBL-TR 1.2.1 Schematron gates.

Read guide →
Platform Architecture Comparison12 min read

Snowflake Cortex Analyst, Databricks Genie, dbt MetricFlow, Cube & WrenAI vs. Enterprise Ontology

An architectural teardown of cloud data-warehouse semantic views, OLAP metric layers, and open-source Text-to-SQL engines—and why live ERP/MES operations require a zero-copy semantic and kinetic ontology.

Read guide →
Systems Engineering & Forensics13 min read

Why ERP Integrations Fail in Production: Direct SQL Writes, STA COM Deadlocks, NOLOCK Dirty Reads & Missing Idempotency

A computer-science root-cause analysis of the four field-integration anti-patterns that silently corrupt ERP ledgers, deadlock web servers, duplicate invoices, and fail statutory XML validation.

Read guide →
Platform Architecture Comparison12 min read

Microsoft Fabric IQ, Dynamics 365 MCP & SAP Joule / Datasphere vs. Open Enterprise Ontology

An architectural analysis of vendor-locked ERP copilots (Microsoft Fabric Data Agents, Copilot Studio MCP, SAP Business Data Cloud, and Joule)—and why multi-ERP and on-prem industrial landscapes need a sovereign ontology.

Read guide →
Retrieval & RAG Architecture11 min read

PageIndex Vectorless Tree RAG vs. pgvector & Qdrant on Enterprise ERP Documentation

Why fixed-window vector chunking mangles ERP API manuals, statutory XML Schematron specs, and ISO/IATF quality procedures—and how hierarchical tree indexing with LLM reasoning achieves 100% provenance.

Read guide →
Platform Architecture Comparison12 min read

Atlan, Alation, Stardog Voicebox & Neo4j vs. Operational Enterprise Ontology

Why active metadata catalogs (Atlan, Alation, DataHub), W3C RDF/SPARQL triplestores (Stardog), and property-graph databases (Neo4j, RelationalAI) differ fundamentally from a runtime ERP ontology with kinetic write gates.

Read guide →
Statutory & Financial Governance13 min read

GİB UBL-TR 1.2.1, VUK Inflation Accounting (TMS 29 / IAS 29) & KVKK Ontology Governance

A compliance reference architecture for enterprises operating in Türkiye: enforcing e-Fatura Schematron invariants, e-Defter Berat immutability, dual VUK 298/A vs. IAS 29 inflation ledgers, KVKK Art. 9 egress masking, and İYS consent gates.

Read guide →
Agent Memory & Ontology Architecture11 min read

Agent Memory Graphs (Cognee, Zep Graphiti) vs. Deterministic Enterprise Business Ontology

Why LLM-extracted conversational and GraphRAG memory engines excel at episodic recall—and why live million-row ERP/MES accounting, RBAC, and transactional write-backs require a deterministic ontology.

Read guide →
Protocol & Multi-Agent Architecture12 min read

Anthropic MCP vs. OpenAPI REST Routers: Single General Agent vs. Specialist Topologies

Why auto-converting 300 OpenAPI endpoints into LLM tools floods context windows and degrades accuracy—and how domain-modeled MCP tools anchor single-agent and specialist multi-agent architectures.

Read guide →
Protocols & Standards13 min read

MCP 2026-07-28 Specification Reference: Stateless HTTP, Tasks, Events, Apps & Elicitation

Normative engineering guide to the fifth Model Context Protocol release: stateless HTTP request/response, OAuth 2.0/OIDC auth hardening, SEP-2663 Tasks, SEP-3415 Events, MCP Apps, and Elicitation rules.

Read guide →
Agent Architecture & Governance12 min read

AI Agent Harness Engineering Rubric: Verification Gates, Fork Cache Sharing & the Agent Web

Cross-practitioner consensus on harness architecture, avoiding the 125k-token dumb zone, byte-identical prefix fork cache sharing, observer subagents, and agent-readable web surfaces (llms.txt, /.well-known/search).

Read guide →
Agent Architecture & Governance12 min read

Multi-Agent Coordination Patterns: Pull Task Boards, File Mailboxes, Two-Level Abort & Batching

Production coordination primitives from modern coding harnesses: lockfile-backed pull task boards, append-only JSON mailbox IPC, nested two-level AbortControllers, and concurrent-read / serial-write tool partitioning.

Read guide →
Verification & Security12 min read

Evals Before Prompting: Generate-Evaluate-Repair Loops, Attack Batteries & Observer Subagents

Building regression evals before touching prompts, decomposing brittle mega-prompts into Generate-Evaluate-Repair loops, stress-testing widened parsers with attack batteries, and catching reward hacking with observer subagents.

Read guide →
Verification & Security13 min read

NSA MCP Security Advisory (CSI_MCP_SECURITY), CVE-2025-49596 & OAuth CIMD vs. DCR Analysis

Engineering analysis of the NSA and CMU SEI MCP security information sheet, real-world exploits, and why replacing RFC 7591 DCR with Client ID Metadata Documents (CIMD) in MCP 2026-07-28 eliminates table bloat while shifting floods to outbound HTTPS fetches.

Read guide →
Agent Architecture & Governance11 min read

OpenTelemetry for Enterprise AI Agents: W3C Traceparent, MCP Spans & Data Custody

Connecting application spans, model API calls, Managed Agents sessions, and internal MCP servers into one W3C traceparent tree while avoiding auto-disable traps and ZDR/PII custody leaks.

Read guide →
Canonical Definitions & Schemas

Enterprise Ontology & MCP Glossary

Explore all 20 terms →
Core Foundations

Ontology (in AI & Computer Science)

An explicit, machine-readable specification of the business objects, cross-system relationships, domain definitions, and operational rules within an environment.

Core Foundations

Enterprise Business Ontology

A living, federated semantic and governance model that unifies objects, business glossary terms, permissions, and safe actions across ERP, CRM, quality, and spreadsheet systems.

Agents & MCP

AI Agent Harness (Execution Runtime)

The runtime software wrapper around an LLM (Agent = Model + Harness) responsible for tool-calling loops, context compaction, retries, sandboxing, and execution traces.

Core Foundations

Semantic Layer vs. Enterprise Ontology

A BI semantic layer (e.g., dbt MetricFlow, Cube, LookML) standardizes read-only historical KPIs over warehouse tables, whereas an enterprise ontology adds live entity traversal, operational status codes, per-user RBAC, and gated write actions.

Data & Schema

Enterprise Knowledge Graph

A network of real-world data instances stored or resolved as nodes and directed edges, governed by the classes, relationships, and axioms defined in an ontology.

Agents & MCP

Model Context Protocol (MCP) Grounding

An open protocol standardizing how AI assistants and agent harnesses discover and invoke external data resources and typed tools.

Data & Schema

Schema Discovery & Implicit Foreign Keys

Identifying and codifying real table relationships that lack declared database FOREIGN KEY constraints—common across mature ERP and manufacturing databases.

Data & Schema

Status Code & Business Glossary Mapping

Binding terse numeric or character flags (STAT = 4, SPEC_CODE = "B2") in operational tables to verified business states and calculation inclusion rules.

Frequently Asked Questions

Core Questions on Ontology, RAG, MCP & Agent Harnesses

What is an ontology in AI and computer science?+

Originally the philosophical study of being, an ontology in computer science (Gruber, 1993) and enterprise AI is an explicit, machine-readable contract of a domain’s business objects (Customer, SalesOrder, MaterialLot, Invoice), cross-system relationships, status dictionaries, KPI formulas, and operational permissions. It allows LLMs and agents to reason over verified company truth instead of guessing physical SQL schemas.

How do AI agents use an enterprise ontology at runtime?+

Instead of handing raw database schemas to an LLM, you expose your enterprise ontology through Model Context Protocol (MCP). When a user asks a question or requests an action, the agent maps intent onto canonical ontology concepts; the ontology engine enforces the user’s RBAC scope, compiles chasm-trap-free SQL/API plans, and returns provenance-cited answers or queues human-approved writes.

Why do we need an ontology if we already have Vector RAG?+

Vector RAG excels at unstructured prose—contracts, SOP PDFs, and support tickets. It fails on structured operational truth such as live inventory balances, credit utilization, multi-hop supply-chain dependencies, and numeric status codes. Production architectures combine both: an ontology resolves exact entities and numbers, then scopes Vector RAG to documents attached to those verified entities.

What is the difference between an AI Agent Harness and an Ontology?+

An agent harness manages how the model runs—tool-calling loops, context compaction, retries, timeouts, and sub-agent orchestration. An enterprise ontology defines what company data means and what actions are allowed. Embedding business rules in harness system prompts causes multi-agent semantic drift; keeping rules in a shared MCP ontology makes your stack model-agnostic.

Ontology vs. Knowledge Graph vs. Semantic Layer: how do they differ?+

A BI semantic layer standardizes read-only analytical metrics for dashboards. A knowledge graph stores linked entity instances (e.g., Nordwerk GmbH -> LOT-2026-88). An enterprise AI ontology is the governing schema and rule contract—defining both semantic nouns (objects, links, metrics) and kinetic verbs (RBAC, preconditions, and human-approved ERP/CRM actions).

Do we have to migrate our ERP and CRM into a new database to adopt an ontology?+

No. Modern federated enterprise ontologies query PostgreSQL, SQL Server, Oracle, SAP, Odoo, Dynamics, and governed spreadsheets in place (zero-copy), compiling bounded queries against read replicas and routing approved writes through official application APIs.

How long does it take to deploy a first enterprise ontology slice?+

Avoid 12-month boil-the-ocean modeling projects. Start with one high-value operational workflow (such as order-delay triage or credit-hold review), model 5–7 core entities, wire RBAC, and ship via MCP in 30 days.