> ## Documentation Index
> Fetch the complete documentation index at: https://docs.open-metadata.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Ontology & Knowledge Graph | OpenMetadata

> Understand what an ontology is, why it matters in the AI era, and how OpenMetadata turns your business concepts into governed, versioned ontologies and a queryable knowledge graph.

# Ontology & Knowledge Graph

Telling you *what* exists is the easy part: this table has these columns, this dashboard reads that table. A **Context Platform** has to tell you *what it means*: that `cust_acct_bal_amt` is a **Customer Account Balance**, that a Customer Account Balance is calculated from **Transactions**, that Transactions are regulated by **AML**, and that anything regulated by AML must be retained for seven years.

That second kind of knowledge is what an **ontology** captures — and once it is captured, OpenMetadata projects it, together with every asset in your catalog, into a single **knowledge graph** that people and AI agents can query.

> [card] [Ontology Explorer](https://docs.open-metadata.org/v2.1.x/how-to-guides/data-governance/ontology.md)
>
> Visualize your glossary terms and their relationships as an interactive graph.

> [card] [Knowledge Graph](https://docs.open-metadata.org/v2.1.x/how-to-guides/ontology/knowledge-graph.md)
>
> Every asset, relationship, tag, and lineage edge as one RDF graph.

> [card] [For AI Agents](https://docs.open-metadata.org/v2.1.x/how-to-guides/ontology/ai-agents.md)
>
> MCP tools that let an agent traverse the graph instead of guessing.

> [card] [Enable It](https://docs.open-metadata.org/v2.1.x/how-to-guides/ontology/enable.md)
>
> What works out of the box, and what needs a triple store.

## What Is an Ontology?

An **ontology** is a formal, machine-readable model of the concepts in a domain, the properties those concepts have, and the relationships between them.

A glossary tells you that "Churn Rate" exists and gives you a paragraph of prose. An ontology tells you, in a form software can act on:

* **Churn Rate** is a *Metric*.
* It is **calculated from** *Active Subscriptions* and *Cancelled Subscriptions*.
* It is **part of** the *Retention* concept.
* It has the attributes `unit = percentage` and `grain = monthly`.
* It is **exactly equivalent to** `fibo-fnd:CustomerAttritionRate` in an external standard.
* **calculatedFrom** is *not* symmetric, so nothing can silently infer the reverse.

The difference matters because the second version is *computable*. Ask "what breaks if the Cancelled Subscriptions definition changes?" and you get an answer, because the derivation is written down as data rather than described in a paragraph.

> [!NOTE]
>
> **Ontology, taxonomy, glossary, knowledge graph — the short version**
>
> | | What it gives you | Example |
> | - | - | - |
> | **Glossary** | Agreed names and definitions | "Churn Rate: the share of customers who cancel in a period." |
> | **Taxonomy** | A single hierarchy | Retention → Churn → Voluntary Churn |
> | **Ontology** | Many *typed* relationships, properties, and rules — the schema of your business | Churn Rate `calculatedFrom` Cancelled Subscriptions; `partOf` Retention |
> | **Knowledge graph** | The ontology *plus the actual instances* — your real tables, columns, dashboards, owners, and lineage, connected | `db.prod.subscriptions.cancelled_at` → *Cancelled Subscriptions* → *Churn Rate* → `dash.exec_kpis` |
>
> In OpenMetadata, the ontology is the blueprint and the knowledge graph is the building.

## Why Ontologies Matter Now

Ontologies are a decades-old idea from the semantic web. They are having a moment for a specific and practical reason: **LLMs are extremely good at language and extremely bad at knowing which table you meant.**

### Retrieval Is Not the Bottleneck; Disambiguation Is

Ask an agent "what was revenue last quarter?" and it will happily find fourteen tables with a `revenue` column. Semantic search narrows that down by similarity — but similarity cannot tell you that *Recognized Revenue* is the one Finance signs off on, that it is calculated from *Booked Revenue* minus *Deferred Revenue*, and that the `revenue_v2_final` table is deprecated. Only a model of the business can.

An ontology gives the agent a small, dense, human-curated map of the domain to reason over, instead of asking it to reconstruct that map from thousands of column names on every request.

### Graph Shape Beats Chunk Shape

RAG over text chunks answers "what does the docs say about X." Enterprise questions are usually multi-hop and structural:

* *"Which dashboards would break if we drop this column?"*
* *"Everything classified PII that flows into a system outside the EU."*
* *"Which of my Tier-1 tables have no owner and no data contract?"*

Those are graph traversals, not similarity lookups. A knowledge graph answers them exactly, in one query, with no hallucination surface — because the answer is a set of edges, not a generation.

### Agents Need Guardrails They Can Read

An agent acting on your data needs to know not just *where* the data is but *what it is allowed to conclude*. Typed relationships carry logical characteristics — symmetric, transitive, functional — and OWL axioms carry constraints like disjointness. That is a contract the agent can consult and that OpenMetadata can validate against, rather than a convention living in someone's head.

### Semantics Outlive Pipelines

Tables get renamed, warehouses get migrated, dbt models get refactored. The concept *Customer* does not. Modeling meaning separately from storage is what lets the catalog survive a re-platform — and what lets two systems that disagree about column names still agree about concepts.

> [!TIP]
>
> **The one-line case.** Search tells an agent what *exists*. Lineage tells it what *flows*. An ontology tells it what things *mean* — and a knowledge graph is the only place where all three are queryable together.

## How OpenMetadata Implements It

OpenMetadata does not ask you to stand up a separate semantic-modeling tool and then reconcile it with your catalog. Ontologies are first-class OpenMetadata entities. You can version them as releases and bind their concepts to the data assets in your catalog through the API. Collate adds Ontology Studio, a workspace for authoring and publishing ontologies.

| Ontology concept | OpenMetadata entity | Standard it maps to |
| - | - | - |
| Ontology | **Ontology** | `owl:Ontology` |
| Concept | **Ontology Concept** | `owl:Class`, `skos:Concept` |
| Typed relationship | **Relationship Type** | `owl:ObjectProperty` |
| Property | **Ontology Property** (object, data, or annotation) | `owl:ObjectProperty`, `owl:DatatypeProperty`, `owl:AnnotationProperty` |
| Logical axiom | **Constraint** (stored as an axiom) | `rdfs:subClassOf`, `owl:equivalentClass`, `owl:disjointWith`, … |
| External crosswalk | **Concept Mapping** | `skos:exactMatch`, `closeMatch`, `broadMatch`, … |
| Version | **Release** | A frozen snapshot of the ontology |
| Instance data | Tables, columns, dashboards, pipelines, … | `om:Table`, `om:Column`, `dcat:Dataset`, … |

Two consequences worth understanding before you go further:

1. **Your relational database stays authoritative.** Ontologies, concepts, properties, constraints, and releases are stored as ordinary OpenMetadata entities with versioning, ownership, reviewers, and change events. Authoring, import and export, publishing releases, and SPARQL over an ontology's draft or active release all work with **no triple store deployed**.
2. **The RDF knowledge graph is a projection.** When you enable RDF, OpenMetadata mirrors the ontology *and every other entity in the catalog* into an Apache Jena Fuseki triple store as a derived index, the same way it mirrors entities into Elasticsearch/OpenSearch for search. That projection is what unlocks catalog-wide SPARQL, reasoning, SHACL validation, graph insights, and the knowledge-graph MCP tools.

> [!WARNING]
>
> The RDF knowledge graph and Ontology Explorer are **Beta** features. RDF is **disabled by default**. The Ontology Explorer works without it. The AI proposals, the Knowledge Graph tab, and the knowledge-graph MCP tools require it. For more information, see [Enabling Ontology & Knowledge Graph](https://docs.open-metadata.org/v2.1.x/how-to-guides/ontology/enable.md).

## What Needs What

Not every surface needs the triple store. This is the fastest way to tell which half of the feature you are looking at.

| Surface | Requires |
| - | - |
| The **Ontology Explorer**, and the ontology APIs for concepts, relationships, properties, constraints, mappings, releases, and SPARQL over an ontology's draft or active release | Nothing beyond an ontology |
| **Relationship type** management, **Ontology Library** packs, ontology **import and export**, the `ontology_describe` MCP tool | Nothing beyond an ontology |
| The **SPARQL Playground** | RDF |
| The **Knowledge Graph** tab, catalog-wide SPARQL, graph exploration and export | RDF |
| **Inference**, **SHACL validation**, and **graph insights** | RDF |
| The `sparql_query`, `entity_neighborhood`, `find_by_tag`, and `shacl_validate` MCP tools | RDF |
| **Linked Open Data** IRI dereferencing | RDF |
| The `/api/v1/ontology/ai` proposals | RDF and a configured LLM provider |

## The Pieces

**1. Model your domain in the glossary**

Create glossary terms and connect them with typed relationships. Browse the result in the Ontology Explorer. To manage ontologies, concepts, constraints, and releases programmatically, see the Ontology API Reference.

[Ontology Explorer →](https://docs.open-metadata.org/v2.1.x/how-to-guides/data-governance/ontology.md)

**2. Attach concepts to real assets**

Assign glossary terms to tables, columns, dashboards, and pipelines the way you already do. This is the join between the blueprint and the building.

[Glossary assets →](https://docs.open-metadata.org/v2.1.x/how-to-guides/data-governance/glossary/assets.md)

**3. Project it into the knowledge graph**

Enable RDF and run the indexing application. Every entity, tag, owner, and lineage edge becomes triples in a queryable named graph.

[Knowledge Graph →](https://docs.open-metadata.org/v2.1.x/how-to-guides/ontology/knowledge-graph.md)

**4. Query it — as a human or as an agent**

Ask graph-shaped questions in the SPARQL console, or let an AI assistant call the knowledge-graph MCP tools directly.

[SPARQL →](https://docs.open-metadata.org/v2.1.x/how-to-guides/ontology/knowledge-graph/sparql.md) · [AI agents →](https://docs.open-metadata.org/v2.1.x/how-to-guides/ontology/ai-agents.md)

## Where to Go Next

> [card] [Core Concepts](https://docs.open-metadata.org/v2.1.x/how-to-guides/ontology/concepts.md)
>
> Concepts, relationship types, attributes, axioms, IRIs, and the standards behind them.

> [card] [Ontology Explorer](https://docs.open-metadata.org/v2.1.x/how-to-guides/data-governance/ontology.md)
>
> Explore glossary terms and their relationships as a graph.

> [card] [Knowledge Graph](https://docs.open-metadata.org/v2.1.x/how-to-guides/ontology/knowledge-graph.md)
>
> What OpenMetadata projects, and what you can ask of it.

> [card] [Ontology & KG for AI Agents](https://docs.open-metadata.org/v2.1.x/how-to-guides/ontology/ai-agents.md)
>
> The MCP tool surface and agent recipes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.