← Back to the journal

DataFocus · Journal

Ontology vs Semantic Layer vs Data Catalog vs Knowledge Graph: What Each One Answers

A catalog says what data exists, a semantic layer computes agreed metrics, a knowledge graph links entities, and a business ontology adds the rules, actions and permissions the others leave to application code. One SLA question worked through all four, plus a decision table.

A data catalog answers "what data do we have, and who owns it?" A semantic layer answers "how is this metric computed?" with one executable definition that every tool shares. A knowledge graph answers "what is connected to what?" by storing facts as linked entities, in the W3C world as RDF triples described by an OWL ontology. A business ontology, in the sense Palantir Foundry and DataFocus OT use the word, answers a fourth question the other three leave to application code: "what is this business object, which rule is in force for it, what may be done to it, and by whom?" The four do not compete for one job. Most organizations end up with a catalog for discovery plus a semantic layer or an ontology per domain, built in the order of the questions their users ask most.

One question each

All four "add meaning to data". They stop blurring once you ask what unit each one models and what it refuses to.

Data catalogSemantic / metrics layerKnowledge graphBusiness ontology
Question answeredWhat data exists, where, owned by whom?How is "revenue" computed?What is connected to what?What is this object, which rule applies, what may be done, by whom?
Unit modeledAssets: tables, columns, files, dashboardsEntities, dimensions, measures, metricsNodes and edges (in RDF, triples)Objects, relationships, rules, actions, permissions
Executes anythingNo; it describesYes: compiles metrics to SQLQueries and inference over the graphYes: queries, scheduled indicators, write-back executions
Business rules and policiesGlossary textOnly what fits in calculation logicFormal axioms possible (OWL)First-class, linked to the data they govern
Actions / write-backNoNoNoYes; AI-proposed changes need human approval
Access controlOn the catalog itselfVaries by productVaries by storePart of the model

One business question through all four makes the rows concrete; the documentation behind each row follows.

A worked example: one SLA question, four layers

Consider a hypothetical procurement team (illustrative throughout; nothing here was run against a live system) asking: "Which purchase requests breached the approval SLA last month, and who should fix them?"

The catalog finds the inputs. An engineer learns that purchase_requests and approval_events exist in the finance schema, who owns them, and that a deprecated approvals_v1 table should not be used. The catalog has done its job. It has not said what an SLA breach is.

The semantic layer makes the number reproducible. Someone defines sla_breach_rate once, as a ratio of breaches to requests, with the join from events to requests declared through an entity so it cannot fan out. In dbt's documented ratio-metric shape (illustrative, not run):

metrics:
  - name: sla_breach_rate
    type: ratio
    type_params:
      numerator: sla_breaches
      denominator: purchase_requests

Every dashboard now shows the same rate. The layer still does not know that the SLA changed from five working days to three on 1 October, that the rule lives in a policy document, or that someone should open a task when the rate crosses a threshold.

The knowledge graph links the parties. Request to approver to department to cost centre to policy becomes traversable, so "which departments share the slowest approver?" is a graph query rather than a six-way join written by hand. Who may see which request, and what to do about a breach, remain outside the graph.

The business ontology holds the rule, the action and the boundary. In the DataFocus product brief's built-in purchase-approval ontology, tables of this kind (purchase requests, approval events, process variants, bottlenecks, compliance findings, improvement tasks, audit records) sit under one ontology. The SLA and bottleneck rules live in a document center linked to the tables they govern. A control panel offers actions such as create a corrective task, request evidence or close a deviation. An AI agent asking the question gets only what the authorizing user may see, and if it proposes a fix, the fix is a draft until a person approves it.

What a semantic or metrics layer models (dbt, Cube)

A semantic layer turns warehouse tables into named, governed calculations. dbt's documentation (as documented on November 2026) states the purpose: "Moving metric definitions out of the BI layer and into the modeling layer allows data teams to feel confident that different business units are working from the same metric definitions," and when a definition changes "it's refreshed everywhere it's invoked" (dbt Semantic Layer docs).

The structure is deliberately narrow. dbt asks you to "think of semantic models as nodes connected by entities in a semantic graph," with dimensions as the group-by parameters (dbt, Semantic models). Metrics come in five types: simple, ratio, cumulative, derived and conversion (dbt, Metrics overview). MetricFlow, the engine underneath, is "a SQL query generation tool" that uses entity types to navigate joins and avoid fan-out and chasm joins (dbt, About MetricFlow). The narrowness is the point: a metric is a deterministic function of entities, dimensions and measures, so its compiled SQL is predictable and reviewable.

Cube frames its data model the same way and names agents as a consumer: "Build a reusable semantic layer that provides the shared context for AI agents, BI dashboards, and embedded analytics" (Cube, Data modeling overview, as documented on November 2026).

What the layer leaves out is anything that is not a calculation: the policy behind the metric, the workflow step after it, the action taken when it goes red.

Better fit when: two dashboards disagree on the same number, and that is your main problem.

What a data catalog models (IBM)

IBM defines a data catalog as "a detailed inventory of data assets within an organization" that helps users discover, understand, manage, curate and access data (IBM Think, What is a data catalog?). The unit is the asset; the content is technical and administrative metadata: schema, lineage, owner, classification, freshness, a glossary term attached to a column.

The contrast with a semantic layer is this post's framing, not IBM's. A catalog records that fct_orders.net_amount exists, who owns it and where it came from; a semantic layer defines how net_revenue is computed from it. A catalog answers "can I find and trust this table?", not "what is the answer?"

Better fit when: nobody can say which of 4,000 tables is authoritative, or compliance needs lineage and ownership before anyone builds on the data.

Knowledge graphs and RDF/OWL: the older meaning of "ontology"

The word ontology predates its product usage. In the W3C stack, data is RDF, where "an RDF graph is a set of RDF triples" of subject, predicate and object (W3C RDF 1.2 Concepts). OWL 2 is "an ontology language for the Semantic Web with formally defined meaning" (W3C OWL 2 Primer, Recommendation of 11 December 2012). Here an ontology is a formal vocabulary of classes, properties and axioms, and the knowledge graph is the instance data described by it. In Turtle (illustrative, not run):

:Request1042    a               :PurchaseRequest ;
                :approvedBy     :UserK .
:UserK          a               :SeniorApprover .
:SeniorApprover rdfs:subClassOf :Approver .

A reasoner concludes that :UserK is an :Approver with no one writing that triple. That is the strength: integration across sources, standards-based interchange, inference and consistency checking.

The graph also matters for AI answer quality. A 2023 data.world study by Sequeda, Allemang and Jacob had GPT-4 answer questions over an enterprise insurance SQL schema: zero-shot on the raw schema, 16% accuracy; the same questions over a knowledge graph built from an ontology and mappings, 54% (arXiv 2311.07509, 2023). One schema and one GPT-4-era model, so read it as direction rather than a current benchmark. The direction matches Spider 2.0, where 632 real enterprise text-to-SQL workflow tasks on databases "often containing over 1,000 columns" held an o1-preview code agent to 21.3%, against 91.2% on the academic Spider 1.0 (arXiv 2411.07763, 2024, revised 2025). Together they make the case for handing a model a curated layer of entities and relationships, not a raw schema. What the graph still does not define is who may see a node, which version of a rule is in force, or what a user may do to an entity; the application around it supplies those.

Better fit when: you integrate many heterogeneous sources, need W3C-standard interchange, or need inference over relationships.

Where a business ontology adds rules, actions and permissions

The product sense of "ontology" keeps the graph of objects and relationships and adds operational content. Palantir's Foundry documentation (as documented on November 2026) calls the Ontology "a categorization of the world" and the digital twin of an organization, and defines "an object type" as "the schema definition of a real-world entity or event" (Palantir, Ontology core concepts).

DataFocus's product brief defines an ontology as "A model of your business, covering its objects and how they relate, the rules and definitions you work by, the actions that can be taken, and who may see and do what. People and AI work on the same model." It names three things enterprise AI usually lacks: context (whether "Customer A" in CRM, ERP and a contract is the same company, what "delivered" means, which rule version is in force), boundaries (what AI may see or change), and the ability to act with a person in control. The five parts of an ontology map onto those gaps:

  1. Objects and relationships. Tables from different systems, organized under the ontology with what each relationship means, shown as a graph.
  2. Rules and knowledge. A document center holding policies, rules and metric definitions linked to the data they govern.
  3. Indicators. Pushed to the right people on a schedule.
  4. Actions. Executions (scripts that calculate, check and write back) and business actions on control panels.
  5. Permissions. Existing users, roles and resource permissions; agents are granted access one ontology at a time.

Two mechanisms from DataFocus's published homepage demos, which run on simulated data, show the difference in practice. On identity: until a customer-identifier mapping across CRM, ERP and contracts is confirmed, agents do not treat two similar names as one company. A semantic layer joins on whatever key it was given. On rule versions: a support policy changes from a 24-hour to a 4-hour response time effective midnight 25 September; until the owner approves it, agents answer with the old rule (v1); after approval, new queries use v2 and answers already given under v1 stay on record, unrewritten. A knowledge graph can store both versions. Deciding which one an agent may apply today is policy, and policy lives in the ontology.

Two further properties follow from the brief. Permissions travel with the model: an agent gets only what the authorizing user may see, and requests outside its grant do not reveal whether the data exists. And a definition set once is used by search analysis, dashboards, control panels and agents, which all get the same figures, each query returning the SQL that ran, the tables used and a data fingerprint. That second property overlaps with a semantic layer, and that is fine. The rules, actions and permissions are what the other three do not model.

Better fit when: people and AI agents must act on the data (open a task, close a deviation) under explicit rules and per-user boundaries, not only read numbers.

When an ontology is the wrong first step

  • It is more to model. A metrics layer needs entities, dimensions and measures. An ontology also needs owners to confirm rules, write action logic and set permissions. If your only pain is inconsistent KPIs, the semantic layer is the smaller tool.
  • It does not replace the catalog. An ontology organizes the tables one business area needs; it does not inventory the estate. Large organizations keep a catalog for discovery and lineage.
  • It is not a W3C knowledge graph by default. Product ontologies are not necessarily OWL or RDF. If you need W3C interchange or formal inference, check the product's documentation.
  • It is scoped to one area at a time. The DataFocus brief suggests starting with one business question that has data, policy documents and a clear owner, getting business users onto that ontology, then authorizing an agent, then moving to the next area.

Decision table: which one first?

Your symptomStart withWhy
"Which table is the real one?"; no lineage or ownersData catalogYou cannot define or govern what you cannot find
Two dashboards show different revenueSemantic / metrics layerOne executable definition per metric, consumed by every tool
Entities from many sources must be linked and reasoned over; RDF/OWL interchange requiredKnowledge graphStandards-based model of entities and relationships, with inference
Agents must answer from data and policy documents, stay inside each user's permissions, and propose changes a person approvesBusiness ontologyRules, actions and permissions are part of the model
All of the above at scaleCatalog for discovery, then a semantic layer or ontology per domainThey layer; they do not compete for the same job

The rule of thumb: listen for the question your users ask most. "Where is it?" is a catalog. "What is the number?" is a semantic layer. "How is it connected?" is a knowledge graph. "What should we do about it, and who is allowed to?" is a business ontology.

Next step

If the ontology column matches your problem, the DataFocus OT product brief walks through the purchase-approval ontology part by part, and the download page lists the two editions, OT Flash and OT Heavy, with installers and release notes on GitHub.