Ontologies vs Semantic Layers
- 28Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What are the three different meanings of 'revenue' in a SaaS company, according to the text?
GAAP recognized revenue, booked ARR, and billed revenue.
Or swipe the card
28 cards
What are the three different meanings of 'revenue' in a SaaS company, according to the text?
GAAP recognized revenue, booked ARR, and billed revenue.
What is the fundamental difference between an ontology and a semantic layer?
An ontology defines what things are and how they relate (structure); a semantic layer defines how things are measured and calculated (numbers).
Why do enterprises need both an ontology and a semantic layer?
Because one gives structure (ontology) and the other gives numbers (semantic layer). Without both, you either have a taxonomy exercise or metric sprawl.
What historical attempts have been made to solve the 'what does this mean' problem in data?
Data dictionaries (1990s), enterprise data models (2000s), master data management (MDM), and BI semantic layers (Cognos, Business Objects cubes).
What two factors have raised the stakes for solving the meaning problem in modern data stacks?
- The modern data stack has fragmented definitions across more tools than ever. 2. AI is now a consumer that needs precise business context to give accurate answers.
Define an ontology in the context of data management.
A formal specification of what kinds of things exist in a domain and how they relate to one another, including entities, properties, and relationships.
What is the spectrum of ontology sophistication from lightest to heaviest?
- Flat glossary (list of terms with definitions). 2. Hierarchical glossary (parent-child relationships). 3. Concept model/lightweight ontology (typed relationships). 4. Formal ontology (machine-readable, supports inference, e.g., OWL, RDF Schema).
Give examples of formal ontologies in healthcare and finance.
Healthcare: SNOMED CT and FHIR. Finance: FIBO (Financial Industry Business Ontology).
What is the practical takeaway for most enterprise data teams regarding ontology?
They don't need a formal ontology; they need something in the middle – a well-organized business glossary with hierarchical terms and explicit relationships.
Define a semantic layer in the context of data management.
An abstraction between raw data and consumers that defines metrics and dimensions consistently, regardless of the tool or query.
What are the three key characteristics of a modern semantic layer according to the text?
Declarative, version-controlled, and API-accessible.
Name the modern semantic layer tools mentioned in the text.
DBT MetricFlow (through MetricFlow), Looker LookML, AtScale, and Cube.
What does a semantic layer NOT cover?
It does not define what types of a concept exist and how they relate (e.g., subtypes of revenue with different accounting treatments). That structural knowledge lives in the ontology layer.
Compare what ontologies and semantic layers define.
Ontology: entities, properties, and relationships (the nouns and verbs of the domain). Semantic layer: metrics, dimensions, and calculation logic (the measurements and aggregation).
What type of question does an ontology answer, versus a semantic layer?
Ontology: 'What is X and how does it relate to Y?' (e.g., What is a customer? How does it relate to an account?). Semantic layer: 'How do we measure X?' (e.g., How do we calculate monthly active customers?).
Who typically owns ontology definitions versus semantic layer definitions?
Ontology: data architects, data governance teams, or domain stewards. Semantic layer: analytics engineers and BI teams.
How does change propagation differ between an ontology change and a semantic layer change?
Ontology change is structural and broad – every metric referencing the changed concept is potentially affected. Semantic layer change is specific and traceable – exactly which dashboards consume the metric can be identified via lineage.
Using the SaaS revenue example, explain how ontology and semantic layer work together for 'recognized revenue', 'booked ARR', and 'billed revenue'.
Ontology defines them as subtypes of revenue with distinct properties (e.g., recognized revenue has accounting period and recognition schedule). Semantic layer provides precise formulas for each (e.g., recognized revenue = sum of recognized amounts per ASC 606 rules).
In the healthcare network scenario (acquired three regional hospital systems), why is the problem ontology-first?
Because each system has a different definition of 'patient encounter'. Before building a dashboard for average encounter duration, the organization must agree on what an encounter is and its subtypes (emergency visit, inpatient admission, telehealth session).
In the e-commerce scenario (marketing vs. finance different conversion rate), why is the problem semantic-layer-first?
Because everyone agrees on the entities (session, visitor, purchase) but disagrees on the measurement logic. A unified metric definition with clearly labeled variants resolves the conflict without ontology work.
In the financial services scenario (multiple regulators), why is a context layer connecting ontology and semantic layer critical?
Because regulators require definitions traceable from regulatory ontologies (e.g., FIBO) through ontology structure to specific metric calculations and the underlying data assets. The full chain must be visible.
How does AI (LLMs) change the stakes for ontologies and semantic layers?
An LLM answering 'What was our customer retention rate in Q3?' needs more than a metric formula – it needs to understand what a customer is, what retention means, and how customers relate to accounts and subscriptions. That is ontological knowledge.
What is a context layer, and what does it do?
A platform where ontological definitions and semantic layer formulas become discoverable, linked to data assets, and governed through consistent policies. It provides a business glossary with relationships, integrates with source tools, maps lineage, and applies governance across both.
What are the main functions of a context layer?
- Business glossary with structural capability (capture term relationships). 2. Integration with source tools (DBT, Looker, Tableau) to automate linking physical assets to glossary terms. 3. Lineage mapping from raw data through transformations to consumption. 4. Governance policies (classification, access, ownership) applied consistently across ontological definitions and semantic metrics.
What is Failure Mode #1: Starting with a full formal ontology?
Organizations spend 18 months modeling every entity and relationship, producing an artifact that is comprehensive but disconnected from any tool anyone actually uses. By the time it's done, the data landscape has shifted.
What is Failure Mode #2: Deploying a semantic layer without ontological clarity?
The team defines 200 metrics but without agreement on underlying entity definitions. Different metrics implicitly use different entity definitions (e.g., 'customer count' in one metric includes free-tier users, in another only paying accounts). The semantic layer faithfully calculates both, but the numbers disagree.
What is Failure Mode #3: Building either ontology or semantic layer in isolation from where practitioners work?
Definitions that live in a wiki die; metrics defined in code but invisible to business users only serve the engineering team. The context layer makes both investments usable by providing a single platform where definitions and metrics surface alongside data assets.
What is the recommended sequence for implementing ontology, semantic layer, and context layer?
- Start with a glossary capturing core entities and their relationships inside a context layer. 2. Connect semantic layer tools so metric definitions surface alongside those entities. 3. Let lineage show how meaning flows from definition to data to dashboard. 4. Govern with proportional processes: broader review for ontological changes, targeted impact analysis for metric changes.

Ask anything
We've read this whole study set, so questions about it get the best answers.