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.
Why It Matters for Enterprise AI
Language models predict tokens statistically; they have no built-in knowledge of what your company means by "active customer", "quarantined stock", or "net backlog". An ontology replaces guesswork with a deterministic contract.
Architectural Context & Execution Mechanics
Borrowed from philosophy and formalized in computer science by Tom Gruber (1993) as "an explicit specification of a conceptualization", an ontology in modern enterprise AI connects fragmented ERP, CRM, MES, and spreadsheet tables into unified business objects.
An operational ontology comprises four pillars: (1) Objects (Customer, Sales Order, Work Order, Lot, Invoice), (2) Links (explicit and undeclared joins across systems), (3) Terms & Status Codes (translating STAT=3 into Quality Quarantine), and (4) Rules & Kinetic Actions (row/column permissions and human-approved write gates).
A raw Text-to-SQL agent includes cancelled orders, intercompany transfers, or credit memos in "monthly revenue", returning syntactically valid SQL with a confident wrong number.
entity SalesOrder {
source: erp.ORD_HDR
status_map: { 0: "Draft", 1: "Confirmed", 3: "QualityHold", 9: "Cancelled" }
metric open_backlog: sum(NET_AMT)
where STAT in (1, 3) and DELETED == false
}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 (9 min read)Related Ontology Concepts
Free to reference in engineering docs, ADRs, articles, and course syllabi with attribution.
[Ontology (in AI & Computer Science) — Ontoloji.org](https://ontoloji.org/en/glossary/what-is-an-ontology)