offdataai
OntologySemantic LayerKnowledge Graph

What Is a Data Ontology? Definition, Examples and How to Build One

A data ontology is a formal model of the concepts in your business, their properties and relationships, linked to the data that stores them. Definition, examples, how it differs from a taxonomy, glossary and data model, and tools.

ooffdataai4 min read

A data ontology is a formal, machine-readable model of the things your business talks about, such as Customer, Order and Product, their properties, and how they relate to each other: an Order is placed by a Customer. In data teams, a useful ontology is also bound to the data: it records which tables and columns store each concept, so people and AI agents can find and query it by meaning rather than by table name.

A small example

ConceptDefinitionRelationshipsStored in
CustomerA person or company that has placed at least one orderplaces Orders; belongs to a Segmentdim_customer (Snowflake), contacts (CRM)
OrderA confirmed request to buy one or more productsis placed by one Customer; has many Order Linesfct_orders
ProductAn item we sellappears on Order Lines; belongs to a Categorydim_product
Net revenue (metric)Order line amount minus discounts, excluding refundsmeasured on Order Lines by order datefct_order_lines

That table is already an ontology in spirit. Expressed in a standard such as OWL, it can be read by other tools and published with stable identifiers for each concept.

Ontology vs taxonomy vs glossary vs data model

What it isExample
GlossaryTerms and definitions, for people"Active customer: ordered in the last 90 days"
TaxonomyA hierarchy of categoriesBeverages → Coffee → Espresso
Data modelHow data is stored: tables, keys, joinsfct_orders.customer_key → dim_customer
OntologyConcepts, properties, relationships and rules, machine-readable, often bound to dataCustomer places Order; Order has Order Line; Active customer is defined by a rule

An ontology can contain a taxonomy and a glossary; it differs from a data model in starting from the business rather than from storage. See data catalog vs semantic layer vs ontology for how it fits alongside other tools.

Well-known ontologies

  • schema.org: a shared vocabulary for web content, used by search engines.
  • FIBO (Financial Industry Business Ontology): concepts for financial contracts, parties and instruments.
  • SNOMED CT and other medical terminologies: clinical concepts and their relationships.
  • gist: a compact upper ontology for business concepts.

Most companies do not adopt one wholesale; they reuse parts and build a domain ontology of their own.

What an ontology layer does for AI

An AI agent asked "what was net revenue from enterprise customers last quarter?" needs to know what net revenue means, which customers are enterprise, and which tables hold them. An ontology layer gives it those answers, so it can choose the right definitions instead of guessing from column names. Combined with a semantic layer that compiles the SQL, it is the basis of accurate answers on business data. See context layer for AI agents.

How to build a data ontology

  1. Start with the business processes and the questions people ask.
  2. List the core concepts and write a one-sentence definition for each.
  3. Add relationships with cardinality.
  4. Define metrics over the concepts.
  5. Bind each concept to the tables and columns that store it.
  6. Record where teams disagree and decide which definition applies.
  7. Publish it in a standard format and keep it versioned.

The full method is in how to build an ontology for your data.

Ontology builder software

Tools range from general ontology editors such as Protégé (OWL, for ontology specialists), to knowledge graph platforms, to data-focused tools that derive the ontology from the data model. offdataai is in the last group: it derives concepts, relations and metrics from a validated data model, lets your team review and approve them, binds them to real tables, and exports OWL, JSON-LD and RDF/XML. See the ontology builder.

Frequently asked questions

What is an ontology in data?

A formal model of the concepts in a domain, their properties and their relationships, usually machine-readable, used to give data a shared meaning.

What is the difference between an ontology and a knowledge graph?

The ontology is the schema: the types of things and relationships. A knowledge graph is the data: actual customers, orders and products connected according to that schema.

Do I need RDF or OWL to have an ontology?

No. Standards matter when you want to share the ontology with other tools or publish resolvable identifiers. The value comes from agreed definitions and bindings to data.

Is there a course on ontologies for data teams?

Yes. offdataai Learn has a hands-on ontology course where you build one from a data model.

Try offdataai

Ship a warehouse from a single conversation.

Describe your domain. Get ERDs, DDL, dbt projects, and seed data for every major cloud warehouse.

Start building

Keep reading

All posts →