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.
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?"
MeasurementOntology
Formal specification of shared conceptualization using OWL, SKOS, RDF. Defines classes, properties, relationships. Supports logical inference. Optimized for meaning and machine reasoning.
MeaningContext Graph
Captures decision reasoning and operational context. Answers "Why was X allowed to happen?" Includes procedure specs, execution histories, agent roles, and audit trails.
ContextKnowledge Graph
Structured knowledge representation with explicit relationships. Purpose-built for context provision to AI systems. Represents concepts, relationships, and constraints that give data meaning.
KnowledgeSemantic Layer vs Ontology
The architectural difference reflects different theories about what data systems are for.
| Dimension | Semantic Layer | Ontology |
|---|---|---|
| Core Objective | Consistent measurement | Knowledge representation |
| Optimized For | Human consumption (BI tools) | Machine reasoning (AI systems) |
| Primary Output | Metric definitions, calculations | Classes, properties, inference rules |
| Format | YAML configurations | RDF, OWL, SKOS |
| Relationships | Join paths (SQL) | Semantic relationships with meaning |
| Inference | None | Logical inference supported |
| Questions Answered | "What is X?" | "Why?", "What if?", "What relates to what?" |
| Required Skills | Data engineering, SQL | Knowledge engineering, domain expertise |
| Examples | LookML, dbt MetricFlow | Gene Ontology, SNOMED CT, PKO |
Companies, Ontologies, and Standards
Palantir
Scaling Foundry across intelligence agencies with ontologies over semantic layers. Context-first, not metrics-first architecture since 2012.
Ontology-Firstdbt Labs
Open-sourced MetricFlow (Apache 2.0) in October 2025. Joined Open Semantic Interchange with Snowflake and Salesforce.
Semantic LayerGene Ontology
Foundational bioinformatics ontology for 20+ years. Models genes, biological processes, molecular functions, and cellular components.
OntologySNOMED CT
Comprehensive clinical terminology with 350,000+ concepts and millions of relationships. Enables systems to understand medical equivalence.
OntologyProcedural Knowledge Ontology
Developed by Cefriel with Siemens and BOSCH. Distinguishes procedures (abstract specs) from executions (concrete instances).
Context GraphAnthropic
Engineering team wrote about effective context engineering for AI agents — the discipline of providing the right information to LLMs.
AI ContextFrequently 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.
Key Terms and Definitions
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.
Knowledge Graph Explorer
Interactive visualization of entities, concepts, and relationships from the article.
KG Explorer 0 nodes / 0 links
Explore Knowledge Graph using SPARQL
Choose a named graph and query recipe, edit the SPARQL if needed, then open the encoded URIBurner query.
text/x-html+tr. DESCRIBE and CONSTRUCT queries use text/x-html-nice-turtle, matching the SPARQL format guidance in the skill contract.