Common Core Ontologies
Home/Blog/Ontology-Based Data Access: A Semantic Layer for Data Lakes and Warehouses
ENGINEERING

Ontology-Based Data Access: A Semantic Layer for Data Lakes and Warehouses

Ontology-based data access (OBDA) puts a shared conceptual model, not a new copy of the data, between applications and your data lake or warehouse tables. Teams query through the ontology using SPARQL, and declarative mappings (R2RML) translate that query into whatever the underlying lake or warehouse actually stores, so schemas can diverge without breaking consumers.

November 23, 2026 · Marcus Webb
Ontology-Based Data Access: A Semantic Layer for Data Lakes and Warehouses

What Ontology-Based Data Access Actually Means

Ontology-based data access describes a specific architectural pattern: an ontology, a formal conceptual model of classes, relations and axioms, sits above the physical data layer, and a set of declarative mappings connects the ontology's terms to the actual columns, tables or files underneath. Applications and analysts query the ontology, not the database. The ontology never holds a copy of the data; every query gets rewritten, through the mappings, into whatever query the lake or warehouse natively understands. This is why the pattern is often called a virtual knowledge graph (VKG): it behaves like a knowledge graph when queried, but nothing is materialized or duplicated to create it.

Most teams reach for a semantic layer only after their lake and warehouse have already diverged, which is also the point at which outside cloud data lakes and data warehouse consulting teams, like YuSMP Group, typically get called in to untangle the mappings.

The three moving parts are worth naming precisely, because they get conflated constantly in vendor marketing: the ontology is the conceptual model (what a "customer" or a "shipment" means, and how they relate); the mappings are the declarative bridge, typically written in R2RML, the W3C standard for mapping relational data to RDF; and the data layer is the lake or warehouse itself, untouched by the whole arrangement.

Why Data Lakes and Warehouses Need a Semantic Layer

The underlying problem OBDA solves isn't a storage problem. It's a meaning problem. Lake tables and warehouse schemas evolve independently, maintained by different teams on different release cycles, and the same business concept ends up named and typed differently across sources: one source calls it customer_id, another cust_key, a third models the same entity as two separate tables joined on an undocumented key.

Schema Drift vs. Semantic Consistency

Schema drift is the normal, expected outcome of independent teams owning independent sources. It isn't a failure of discipline; it's what happens at any organization large enough to have more than one data team. What drifts is the physical representation: column names, types, join keys, partitioning. What an ontology holds fixed is the semantic layer above that: the definition of what a customer, a shipment or an event actually is, independent of how any one source happens to store it today.

Query Rewriting Instead of ETL Duplication

The traditional answer to schema drift is to build a new ETL pipeline that copies and reshapes data into a conformed warehouse schema every time a new source needs to join the picture. OBDA takes a different approach: instead of copying data into a new shape, it rewrites the query itself. A query written against the ontology gets translated, at query time, into the SQL or lake-native query that the physical source actually needs, with no second copy of the data to keep in sync and no ETL job to maintain as sources evolve.

The Three Components of an OBDA System

Every OBDA deployment, regardless of vendor or tooling, is built from the same three layers stacked on top of each other.

The Ontology (Conceptual Model)

The ontology defines the classes, relations and axioms of the domain in OWL 2, the W3C ontology language. A mid-level ontology such as Common Core Ontologies (CCO) is a common starting point for this layer, since it already defines general-purpose classes, such as Agent, Act and Artifact, that most enterprise data domains can specialize rather than reinvent from scratch.

The Mappings (R2RML)

Mappings are declarative statements that say, in effect, "the ontology class Shipment corresponds to rows in this warehouse table where this column is not null, and its has_agent relation corresponds to a join against this other table." R2RML, the W3C recommendation for this, is deliberately a data format rather than code: mappings can be versioned, reviewed and regenerated without touching application logic.

The Data Layer (Lake or Warehouse, Untouched)

The data layer is whatever already exists: warehouse tables, lake files in Parquet or ORC, or a mix of both. OBDA's entire value proposition rests on this layer requiring no changes (no re-platforming, no new ETL, no schema migration) to be brought under the semantic layer.

How Queries Flow Through the Semantic Layer

In practice, a query's path through an OBDA system has three steps. An analyst or application issues a SPARQL query against the ontology's terms, asking for every Shipment with a given Agent, for example, with no idea which physical table that data lives in. The OBDA engine rewrites that query, using the R2RML mappings, into SQL (or a lake-native equivalent) against the mapped tables. The results come back reshaped into the ontology's terms, so the caller sees Shipment and Agent instances, not raw rows from whichever table happened to hold them.

Traditional ETL warehouseOBDA semantic layer
Data duplicationFull copy loaded into warehouseNone: data stays in place
Schema change costPipeline rework per source changeMapping update per source change
Time to query a new sourceWeeks (new ETL job)Days (new mapping file)
GovernanceEnforced in pipeline codeEnforced in ontology + mappings
The point worth restating: an OBDA engine never stores a second copy of your data. The ontology defines what things mean, the mappings define where to find them, and every query gets rewritten against the data layer that already exists, which is exactly why adding a new source is a mapping change, not a migration.

Where This Fits: Data Lake, Data Warehouse, or Both

Lakes are schema-on-read by design, which gives them storage flexibility at the cost of semantic consistency: the same raw file can be interpreted differently by different consumers. An ontology adds back exactly the consistency a lake doesn't enforce on its own, without forcing the lake into a rigid schema-on-write model it was never designed for.

Warehouses are schema-on-write, which gives them consistency at write time, but that consistency gets broken every time the warehouse schema migrates underneath its consumers. An OBDA layer adds a stable query contract that survives those migrations, because consumers query the ontology's terms rather than the warehouse's current column names.

In mixed lakehouse architectures, where some data lives in lake files and some in warehouse tables (often by historical accident rather than deliberate design), the ontology is the one constant across both, with separate mappings routing each class to wherever its data actually lives today.

Common Pitfalls When Introducing OBDA

Three mistakes account for most failed OBDA rollouts. The first is over-modeling the ontology before any mappings exist: teams spend months formalizing an exhaustive conceptual model with no data behind it, and lose momentum before a single query ever runs. The second is mapping drift: when a source schema changes silently and nobody updates the corresponding mapping, queries against the ontology start returning wrong or incomplete results without an obvious error to flag it. The third is treating OBDA as a replacement for data governance rather than a complement to it. An ontology defines what data should mean, but it doesn't enforce data quality, access control or lineage tracking on its own; those remain separate disciplines the semantic layer sits alongside, not instead of.

Frequently Asked Questions

Is OBDA the same thing as a data warehouse?

No. A data warehouse is a physical copy of data, reshaped and loaded for query performance. OBDA is a virtual layer on top of whatever storage already exists, whether a lake, a warehouse, or both, that lets queries run against a shared conceptual model instead of against physical tables directly. OBDA can sit in front of a warehouse; it doesn't replace the need for one.

Do I need to rewrite my existing lake or warehouse to adopt OBDA?

No. OBDA is deliberately non-invasive: the ontology and mappings are added on top of existing tables, and the mappings describe how ontology terms correspond to columns that already exist. Adopting OBDA means writing an ontology and a mapping file, not migrating or restructuring the underlying lake or warehouse.

What's the difference between OBDA and a traditional semantic layer or BI metrics layer?

A BI metrics layer typically defines business metrics (revenue, churn, active users) on top of a single warehouse for dashboarding tools. OBDA defines a full conceptual model (classes, relations and axioms, usually in OWL) and uses declarative mappings to translate queries against that model into SQL or lake-native queries across multiple, possibly heterogeneous sources. OBDA is broader in scope and formally grounded in description logic rather than metric definitions alone.

Which W3C standards does OBDA rely on?

The three core standards are OWL 2 for the ontology itself, R2RML for declarative mappings from the ontology's terms to relational or tabular sources, and SPARQL as the query language applications and analysts use against the ontology. An OBDA engine's job is to rewrite a SPARQL query, through the R2RML mappings, into SQL or an equivalent query against the physical data layer.

Can OBDA work across both a data lake and a data warehouse at the same time?

Yes, and that's one of its main practical uses. Because the ontology and mappings sit above the data layer rather than inside it, a single ontology can have mappings into warehouse tables for some classes and lake files for others, letting one query span both without the application needing to know which physical source actually holds the data.

Does introducing an ontology slow down queries?

Query rewriting adds a translation step, but for well-designed mappings that step is lightweight compared with the underlying query execution itself. The bigger performance factor is almost always the physical data layer: how the lake or warehouse is indexed and partitioned, not the ontology translation sitting on top of it.

Who typically owns the ontology in an OBDA rollout?

In practice, a small group spanning data architecture and domain experts owns the ontology, while individual data engineering teams own the mappings for the sources they're responsible for. Splitting ownership this way keeps the conceptual model stable even as the underlying lake or warehouse schemas change on their own release cycles.

For the standards behind this architecture, see the R2RML, the W3C mapping standard and a 2023 survey of semantic data management in data lakes.