Ontologies, Context Graphs, and Semantic Layers

What AI Actually Needs in 2026 — The fundamental distinction between measurement and meaning, and why knowledge architecture is the decisive competitive advantage.

By Jessica Talisman, MLS · Metadata Weekly · January 22, 2026

Ontologies · Context Graphs · Semantic Layers · AI Reasoning · Knowledge Architecture
About

About This Knowledge Graph

This article examines a fundamental architectural divide in data systems: semantic layers that optimize for measurement (consistent metric definitions for human consumption via BI tools) versus ontologies that optimize for meaning (formal knowledge representation supporting machine reasoning and inference). While the BI industry perfected LookML and YAML-based metric governance, fields like life sciences and healthcare invested in ontologies like Gene Ontology and SNOMED CT — systems that enable machines to reason about domain knowledge, not just calculate metrics.

The emergence of context graphs — knowledge graphs that capture decision reasoning and operational context — represents the next evolution. Organizations like Palantir bet on ontologies over semantic layers in 2012, building for operational decision making where understanding entity relationships and causal chains is mission-critical. As Anthropic's engineering team notes, AI agents need context engineering — the right information and tools in the right format — which knowledge graphs and ontologies are purpose-built to provide.

6
Core Concepts
Semantic Layer, Ontology, Context Graph, Knowledge Graph, Knowledge Representation, Context Engineering
3
Key Arguments
Measurement vs Meaning, The YAML Problem, Context vs Knowledge
8
FAQ Questions
Covering semantic layers, ontologies, context graphs, AI reasoning, and knowledge architecture
12
Glossary Terms
OWL, RDF, SKOS, LookML, PKO, and more
Core Concepts

Measurement vs Meaning

The fundamental distinction that AI is forcing the industry to confront.

Semantic Layer

Defines metrics once, governs centrally, enables self-serve without SQL. Optimized for measurement and human consumption through BI tools. Answers "What is X?"

Measurement

Ontology

Formal specification of shared conceptualization using OWL, SKOS, RDF. Defines classes, properties, relationships. Supports logical inference. Optimized for meaning and machine reasoning.

Meaning

Context Graph

Captures decision reasoning and operational context. Answers "Why was X allowed to happen?" Includes procedure specs, execution histories, agent roles, and audit trails.

Context

Knowledge Graph

Structured knowledge representation with explicit relationships. Purpose-built for context provision to AI systems. Represents concepts, relationships, and constraints that give data meaning.

Knowledge
Architecture

Semantic Layer vs Ontology

The architectural difference reflects different theories about what data systems are for.

DimensionSemantic LayerOntology
Core ObjectiveConsistent measurementKnowledge representation
Optimized ForHuman consumption (BI tools)Machine reasoning (AI systems)
Primary OutputMetric definitions, calculationsClasses, properties, inference rules
FormatYAML configurationsRDF, OWL, SKOS
RelationshipsJoin paths (SQL)Semantic relationships with meaning
InferenceNoneLogical inference supported
Questions Answered"What is X?""Why?", "What if?", "What relates to what?"
Required SkillsData engineering, SQLKnowledge engineering, domain expertise
ExamplesLookML, dbt MetricFlowGene Ontology, SNOMED CT, PKO
Ecosystem

Companies, Ontologies, and Standards

Palantir

Scaling Foundry across intelligence agencies with ontologies over semantic layers. Context-first, not metrics-first architecture since 2012.

Ontology-First

dbt Labs

Open-sourced MetricFlow (Apache 2.0) in October 2025. Joined Open Semantic Interchange with Snowflake and Salesforce.

Semantic Layer

Gene Ontology

Foundational bioinformatics ontology for 20+ years. Models genes, biological processes, molecular functions, and cellular components.

Ontology

SNOMED CT

Comprehensive clinical terminology with 350,000+ concepts and millions of relationships. Enables systems to understand medical equivalence.

Ontology

Procedural Knowledge Ontology

Developed by Cefriel with Siemens and BOSCH. Distinguishes procedures (abstract specs) from executions (concrete instances).

Context Graph

Anthropic

Engineering team wrote about effective context engineering for AI agents — the discipline of providing the right information to LLMs.

AI Context
FAQ

Frequently Asked Questions

A semantic layer tells you what your revenue is by normalizing metric definitions. An ontology represents that a customer is a class with specific attributes, placed an order related to products through defined relationships in a market with specific characteristics. Semantic layers are built for analysis (human consumption via BI tools); ontologies are built for reasoning (systems and AI understanding domains to disambiguate, discover context, make inferences).

A context graph is a knowledge graph that captures decision reasoning and operational context, answering "Why was X allowed to happen?" rather than just "What happened?" It includes procedure specifications, execution histories, agent roles and authority, and audit trails.

LLMs need context and meaning, not dashboards. They need to understand what things are, how they relate, and what actions are possible. Semantic layers provide metric definitions optimized for human consumption. Ontologies and knowledge graphs provide concepts, relationships, and constraints that give data meaning, supporting inference and reasoning.

YAML configurations capture SQL table and column representations but are absent of relationships, natural language, definitions, and rich context. They are models of calculations (database entities), not models of the business.

Context engineering is the discipline of designing a system that provides the right information and tools, in the right format, to give an LLM everything it needs to accomplish a task. It includes prompts, memories, few-shot examples, and tool descriptions.

PKO is an ontology developed by Cefriel with Siemens and BOSCH that distinguishes between procedures (abstract specifications) and executions (concrete instances). It organizes knowledge across six areas: procedure specs, action steps, change tracking, execution histories, agent roles, and supporting documentation.

Adding classes, properties, and inference rules to a system designed for SQL generation may require such fundamental architectural changes that you'd essentially be building a knowledge graph from scratch. The gap between metric definitions and formal ontologies may be too wide to bridge.

While the BI industry was perfecting LookML in 2012, Palantir was scaling Foundry with ontologies over semantic layers, building for operational decision making where understanding entity relationships and causal chains was mission-critical. Their architecture was context-first, not metrics-first.

Glossary

Key Terms and Definitions

Semantic Layer
A data abstraction layer that defines metrics once and governs them centrally, enabling business users to self-serve without writing SQL.
Ontology
A formal, explicit specification of a shared conceptualization. Structured representations of domain knowledge using OWL, SKOS, and RDF that support logical inference. See also: DBpedia · Wikidata
Context Graph
A knowledge graph capturing decision reasoning and operational context, answering "Why was X allowed to happen?"
Knowledge Graph
A structured knowledge representation using explicit relationships between entities, concepts, and facts. See also: DBpedia · Wikidata
Knowledge Representation
The discipline of formally representing domain knowledge in machine-readable form to support reasoning, inference, and disambiguation.
Context Engineering
The discipline of designing systems that provide the right information and tools to give an LLM everything it needs to accomplish a task.
OWL (Web Ontology Language)
W3C standard for defining and instantiating Web ontologies with logical inference capabilities. See also: DBpedia · Wikidata
RDF (Resource Description Framework)
W3C standard framework for describing resources using subject-predicate-object triples. See also: DBpedia · Wikidata
SKOS
W3C standard for representing knowledge organization systems such as thesauri and taxonomies.
LookML
A language described as "the sequel to SQL" for creating semantic abstraction layers on top of raw databases, using YAML configurations.
Procedural Knowledge Ontology (PKO)
Ontology distinguishing between procedures (abstract specifications) and executions (concrete instances), developed by Cefriel with Siemens and BOSCH.
Metric Governance
Centralized definition and management of business metrics to ensure consistency across reporting tools and teams.
How-To

Building AI-Ready Knowledge Architecture

Steps for organizations to transition from metric-first to meaning-first data architecture.

Assess Your Current Architecture

Evaluate whether your semantic layer is optimized for human consumption (dashboards) or AI consumption (reasoning). Determine if metric governance is sufficient or if richer knowledge modeling is needed.

Identify Reasoning Requirements

Determine which use cases require inference and reasoning beyond calculation. Complex reasoning, domain-specific AI, and contextual understanding need ontologies.

Invest in Knowledge Engineering Skills

Ontology construction requires domain expertise, knowledge management, and engineering skills — different from data team capabilities. Treat knowledge representation as a core competency.

Capture Tacit Knowledge Systematically

Observe work practices, interview experts, extract undocumented reasoning, and encode it in formal representations. Without this, decision traces remain trapped in Slack threads.

Model Procedures and Executions

Use frameworks like PKO to distinguish between abstract procedure specifications and concrete execution instances. Organize knowledge across procedure specs, action steps, and execution histories.

Build Context Graphs for Decision Reasoning

Create living records of decision reasoning that answer "Why was X allowed to happen?" Include precedent records, authority chains, and condition justifications that AI agents need.

Explore

Knowledge Graph Explorer

Interactive visualization of entities, concepts, and relationships from the article.

KG Explorer 0 nodes / 0 links

Class
Property
Instance

Explore Knowledge Graph using SPARQL

Choose a named graph and query recipe, edit the SPARQL if needed, then open the encoded URIBurner query.

Run live query
SPARQL Editable query
SELECT queries use text/x-html+tr. DESCRIBE and CONSTRUCT queries use text/x-html-nice-turtle, matching the SPARQL format guidance in the skill contract.