Home

The building blocks of context: metadata, semantic layer, ontology, and knowledge graph

Photo of Lauren O’Connor
Lauren O’Connor

July 20, 2026

Share:


Quick Answer

  • A context layer assembles business meaning at the moment a question is asked

  • It combines metadata, business definitions, and relationships so AI understands what your data means at your organization, not just that it exists

  • Without one, AI guesses at your business logic. The guess is often wrong.

  • Strategy Mosaic is the governed semantic layer that makes AI answers consistent, accurate, and trustworthy


Metadata, semantic layer, ontology, knowledge graph, and context layer. These terms are moving from data engineering conversations into executive meetings, and they almost never get defined with any precision, or in a way that everyone can understand.

To explain what goes into building context, let's imagine we work at a large video streaming platform. Our goal is to decide whether to renew our latest hit series, Night Market. We'll build each layer and follow it through to the moment an executive gets a governed answer in seconds.

2026 July Strategy Night Market Blog.png

The building blocks of context

Metadata: data about data

When the Night Market show dropped on the platform, it came with a show ID, episode count, genre, release date, and production cost. None of that tells you whether to renew it. All of it describes the show. That's metadata.

In enterprise data, metadata works the same way. A column called completion_pct has metadata that describes it: what it measures (the percentage of viewers who watched to the end of an episode), who owns it (the data engineering team), how often it refreshes, and what quality checks it has passed.

Metadata makes data findable, governable, and trustworthy. But knowing a metric exists and knowing what it means to your business are different things.

metadata what the record contains.png

The semantic layer: what data means

Metadata tells you what data exists and how it is managed. For example, Night Market has an 87% viewer completion rate. That value is data. Its field name, definition, owner, refresh schedule, lineage, and quality status are metadata.

A semantic layer goes further by defining what that data means to the business and how it should be used to answer questions.

At our streaming platform, "renewal candidate" isn't just a phrase, it's a governed definition built on explicit rules:

  • Completion rate: Above 80%

  • New subscriber acquisition: Above 10,000 per season

  • Production ROI: Net positive

Those rules live in the semantic layer so everyone, analysts, dashboards, AI agents, use the same definition when the question gets asked.

A data catalog documents the completion rate field. A semantic layer makes sure everyone calculates what "renewal candidate" means the same way.

the semantic layer from questin to governed answer.png

The ontology: how everything connects

An ontology is a model of relationships. Not what data means, but how things relate to each other.

Night Market isn't just a row in a table. It's connected to a studio contract, a production budget, subscribers, viewing events, release windows, and the broader content slate. That web of connections is an ontology:

For example:

  • Show

    • ...has Episodes

      • ...that have Viewership Events

        • ...that have Subscribers (with a Retention Status)

Without an ontology, AI may discover (or invent) relationships, but it has no governed model of how your business is organized. With one, it can navigate your data the way your best analyst does.

the ontology.png

The knowledge graph: the blueprint, populated

An ontology is a blueprint. A knowledge graph is that blueprint filled with real, connected data. So, for Night Market:

Night Market (Show #S-2291)
  • The Node: Thriller, Released March 2026, 8 Episodes, 4.2/5 rating, 2 Emmy nominations.

  • Connected Viewership: 2.4M views, 87% completion rate.

  • Connected Financials: $4M production cost, 12K new subscribers acquired.

  • Contextual Note: Highest-performing debut in the drama category since 2023

Three components make it work: entities (the specific nodes: the show, each episode, each subscriber event), connections (which show drove which subscriber acquisitions, which production budget maps to which slate window), and details (the completion rate, the cost, the rating).

knowledge graph.png

Now we can define context

Context is the situational awareness that sits on top of everything else.

Here's what it looks like in practice. A VP of Content asks Monday morning, the week after Night Market's season finale: "Do we greenlight Season 2?"

To answer that correctly, the system assembles:

  • The content calendar: greenlight window closes in 30 days, Q4 2027 slate has an open slot

  • The semantic definition: renewal threshold = retention impact above 8K new subs, completion rate above 75%, production ROI positive

  • Her role and permissions: VP Content, greenlight authority up to $6M budget

  • Live signals: 12K new subs, 87% completion, $4M cost, estimated $6.2M revenue impact

The answer: "Night Market meets all renewal thresholds. Estimated Season 2 ROI positive at $6M budget. Q4 2027 slate has a gap. Greenlight recommended."

The context layer doesn't store this. It assembles the right answer for the right person at the right moment.

Metadata tells you the completion rate exists. The semantic layer tells you what "retention impact" means at your company. The ontology maps Night Market to its subscribers, its budget, its slate window. The knowledge graph holds the live numbers. The context layer pulls it together on demand.

As my colleague Henry described, a context layer is the governed system that combines business definitions, relationships, and real-time signals so that AI and analytics tools can reason about your data the way your organization does, not the way a model guesses.

Do enterprises need all five?

Not as five separate products. Several layers describe and connect your world. The semantic layer settles what the business means.

Metadata can tell you the completion-rate field exists. An ontology can map Night Market to its subscribers, budget, and content slate. A knowledge graph can connect the live facts, while the context layer brings the right information together for the right person at the right moment.

But none of those capabilities can reliably produce a trusted answer if "renewal candidate" means 80% completion in one meeting and 75% in the next. The semantic layer establishes the approved definition and applies it consistently. The final answer is only as trustworthy as the business logic behind it.

Where Strategy Mosaic fits

Metadata tells AI where the data lives. An ontology tells it how the business is connected. A knowledge graph provides the facts. But someone still has to apply your company's definitions before an answer is generated.

That's the job of the semantic layer and where Strategy Mosaic fits.

Mosaic is the layer where your business definitions live, where metrics are calculated consistently, and where AI queries get answered deterministically rather than inferred. Most AI tools try to guide the LLM to a better answer. Mosaic takes a different approach: the LLM handles natural language, Mosaic handles the actual data request, applying your business definitions before a single row is read. In head-to-head testing, direct LLM-to-database connections produced an 11.8% wrong answer rate. Mosaic: 0%.

When your VP of Content asks whether to spend $6 million renewing Night Market, an 11.8% chance of the AI hallucinating the retention math isn't an option. The model shouldn't be guessing what your business means. With Strategy Mosaic, it doesn't have to.

Frequently Asked Questions

A context layer is the system that assembles business meaning at the moment a question is asked. It combines metadata, semantic definitions, relational structure, and live data so that AI can answer using your organization's actual business logic instead of guessing. Strategy Mosaic works as this layer, applying governed definitions before a query ever touches raw data.

A data catalog documents that a field exists and describes its metadata — owner, refresh schedule, quality status. A semantic layer goes further by defining what that field means to the business and enforcing that definition consistently across every tool that uses it. Strategy Mosaic applies this distinction directly: cataloging tells you a metric exists, Mosaic makes sure everyone calculates it the same way.

Not as five standalone products. Metadata, ontology, and knowledge graphs each describe or connect your data, but only a semantic layer settles what the business terms actually mean and applies that meaning consistently. Strategy Mosaic is built as the layer where those definitions live, so an answer means the same thing in every meeting regardless of which other systems supplied the underlying facts.

Without a governed semantic layer, an AI tool has to infer business logic on its own, and that inference changes depending on the prompt, the model, or the day. In head-to-head testing, direct LLM-to-database connections produced an 11.8% wrong answer rate, while Strategy Mosaic, which applies business definitions before a query runs rather than letting the model guess, produced 0%.


Mosaic
Semantic Layer
AI Trends
Analytics
Business Intelligence
Thought Leadership

Share:

Photo of Lauren O’Connor
Lauren O’Connor

Lauren leads Education at MicroStrategy, helping organizations successfully implement, adopt, and maximize their BI tools.


Related posts

Video: The Next Generation of Analytics Won't Be Built Around Dashboards
The Next Generation of Analytics Won't Be Built Around Dashboards

Discover why governed semantic layers—not dashboards alone—are powering trusted analytics, AI, and enterprise decision-making.

Photo of Tanmay Ratanpal

Tanmay Ratanpal

July 17, 2026

Video: OSI Is Now Apache Ossie
OSI Is Now Apache Ossie

Learn why OSI became Apache Ossie and what its move to the Apache Software Foundation means for enterprise AI. Discover how open semantic layer standards, business ontologies, MCP, and Strategy Mosaic enable trusted, portable, and governed AI across any data platform.

Photo of Lauren O’Connor

Lauren O’Connor

July 16, 2026

Video: The Hard Way to Build BI: What I'd Do Differently With Strategy Mosaic
The Hard Way to Build BI: What I'd Do Differently With Strategy Mosaic

Discover why BI projects need a semantic layer before dashboards, and how Strategy Mosaic helps teams define governed metrics, business logic, and analytics faster.

Photo of Sofia Martino

Sofia Martino

July 15, 2026