Ontology in simple terms: what is an ontology in Microsoft Fabric and Databricks?

Written by Kurt Buhler | Nov 23, 2026, 9:04:29 PM

Key takeaways

  • An ontology is part of the context layer that maps your business data for AI: It aims to be a complete and authoritative model of a domain. This includes concepts, rules, and how they relate to one another. In data platforms, ontologies are part of the context layer; the purpose is to give agents context to improve their outputs with queries or building artifacts.
  • Ontologies are different from semantic models: Semantic models and ontologies both give data meaning, but they have different purposes, and ontologies don’t replace a semantic model. Ontologies are used only for AI, they can’t be queried directly, and you can’t connect artifacts to them like Power BI reports or apps.
  • In Fabric, ontologies are context artifacts; they can’t replace semantic models: As of November 2026, ontologies have a TMDL definition. It has some (but not all) of the same TMDL files as a semantic model, but adds ontology-specific object types and properties on top.
  • In Databricks, the Genie Ontology is a curation of artifacts and snippets: This is a collection of artifacts from the Unity Catalog, as well as learned knowledge snippets that Genie adds itself. You don’t build an ontology in Databricks; it’s a passive and proprietary layer that Genie manages itself to “rank” items and improve their use.
  • Data, documentation, and semantic models come first before an ontology: Despite attempts to re-invent the semantic layer, the foundations haven’t changed. Prioritize building good semantic models / metric views, as well as the quality and completeness of your data and documentation before you invest in ontologies. This will prepare you for success in any scenario.

This summary is produced by the author, and not by AI.

What is an ontology?

In a data platform, the ontology is a business map of your data for AI. The idea is that it should efficiently deliver structured context for AI chatbots and agents to improve their outputs when generating queries and artifacts. Ontologies are metadata that describe your data and BI artifacts, and how they relate to one another; while semantic models or views are part of the semantic layer, the ontology is part of the context layer.

Where an ontology sits in a data platform

Consumption

People and AI use the data through the items in this layer.

  • Reports and apps query the semantic model with DAX.
  • Copilot and data agents query the semantic model. Data agents also query data items with SQL or KQL.
  • Agents read the ontology, skills and agent docs before they write a query.

Context

Agents read context to find out which data to use, and how to use it.

  • The ontology maps business concepts, relationships and rules to data items and semantic models.
  • Agents read the ontology, for example through its MCP server.
  • Skills teach an agent a process. Agent docs explain a project and its items to an agent.

Semantics

Semantic models and semantic views give the data business meaning that you can query.

  • A semantic model imports or queries data items, and adds relationships and DAX measures.
  • A semantic view holds definitions as YAML files in a lakehouse. Fabric publishes them as a read-only semantic model.
  • Reports, apps, Copilot and agents query the semantic model. The ontology refers to its tables and measures.

Data

Data items store the rows.

  • Semantic models import or query the data.
  • Semantic views name the tables of a lakehouse.
  • The ontology binds its entity types to tables. The data stays in the data item.

In this article, we explain with examples ontology in a data platform: what it is, what it does, and how it differs from a semantic model.

IMPORTANT

We don’t list ontologies as part of the semantic layer because they’re only usable by AI; the context layer is AI-specific. This is unlike semantic models or metric views, which contain data semantics and are usable broadly by many consumers: AI, humans, and downstream artifacts.

Why is ontology so confusing and misunderstood?

Unfortunately (and ironically), the term ontology has become very confusing. This is in part because it’s a difficult and unfamiliar word. It originates from ontology in philosophy (the study of being, existence, and the nature of reality). However, the main reason why it’s confusing is because it actually means different things depending on what domain and data platform that you’re referring to.

Most information you’ll find about ontology online (that isn’t marketing hoobity-hoo) pertains to the domain of knowledge representation. Here, an ontology is a formal, explicit specification of a shared conceptualisation (Gruber, 1993; Studer et al., 1998). In essence, this means that it’s an agreed-upon, authoritative model of a domain, which is machine readable (using RDF and OWL). This is the original and correct definition of an ontology.

It contains standardized vocabulary and taxonomies; it’s the unified source of truth for which words you use for which concepts and why, as well as synonyms, relationships, and so forth. For instance, in fields like medicine and genetics this is incredibly important to ensure a unified language for working with and communicating about and modeling these data and concepts.

Traditionally, you’d use this type of ontology for symbolic AI, where explicit logic rules make inference possible. However, more recently you can also use it with LLMs to improve retrieval augmented generation (RAG) and newer AI applications. Henceforth, to avoid confusion, we’ll refer to these types of ontologies as RDF/OWL.

In data platforms, the ontology has diverged from RDF/OWL. The various data platforms also implement ontologies very differently. We discuss this in more detail with examples later in the article.

NOTE

Data platforms have mostly co-opted the term ontology; these are not true RDF/OWL ontologies, despite similarities in purpose or structure. This is problematic, because when you look up content about ontology, much of what you’ll find pertains to RDF/OWL or ontology engineering; this material, while correct and interesting, won’t match what your data platform calls an ontology.

Be aware of this to avoid a lot of unnecessary confusion and misunderstanding.

What’s the purpose of an ontology?

In a data platform, the purpose of an ontology is to get better answers from AI chatbots and agents like Copilot, Fabric data agents, or Databricks Genie. AI uses the ontology as context to ground its answers in the definitions, rules, and relationships that exist between business concepts. Ideally, the ontology should provide an authoritative view of a domain’s:

  • Vocabulary: Which words you use for which concepts, including synonyms, and their definitions; what those words mean.
  • Concepts: The things that your business cares about, like a customer or an invoice, and how they relate to one another.
  • Rules: The constraints and conventions that people in your business know, but that your data doesn’t state.
  • Metrics: What you measure, and where the authoritative calculation lives.
  • Data: Which data items and objects hold the data for each concept.
IMPORTANT

If you won’t use AI to query or build with your data, then you can’t use or directly benefit from an ontology.

Example of an ontology

Ontologies are littered with new technical terms, so we explain this best with a simple scenario example (focused on an ontology in Fabric).

NOTE

This scenario is purely illustrative as an example for this article. Ontologies in Fabric are in preview; we do not recommend that you use them today for production workloads.

Starting with a semantic model

Consider the following simple semantic model from our training dataset, SpaceParts:

This is a simple semantic model reporting sales performance by customer and product against an annual budget. You can query it with or without AI, and connect it to downstream reports, apps, notebooks, and so on. In the semantic model, there’s the following structured information:

  • Data objects like tables, columns, relationships, and measures.
  • Calculation logic in measures, calculated columns, and user-defined functions.
  • Uniform naming conventions.
  • How data structures physically relate to one another.

Let’s say that we want to use this semantic model with AI.

We have a semantic model. Do we even need an ontology?

When you build good semantic models that follow the recommended practices and guidelines, you’ll already get very good results using AI without special context or ontologies. This includes not only technical best-practices but also AI-readiness guidelines. This is especially true with the latest models and AI tools, which perform much better than the 2024-era Copilot and Gemini experiences that made a stark impression on most business users.

Frontier models are able to infer a lot just from the data structures, prompts and naming conventions. Together with basic prompts and context, you can get much further today with the latest models and agents than even six months ago. However, in our testing, ontologies can also help reduce the number of tokens - and therefore the cost - of AI-generated queries, especially with large semantic models.

Furthermore, for conversational analytics, we are beholden to the architectures chosen by the platform for context engineering. For instance in Fabric, if you use the Fabric MCP servers, you can’t control what semantic model context or metadata are returned. This means if you provide the same information in an ontology and in semantic model descriptions and annotations, the ontology will deliver it more effectively to the agent simply because that’s how Fabric’s MCP servers work. Any alternative would require a custom solution.

Worth mentioning, Databricks has also shown similar results in a recent benchmark with Genie Ontology comparing Genie to other coding agents (that couldn’t use the ontology).

IMPORTANT

A lot of cited evidence that ontologies improve AI answers are based on research published in 2024 and earlier on ontology-augmented RAG, before the current generation of frontier LLMs and AI agents. There are very few published studies or benchmarks - third-party ones in particular - that actually show evidence that ontologies improve AI answers and queries in a data platform compared to alternative approaches like context-augmented semantic models, AI skills, and so on.

In other words, with the exception of Palantir, ontologies in a data platform are immature. It’s too early to say whether building an ontology will improve the outputs that you get from AI in your data platform or deliver you an ROI.

What problem does an ontology solve?

All that said, an ontology can still be an interesting solution to centralize context for AI. For instance, there’s several things that the semantic model alone doesn’t have:

  • Relationships with other entities outside of the model: A semantic model doesn’t exist in a vacuum. In an organization, many data objects – especially ones like invoices, budget, and their respective measures – are used in several different scenarios. For instance, revenue might still be important in the context of supply chain demand planning, pricing analytics, or bill-of-material analysis. With an ontology you can represent the complete superset of all conceptual relationships.
  • Implicit, centralized context from the business in natural language: While this is something that you can technically add as descriptions, annotations, or AI instructions, they aren’t the ideal place for structured business context like exceptions, contradictions, edge-cases, and business rules. Agents need a centralized, unified entry point for context that isn’t tied to a specific semantic model, or its objects and properties. This is especially true in decentralized scenarios where people are creating their own semantic models or queries from centrally managed sources like a lakehouse, warehouse, or other database.
  • Enriching data structures with meaning: In a semantic model, you can see a relationship between tables like Regions and Customers. However, nothing in the semantic model clarifies the nature of that relationship. In an ontology, we can declare that in natural language. This is true not just for data structures, but also calculations. An ontology can give us a place to centralize the business definitions of terms and metrics in natural language, while their technical data definitions remain in the semantic layer.
NOTE

This problem can also be solved in other ways, such as annotations in a semantic model, skills, or custom context engineering. However, these would all require custom architecture and tools to deliver the context to agents at the right time and in the right amounts.

Describing the scenario

In this scenario, business users and developers have access to an enterprise agent (like ChatGPT, Claude Enterprise, or Copilot). They want to be able to query and build artifacts from sales data across a wide range of scenarios. Many of these analyses are short-lived, and the business is changing and shifting priorities rapidly. Many – but not all – questions can be addressed by the existing semantic models, and it isn’t necessarily worthwhile to make changes to existing or add new semantic models to address these requests.

To facilitate this, the SpaceParts data team decide to ensure a set of certified, quality data assets with semantic models and lakehouses. They undertake with business stakeholders an effort to construct an Order-To-Cash ontology which describes the entire domain. This is in effect a requirements gathering and documentation exercise no different than any before, but the resulting context will now be surfaced explicitly in an ontology.

Building the ontology

An ontology is typically represented as bubbles with lines between them; a graph or network diagram. Such a diagram consists of nodes (the circles) and edges (the lines that connect them). We’ll build something like this, here. You should know, though, that while this can be helpful to illustrate basic examples, ontologies in the real world can be often too complex to usefully be depicted this way.

To start, the ontology includes:

  • Entity types (with their data, key, and synonyms).
  • Properties of each entity type.
  • Metrics.
  • Relationships between the entity types.
  • Rules.
  • Additional properties (annotations).

We start with a single entity type: Invoice.

An entity type has a name, which is the official “canonical” name for a concept in the business. This entity type corresponds to the Sales table. We call it Invoice instead of Sales because that’s the actual concept that we’re trying to represent. Of course, invoices are what we use as part of our sales process, but the entity that this table corresponds to is an invoice. If a table already has the name that the business uses (like Date or Budget), then the entity type just keeps that name. It might seem pedantic, but naming conventions are integral to ontologies.

So in this case, we start by mapping the entity types to tables in our semantic model (the backingTable), some of which (like Customer) have a key (the keyProperty):

As you might expect, the key is the column that identifies one row, so it must have a different value in each row of the table; this is how each row becomes one Customer that relationships can point to. Here, the key is the Customer Key.

For example, the billedTo relationship that we add later points from one Invoice to one Customer. The Sales table has a Customer Key column that says which customer we billed each invoice to.

Note that the Invoice entity type has no key; usually, including key columns in a fact table is a bad practice that increases the size of your semantic model. You don’t need to add a key to a fact table to use it in an ontology.

Keys are optional in the ontology definition; an entity that you don’t link to data has no backingTable, so it doesn’t need a key. An example of this is later (IncentivePlan) in step 8.

In Fabric, as of November 2026, the ontology item stores all of this as TMDL (whether you write it yourself or create it in the user interface):

/// A line of a billing document that we send to one customer.
entity Invoice
	backingTable: Sales

The Customer entity type also has a key:

/// An account that orders parts and that we bill.
entity Customer
	backingTable: Customers
	keyProperty: 'Customer Key'

Ontologies use TMDL like a semantic model, so you can define descriptions for most object types. However, you should try to use the typed properties or custom annotations, reserving descriptions for basic, freeform information. Regardless, agents can read every part of the ontology, so it’s going to be helpful.

It’s important to mention that – currently - the ontology definition also contains some of the metadata from the semantic model. To link an entity type to the Sales table, the ontology has its own copy of the definition of that table (its columns, measures, and relationships), which points back to the semantic model. That’s why you’ll find files like tables/Sales.tmdl and relationships.tmdl in an ontology, too.

WARNING

If you change the semantic model schema, such as by deleting or renaming tables and columns, it will break the link with the ontology. This has to be fixed manually or by using an agent to modify the ontology definition.

A synonym is how else people would refer to a concept. This is the same as the synonyms that you’d put into the Q&A or Prep Data for AI experiences in the semantic model. The purpose is to avoid ambiguity while accounting for the looseness of colloquial language in the business.

An example would be having Sales & Shipped have a synonym for Shipments or having Gross Sales also be Turnover and Revenue, especially when there are many other revenue metrics in the data. Note that as of November 2026, you can add synonyms to entity types, properties, and metrics; however, Fabric doesn’t accept a synonym on a measure that comes from a semantic model.

For Invoice, the synonyms are billing document and invoice line:

/// A line of a billing document that we send to one customer.
entity Invoice
	backingTable: Sales

	synonym 'billing document'
	synonym 'invoice line'

A property has a name, a data type, and the column where it gets its values from. Like an entity type, it can also have a description and synonyms. Likewise, a property is not just a column; it can also be a column that lives in another table (like the Territory of a Customer, which is in the Regions table), a group of several columns (the Address of a Customer), or a series of values over time (the Stock Level of a Product). A value that you can only get with a calculation (like the Open Balance of an Invoice) is a metric, and not a property.

NOTE

You likely find this confusing because you are still thinking in terms of data engineering, where the property must have some kind of physical link to the entity. This is not the case in an ontology; the link is conceptual, not physical.

In the TMDL, a property sits inside its entity type. Here, we add the Ship Date:

/// A line of a billing document that we send to one customer.
entity Invoice
	backingTable: Sales

	/// The date that the customer confirms the goods arrived. One invoice can have multiple ship dates, and one line can also have multiple ship dates (partial deliveries).
	property 'Ship Date'
		dataType: dateTime

		backingConfiguration
			valueColumn: Sales.'Ship Date'

		synonym 'shipping date'
		synonym 'Confirm Goods Receipt Date'
		synonym CGRD
		synonym PODAT

	synonym 'billing document'
	synonym 'invoice line'

An entity type can also have metrics. A metric is just a measure; a calculation that the business agrees on, like the Turnover Quantity (the total net invoice quantity):

A metric has a name, a description, and a definition. The definition says where the authoritative calculation lives, and there are three ways to write it.

The first is to use a measure from the semantic model. In Fabric, each measure appears as a metric under the entity type for the table that you defined it on. The ontology then only has a reference to the measure, and the DAX stays in the model:

table Sales

	/// The number of units that we invoiced.
	measure 'Turnover Quantity' = EXTERNALMEASURE("Turnover Quantity", DOUBLE, "DirectQuery to AS - <workspace-id>/<semantic-model-id>")
		formatString: #,0
NOTE

As you can see, the ontology actually uses the same conventions as a composite semantic model, here. Hopefully in the future it has a cleaner syntax that lets you simply name the measure on the table, and reuse its format string (expression) and TOM properties as-is…

You might also notice here that this is occurring on a table and not an entity. That’s because a metric that comes from a measure is created in the tables/<table-name>.tmdl files, which use the same syntax as those in a semantic model. Only the metrics that you write in the ontology itself (see below) are their own standalone files in a metrics/ folder. Hopefully in the future all metrics are standalone files that simply link to an entity type, which would be a lot simpler…

You can also add metrics for OneLake tables in a lakehouse, warehouse, or eventhouse. You can only do this if the entity type has a backingTable from those artifact types. The second way is to write the formula yourself in SQL or KQL:

/// The number of units that we invoiced.
metric 'Turnover Quantity'

	expression
		dialect: SQL
		expression: SUM([Net Invoice Quantity])

The third is to describe the calculation in natural language, and leave it to the agent to write the query:

/// The number of units that we invoiced.
metric 'Turnover Quantity'

	expression
		dialect: NaturalLanguage
		expression: The sum of the Net Invoice Quantity of all invoice lines.
NOTE

As of November 2026, you can’t deploy the last two examples from TMDL as they are; they only show the syntax. Fabric rejects a metric in SQL, KQL, or natural language that has no target scope (the tables that the metric applies to), and according to the ontology definition reference, you can’t express a target scope in TMDL yet.

From an entity type, we can create a relationship to another one. For example, invoices are billed to customers:

Next, we add a second entity type (Customer) and a relationship between the two. Relationships are named to describe the nature of the relationship in natural language. In the graph, a relationship is an edge that starts at one node and ends at another.

Together, the two entity types and the relationship are a triple. A triple is a statement that has three parts: a subject (Invoice), a predicate (billedTo), and an object (Customer). You can read a triple like a sentence… an Invoice is billedTo a Customer. An ontology is made of many triples like this one. Note that this triple is about the types; it says that invoices are billed to customers, in general. A triple about one specific invoice and one specific customer is data, which you’d find in a knowledge graph (we explain the difference later in this article).

Relationships between entity types are their own objects in the TMDL, in the file entityRelationships.tmdl. Here, rel_invoice_customer is the relationship between the tables that the two entity types get their data from:

/// A line of a billing document that we send to one customer.
entity Invoice
	backingTable: Sales

	/// The date that the customer confirms the goods arrived. One invoice can have multiple ship dates, and one line can also have multiple ship dates (partial deliveries).
	property 'Ship Date'
		dataType: dateTime

		backingConfiguration
			valueColumn: Sales.'Ship Date'

		synonym 'shipping date'
		synonym 'Confirm Goods Receipt Date'
		synonym CGRD
		synonym PODAT

	synonym 'billing document'
	synonym 'invoice line'

/// The customer that we bill the invoice to.
entityRelationship billedTo
	fromEntity: Invoice
	toEntity: Customer

	backingConfiguration
		relationship: rel_invoice_customer

We can extend this to all of our tables, with one entity type per table and one relationship per join. This includes the inactive relationship for the ship date (which stays inactive in the ontology, too), so an Invoice relates to a Date twice… by billedOn (its billing date) and by shippedOn (its ship date):

This wouldn’t be particularly helpful on its own, though, because an ontology is not one-to-one with a data model, where entity types are tables and relationships are the joins between those tables.

The example ontology also has a few things that you won’t find as tables or relationships in the semantic model:

  • An entity type from a column: In the semantic model, a territory is only a column in the Regions table, next to the Territory Directors column that names the people who are responsible for it. In the business, however, a territory is a concept with its own definition and its own rules. So, Territory is its own entity type. An Employee who is a territory director is responsibleFor a Territory, and a Station is partOf a Territory.
  • An entity type from a value: Whether a customer is a key account is only a value (Key Account) in the Account Type column. If the business has its own terms or rules for key accounts, then KeyAccount can be an entity type, too. Here, it’s a subtype of Customer; every key account is a customer, but not every customer is a key account. A rule (KeyAccountCustomers) says which customers are key accounts.
  • An entity type that isn’t in the data: SpaceParts pays a bonus to its salespeople from a sales incentive plan, and for this plan, turnover has its own definition (it doesn’t include late delivery penalties). The semantic model has no table for the plan. In the ontology, IncentivePlan gives this concept a name, so that a relationship (an Employee participatesIn an IncentivePlan) and a rule (IncentiveTurnover) can refer to it, even before you bind it to data.
  • A relationship without data: participatesIn, responsibleFor and partOf only say how the concepts relate; there’s no join behind them in the ontology. The agent can read them, but it can’t query them.

An entity type that isn’t in the data (like IncentivePlan) has no backingTable and no keyProperty. In the TMDL, it only has a name, a description, and synonyms:

/// The sales incentive plan, which pays a bonus to people in the sales organization for the turnover that they are responsible for.
entity IncentivePlan

	synonym SIP
	synonym 'sales incentive plan'
	synonym 'bonus plan'
IMPORTANT

It’s important to not try to map ontology concepts 1:1 with data engineering or data modeling concepts, because they’re not the same. This is a mistake that even data platform vendors are making. An entityType can be a table (Invoice), a column (Territory), or even the rows that have a certain value (KeyAccount, which is every customer with the Account Type of Key Account).

Note that in Fabric, as of November 2026, an entity type gets its data from a table, and you can’t filter the rows of that table in the ontology. So, for an entity type like KeyAccount, you’d need a table or view that only has the key accounts. In the example, KeyAccount is a subtype of Customer and Territory is an entity type, both without data of their own. Also note that subtypes (entity type inheritance) are still being rolled out, so they might not be available in your tenant yet.

The ontology also isn’t limited to a single semantic model. It can also reference lakehouse tables or multiple semantic models, if necessary.

Next, we add rules. These are the business rules expressed in natural language. In the graph, you can think of a rule as another kind of node, which connects to the entity types that it’s about (a rule can also refer to specific properties and relationships):

The figure shows three of the five rules in the example. An example of this could be a rule that describes when to use which relationship, such as the rule MonthClose present in the file rules/MonthClose.tmdl in the ontology definition:

rule MonthClose
	statement: The month-end close happens on the 5th workday of the month. After this, invoices for the previous month can only be reported by billing date. Before the month-end close, invoices must be reported by ship date. This is true whenever you would report the revenue for that month as part of intra-month (MTD) figures, or quarter-to-date, or year-to-date.

	ruleReferencedEntity Invoice
		propertyScope: specific

		ruleReferencedProperty 'Billing Date'

		ruleReferencedProperty 'Ship Date'

	ruleReferencedEntity Date
		propertyScope: specific

		ruleReferencedProperty 'Workdays MTD'

	ruleReferencedRelationship billedOn

	ruleReferencedRelationship shippedOn
NOTE

Nothing in Fabric enforces or runs a rule. A rule is just text instructions for the agent and not something that will deterministically stop or steer its behavior.

This rule could already be implicit in the DAX measure, but having it explicitly in natural language should make it clearer, especially if the agent can’t view the DAX measure definitions.

For example, hypothetically, a measure with this logic could look as follows (it wouldn’t perform well, though):

Sales & Shipped MTD =
-- The latest date with data, instead of TODAY ()
VAR _Today =
    CALCULATE (
        MAX ( 'Date'[Date] ),
        REMOVEFILTERS ( 'Date' ),
        'Date'[IsDateInScope]
    )
VAR _MonthEnd =
    EOMONTH (
        MAX ( 'Date'[Date] ),
        0
    )
VAR _MonthClose =
    CALCULATE (
        MIN ( 'Date'[Date] ),
        REMOVEFILTERS ( 'Date' ),
        'Date'[Date] > _MonthEnd,
        'Date'[Workdays MTD] = 5
    )
VAR _Period =
    CALCULATETABLE (
        DATESMTD ( 'Date'[Date] ),
        'Date'[IsDateInScope]
    )
RETURN
    IF (
        _Today >= _MonthClose,
        -- After the month-end close: by billing date
        CALCULATE (
            [Turnover],
            _Period
        ),
        -- Before the month-end close: by ship date (the inactive relationship)
        CALCULATE (
            [Turnover],
            _Period,
            USERELATIONSHIP ( 'Sales'[Ship Date], 'Date'[Date] )
        )
    )

Finally, there are additional properties. These could include the roles of certain entity types or metrics, such as the Budget being a Target for the metric Turnover, and having a targetPriority higher than other targets that the business might have, like Forecast, 1YP, and then 2YP (which aren’t in this example). Another example of a valuable additional property could be alternateDefinition in the event that a definition might vary for a distinct population of users or business / analytical scenario. You can see these annotations on Budget and the measure [Turnover] in the explorer below. There’s countless examples of context that you could put into these additional properties as annotations; you just want to make sure that you’re consistent.

In the TMDL, these are annotations:

entity Budget
	annotation role = Target
	annotation targetFor = Turnover
	annotation targetPriority = 1
The complete ontology definition

You can click through an example ontology’s definition interactively in the following explorer:

The example ontology definition

  • Also in a semantic model
  • Only in an ontology

We added the grey notes for clarity. They aren’t part of the TMDL, and they don’t copy with it.

How does an agent actually use an ontology?

Once we have the ontology, the agent has to actually use it.

An agent can’t query an ontology like a database. In Fabric, every ontology item has its own endpoint: this endpoint is actually an MCP server. However, it’s important to mention that your agent doesn’t use the endpoint to navigate the ontology directly. Rather, it uses a tool to ask another agent inside of Fabric (think of it like an ephemeral data agent) to retrieve the answer.

As of November 2026, the MCP server has three tools, which give your agent two ways to use the ontology:

  • Look up the definitions: Two tools return the entity types (with their properties, synonyms, annotations, and the tables that they’re bound to) and the rules. This is fast (less than a second), but your agent can’t traverse the ontology this way; the tools don’t return the relationships, the metrics, or the data items that you’d query.
  • Ask a question: One tool takes your whole question in natural language. An agent in Fabric then reads the ontology, queries the data, and returns an answer (or a query, if that’s what you ask for).

In theory, an agent should be able to navigate the ontology either as metadata or using a connected Graph Database. However, the GraphDB is very expensive; thankfully, however, you don’t need to use it. Instead, the ontology can just be a metadata layer, where the agent reads the definition and uses it to navigate related concepts and map them to items and data objects in Fabric using their names and IDs.

An agent navigating the ontology

managedBylocatedInbilledToofProductbilledOnforCustomerforProductforMonthEmployeeStationCustomerInvoiceProductBudgetDate
NOTE

Note that the agent doesn’t traverse the ontology in the direction of relationships like a query. It traverses it in any direction based on the references it finds.

The diagram below shows what happens when you ask an agent a question about your data:

In more detail:

  1. Ask your agent a question, like how turnover compares to budget so far this month.
  2. It connects to the MCP server of the ontology. It can look up the entity types and the rules to see which ones look relevant to your question (here, Invoice and Budget).
  3. Your agent hands the question to the ask tool.
  4. The ask tool starts an agent in Fabric, which only exists for that one question.
  5. The agent in Fabric then traverses the ontology. It starts at one entity type (a node) and follows the relationships (edges) to get to the other entity types that it needs; for instance, from Budget to Date to Invoice. As it goes, it also reads any rules and metrics that are attached to them. That’s where it finds out how we treat a month that isn’t closed yet, and that budget isn’t at the same granularity as invoices. This is sort of like progressive disclosure that happens in skill files, and is important to ensure that agents retrieve context efficiently in terms of time and tokens.
  6. The agent in Fabric writes a query and sends it to the data item behind each entity type. Which query language (dialect) it writes depends on the item: DAX if it’s a semantic model, SQL if it’s a lakehouse or warehouse, or KQL if it’s an eventhouse. Note that it’s the data item that runs the query… the ontology only holds the definitions. For the question above, for example, the agent can call the [Turnover MTD] measure of the semantic model and only add a filter for the month; it doesn’t have to rewrite the DAX.
  7. Your agent returns the answer. A good agent (or one that you’ve instructed well) also says which rules and metrics it relied on, so that you can check its work.

If you add an ontology as a source to a Fabric data agent, it goes through a similar process, except that it doesn’t use the MCP server. Instead, it loads a read-only copy of the ontology as context.

WARNING

As you might expect after reading this description, today, if your agent uses an ontology, it’s rather slow, and also not very token efficient. It also risks loss of information, since it’s a baton-pass between your agent (like Claude Code) and the one in Fabric (that uses the ontology).

Ontologies in different data platforms

The previous example focused on Fabric, alone. However, confusingly, every data platform has implemented ontologies completely differently… it’s actually quite impressive, honestly how they are calling so many different things an “ontology”. There are dramatic differences, which make it very difficult for technical leaders and decision-makers to reconcile what an ontology is and concretely why it’s useful for them:

  • Specification: What properties the ontology has, and how it’s structured.
    • In Fabric, as of November 2026, the ontology definition is TMDL files; it’s a subset of the semantic model with additional metadata properties on top.
    • In Databricks, the ontology doesn’t have a format; it’s a collection of modelled knowledge from Unity Catalog and knowledge snippets written by Genie itself.
  • Scope: Where the ontology lives.
    • In Fabric, the ontology is a workspace item like a lakehouse or report.
    • In Databricks, the ontology isn’t an item in a workspace; it’s a “unified context layer” on top of Unity Catalog, and what you can see of it depends on your Unity Catalog permissions.
  • Features: What the ontology does; how it works.
    • In Fabric, the ontology is primarily metadata, but also has an MCP server and has attached graph, KQL, and eventhouse databases (that are optional to use). It’s something that you build and use for AI to use your semantic layer.
    • In Databricks, the ontology is context engineering by Databricks; you as a developer don’t actually “build” the ontology. Instead, you build the Unity Catalog artifacts, and Genie adds learned knowledge by itself, which you can inspect but can’t edit.

Even in this very high-level overview of Fabric and Databricks, we can appreciate that the ontology is different at almost every level, despite both being “ontologies”. The only thing that they have in common is that it’s metadata for agents that refers to other platform artifacts. This is part of what makes it so difficult to discuss and understand ontologies, especially for businesses and decision-makers.

You can click through the following accordion dropdowns for more details about what the ontology is in each specific platform:

Ontology in Microsoft Fabric

In Fabric, an ontology is a workspace item that you build, either from scratch or starting with a semantic model. As mentioned above, the ontology currently uses TMDL, so its definition looks familiar if you already work with semantic models.

In it, you define entity types, which are business concepts like a customer or an order. You also define their properties, the relationships between them, rules written in natural language, and metrics. You then bind these definitions to data that stays where it is, such as a lakehouse, a warehouse, an eventhouse, or a Power BI semantic model.

What’s unique about Fabric is that the ontology builds on the semantic model. Its definition is Tabular Model Definition Language (TMDL), so it has tables, columns, measures, and relationships like a semantic model does, with the ontology objects (entities, entity relationships, rules, metrics, and namespaces) added on. You can also generate an ontology from an existing semantic model. In that case, the semantic model remains the owner of its DAX measures, and the ontology refers to them as metrics. According to the overview, you can also import supported RDF, Turtle, and OWL definitions into an empty ontology item, and export supported ontology definitions as RDF or Turtle.

As of November 2026, the definition of an ontology has the following files and folders:

You can read these files for the example ontology in the ontology explorer earlier in this article. The example has no metrics/ folder, because its metrics come from measures in the semantic model.

The ontology doesn’t run queries itself. Agents read it like a map, and then send DAX, SQL, or KQL queries to the data sources that it’s bound to (from its TMDL definition). Each ontology exposes its own endpoint for this purpose, which is an MCP server. A graph is optional; you opt in to materialize one when the path between entities is what you want to query.

WARNING

You can create an ontology by adding the ontology files to an existing semantic model definition, and deploying this “extended” definition to a Fabric workspace with the APIs. Fabric will accept this definition, but it will silently delete all of the semantic model metadata that’s not supported in the ontology. As of November 2026, this means that Fabric will drop from the ontology any TMDL definitions for:

Also, as the ontology definition evolves, we’ve observed that you can define some very strange and problematic data structures. While these structures are valid and functional, you should be careful to avoid them. As an example, you can create an ontology that works like a Power BI composite model: it connects to multiple semantic models over DirectQuery using Analysis Services. This is in fact how Fabric generates an ontology from an existing semantic model and re-uses its definitions; it creates a small composite model in the ontology definition that points to the semantic model objects and calculations.

Genie Ontology in Databricks

In Databricks, the Genie Ontology isn’t an artifact that you create, and it has no definition file. Rather, it brings together two kinds of knowledge:

  • Modeled knowledge: What you define and govern yourself in Unity Catalog. This includes:
    • Metric views (measures and dimensions, defined in YAML)
    • Pages (definitions of business terms)
    • Domains (governed tags that group assets by business area)
    • Certification of trusted assets.
  • Learned knowledge: Snippets that Genie extracts itself from your usage. Each snippet gets an authority score based on where it came from, frequency, and recency. This is somewhat similar to “auto-memory” in tools like Claude or ChatGPT. You can’t edit a learned snippet directly; you can only see which snippets Genie used for an answer. If a snippet is wrong, you fix it by addressing the underlying source it came from: a dashboard, metric view, etc. If a snippet would contradict modelled knowledge then modelled knowledge takes precedence.

As we understand it today, this information itself is then used with an underlying ontology to rank the Unity Catalog concepts. This ontology is internally part of the platform and only usable or visible to Genie itself; like Palantir Ontology, it’s a proprietary layer sitting on top of metric views and other things.

NOTE

While there may be an ontology behind-the-scenes as part of its architecture, in fact, nothing that you can control or engineer in the Genie Ontology even remotely resembles a typical RDF/OWL ontology, at all.

Ontology in Apache Ossie (Incubating)

While not a data platform, Apache Ossie (incubating) is leading an effort to create an open, vendor-agnostic specification for semantic models and ontologies. It was previously known as the Open Semantic Interchange (OSI). With this implementation, the ontology consists of a common set of files and properties. Vendors put everything that’s specific to them in metadata as an extension.

The purpose of this initiative is to help organizations own the context of their semantic layer, making it in theory easier to transport between participating vendors and platforms during migrations. So, the ontology specification in Apache Ossie is a standard; it has no features or integrations.

Apache Ossie has separate specifications for semantic models and for ontologies. As an example of the first one, semantic views in Fabric (in preview) are YAML files in a subset of this format, where one metric can have an expression in several languages:

version: 0.2.0.dev0
metrics:
  - name: Net Invoice Value
    expression:
      dialects:
        - dialect: DAX
          expression: "SUM('invoices'[net_invoice_value])"
        - dialect: ANSI_SQL
          expression: "SUM(invoices.net_invoice_value)"

As of November 2026, Fabric only publishes the DAX expression of each metric, and omits the others with a warning.

Palantir Ontology

In Palantir, we find the most complete and unique implementation of an ontology. In the Palantir platform, the ontology is a proprietary operational layer. It describes not only business semantics with data and logic, but also has a distinct kinetic layer. In brief, the focus of the kinetic layer is actions. The Palantir ontology also includes security, with descriptions of policies.

What’s unique about Palantir is the focus on decision-making; actions are first-class citizens in the platform.

NOTE

Palantir was the first data platform to use the term ontology, originating from a 2006 patent, and tracing its roots back to the original Web Ontology Language (OWL) and the DAML+OIL funded by the US defense sector DARPA. Palantir’s approach seemed to have some foresight for the current state of AI and LLMs: they prioritized AI via decisions and actions first in their platform since the beginning.

Other platforms

For completeness, other platforms are implementing ontologies, too (or things that resemble ontologies). These include Tableau Semantics, Snowflake with Cortex AI, ThoughtSpot Spotter Semantics, and others. We don’t discuss them in detail, here, as we’ve not had hands-on experience using them.

How is an ontology in data platforms different from a “traditional” ontology?

Ontologies in a data platform are quite different from “classical” ontologies:

  • Open- versus closed-world assumptions: A classical ontology uses an open-world assumption. This means that anything that the ontology doesn’t state is unknown, and not false; the ontology can define and relate concepts for which you don’t necessarily have a matching data object or business process. In contrast, data platforms work with a closed-world assumption, like any database; if something isn’t in the data, then a query treats it as if it doesn’t exist. In Fabric, you can define a concept without data (like the IncentivePlan in our example), but an agent can only read it and can’t query it. This means that ontologies in a data platform are always partial and never complete; no business will have data that covers an entire ontological space.
  • Meaning versus schema: Classical ontologies focus on providing meaning, while ontologies in a data platform focus on providing a structured layer on top of existing data and/or semantics. Data platforms treat ontologies more like engineering, which runs a bit against the original purpose and intent of ontologies.
  • Structural differences: An OWL ontology can hold individuals (specific things, like one customer) and not just the types that you map to data objects (tables and columns, for instance). It also identifies every concept with a global name (an IRI), while an entity type in Fabric identifies its rows with a key column. In many ways, the ontology specification in a platform like Microsoft Fabric is essentially just a mutated semantic model definition adding support for additional metadata (like rules or entity type relationships) and metric definition dialects (like SQL).

What an ontology doesn’t do

As we mention above, there’s plenty of confusion about ontologies. This is in part because of divergent definitions across domains and platforms, but also an abundance of misleading or incorrect content. We want to be explicit and clarify these below:

  • An ontology is not an agent. It’s context that is used by agents.
  • An ontology is not a database; it’s not a store for unstructured data. While an ontology in Fabric can have an associated graph database, ontologies are not themselves a data store and you can’t query them; they are metadata.
  • An ontology is not a knowledge graph. These are distinct concepts; a knowledge graph stores specific things and the links between them (like one invoice for one customer), while an ontology defines the concepts and rules that describe them. An ontology in Microsoft Fabric can have a graph database, but this is only useful when data can or should be modelled in this structure, such as with Bill-of-Material data. Graph databases can be expensive and complex to query, and they are not suitable for most BI scenarios, particularly in Microsoft Fabric.
  • An ontology is not a data dictionary. While the two things share a common purpose in unifying an authoritative terminology and definition for terms and metrics in the business, the ontology has a broader scope and different purpose. Unlike a data dictionary, which is intended for documentation and human readers, ontologies are technical specifications intended for AI or technical tools (which are called reasoners in RDF/OWL).
  • An ontology is not a replacement for or an alternative to a semantic model. It’s a metadata layer intended for use only by AI chatbots and agents. You cannot connect to and query this metadata (even though confusingly in Fabric you could connect to and query an Ontology’s associated graph database). The one exception in the documentation, as of November 2026, is that you can explore ontology-backed data in entity-focused experiences and Real-Time Dashboards; however, the ontology still isn’t a query engine itself. Rather, AI agents use the ontology to construct their queries and route them to the correct endpoints and databases.

The diagram below shows what a semantic model and an ontology in Fabric have in common:

NOTE

The ontology item is still in preview, so expect its definition to change.

Do you still need a semantic model or metric view?

We’ve seen this question recently many times both online and at conferences: yes, you do still need a semantic model. The semantic model is the most important strategic asset of your data estate. This is especially true in Microsoft BI, as Microsoft has objectively the strongest and most mature semantic model on the market.

If you’re using Power BI or Fabric, it’s clear: do not think that an ontology replaces your semantic model! In other data platforms – especially ones where the semantic layer is just a context file without an engine – this might be a more nuanced question to consider.

A better question to ask: do you even need an ontology in your data platform?

Many teams and organizations are turning their attention to ontologies as a promised remedy for AI-readiness; getting more value from their data with AI. Ontologies can be valuable, but they are new and still evolving. You can and should instead prioritize the fundamentals:

  • Ensuring the quality and completeness of your data and documentation.
  • Creating good semantic models.
  • Defining a lifecycle management process to support your BI artifacts, including source control, testing, and deployment (CI/CD), as well as how you’ll monitor usage and retire artifacts.
TIP

Ontologies are forcing teams and organizations to consider how to achieve better consistency and documentation of their data. Even if it turns out that ontologies themselves aren’t useful or producing measurable or convincing evidence for ROI, the act of focusing on making implicit context explicit is valuable. It improves your data, your semantic models, and your documentation, for both people and AI.

For further reading

  • What is ontology (preview)? (Microsoft Learn). This overview explains the ontology item in Fabric, including how the current experience differs from the old one that retires in January 2027.
  • Genie Ontology (Databricks). The Databricks documentation explains modeled and learned knowledge, and how Genie decides which one to use when they conflict.
  • Apache Ossie (incubating) (Apache Software Foundation). This is the project behind the open specification for semantic models and ontologies; its repository has the specifications and examples in YAML.
  • OWL 2 Web Ontology Language primer (W3C). This primer introduces ontologies in their original meaning, which helps you to recognize when content is about RDF/OWL and not about your data platform.

In conclusion

Ontologies in data platforms are gaining popularity as a novel idea that promises to improve the usefulness and efficiency of data work with AI: both conversational BI and agentic development. Their implementation as a semantic layer deviates from their true meaning in knowledge representation, and it differs between platforms, which makes ontologies difficult to understand and to compare.

If you want to get better outputs with AI - from queries to artifacts like dashboards - the highest impact activities remain investing in data quality, good semantic models, and complete/accurate context, like documentation. These activities can improve all your BI outputs and activities, with or without AI.

Take your semantic models further with Tabular Editor.

Give Tabular Editor a spin
Plagiarism-freeScanned on November 23, 2026 Human-writtenScanned on November 23, 2026