1. Home
  2. Explore
  3. Computer Science
  4. Ontologies vs Semantic Layers

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Ontologies vs Semantic Layers

  • 15Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Core Concepts

What does an ontology define in the context of data governance?

15 questions

  1. 1

    What does an ontology define in the context of data governance?

    1. A

      The authentication and access control policies for data

    2. B

      The structure of meaning: entities, properties, and relationships

    3. C

      The physical storage layout of data in a warehouse

    4. D

      The logic of measurement: metrics, dimensions, and calculations

    Correct answer
    B

    The structure of meaning: entities, properties, and relationships

    Explanation

    An ontology defines what things exist in a domain and how they relate—entities, properties, and relationships. It is about the structure of meaning, not measurement logic.

  2. 2

    What is the primary job of a semantic layer?

    1. A

      To model entities and relationships between business concepts

    2. B

      To catalog all data assets with metadata tags

    3. C

      To define metrics and dimensions with consistent calculation logic

    4. D

      To enforce data quality rules on raw data sources

    Correct answer
    C

    To define metrics and dimensions with consistent calculation logic

    Explanation

    A semantic layer defines how metrics are calculated and dimensions are grouped, ensuring consistent measurement across tools and queries.

  3. 3

    Which question does a semantic layer answer?

    1. A

      What is X and how does it relate to Y?

    2. B

      Who owns the data for X?

    3. C

      Where is the raw data for X stored?

    4. D

      How do we measure X?

    Correct answer
    D

    How do we measure X?

    Explanation

    A semantic layer provides measurement logic (calculations, dimensions, aggregation). The ontology answers 'what is X' and its relationships.

  4. 4

    What characterizes a modern semantic layer according to the guide?

    1. A

      Imperative, real-time, and embedded in databases

    2. B

      Visual, drag-and-drop, and limited to BI tools

    3. C

      Declarative, version-controlled, and API-accessible

    4. D

      Proprietary, closed-source, and single-tool integrated

    Correct answer
    C

    Declarative, version-controlled, and API-accessible

    Explanation

    A modern semantic layer is declarative (what to compute, not how), version-controlled (code reviews), and API-accessible (any consumer can query).

  5. 5

    In the spectrum of ontology, what is the lightest and least structured form?

    1. A

      Flat glossary

    2. B

      Hierarchical glossary

    3. C

      Formal ontology

    4. D

      Concept model

    Correct answer
    A

    Flat glossary

    Explanation

    A flat glossary is just a list of terms with definitions, capturing no structure or relationships. It is the least formal end of the ontology spectrum.

  6. 6

    Which of the following is an example of a formal ontology used in healthcare?

    1. A

      FIBO

    2. B

      SNOMED CT and FHIR

    3. C

      DBT's metricflow

    4. D

      LookML

    Correct answer
    B

    SNOMED CT and FHIR

    Explanation

    SNOMED CT and FHIR are formal ontologies for healthcare that support reasoning about diagnoses, procedures, and encounters.

  7. 7

    What is the practical recommendation for most enterprise data teams regarding ontology?

    1. A

      Build a structured glossary with hierarchy and relationships, not a full formal ontology

    2. B

      Start with a formal ontology in OWL or RDF

    3. C

      Create a flat glossary and then immediately implement a formal ontology

    4. D

      Skip ontology entirely and focus only on semantic layers

    Correct answer
    A

    Build a structured glossary with hierarchy and relationships, not a full formal ontology

    Explanation

    Most teams don't need a formal ontology; they need something in the middle—a structured glossary with hierarchical terms and explicit relationships, which is maintainable.

  8. 8

    How does change propagation differ between ontology and semantic layer changes?

    1. A

      Ontology changes are broad and high-stakes; semantic layer changes are specific and traceable

    2. B

      Ontology changes are easy and quick; semantic layer changes are complex and slow

    3. C

      Only semantic layer changes require governance; ontology changes are informal

    4. D

      Both have identical impact and governance requirements

    Correct answer
    A

    Ontology changes are broad and high-stakes; semantic layer changes are specific and traceable

    Explanation

    An ontology change (e.g., redefining 'customer') affects many metrics and dashboards broadly. A semantic layer metric change (e.g., updating a revenue formula) is traceable and bounded.

  9. 9

    In the SaaS company example with three revenue concepts, what does the ontology layer provide?

    1. A

      The exact calculation formulas for each revenue type

    2. B

      Definitions of recognized, booked, and built revenue as distinct subtypes with properties

    3. C

      The source tables where revenue data is stored

    4. D

      The access permissions for viewing revenue reports

    Correct answer
    B

    Definitions of recognized, booked, and built revenue as distinct subtypes with properties

    Explanation

    The ontology defines these three as subtypes of revenue, each with different properties (e.g., accounting period, contract term). The semantic layer provides the calculation logic.

  10. 10

    Which scenario is described as an ontology-first problem?

    1. A

      An e-commerce company where marketing and finance calculate conversion rate differently

    2. B

      A financial services firm needing to report to multiple regulators

    3. C

      A retail company deploying an LLM to answer customer queries

    4. D

      A healthcare network with different definitions of 'patient encounter' across acquired hospitals

    Correct answer
    D

    A healthcare network with different definitions of 'patient encounter' across acquired hospitals

    Explanation

    The healthcare network needs to first agree on what an 'encounter' is as a concept, which is an ontology problem, before measuring it.

  11. 11

    What is the e-commerce conversion rate scenario an example of?

    1. A

      A semantic-layer-first problem

    2. B

      A problem requiring both ontology and semantic layer from the start

    3. C

      A problem that can be solved with a data dictionary alone

    4. D

      An ontology-first problem

    Correct answer
    A

    A semantic-layer-first problem

    Explanation

    In this case, entities are clear; the conflict is in measurement logic (how conversion rate is calculated). That is a semantic layer problem.

  12. 12

    For AI systems that answer data questions, why is ontological knowledge important?

    1. A

      It directly improves the speed of query execution

    2. B

      It ensures the AI can generate SQL without errors

    3. C

      It replaces the need for a semantic layer entirely

    4. D

      It provides the business context needed to understand entities and relationships before calculating metrics

    Correct answer
    D

    It provides the business context needed to understand entities and relationships before calculating metrics

    Explanation

    LLMs need to understand what terms like 'customer' and 'retention' mean in the business context (ontological knowledge) to avoid hallucinated logic. The semantic layer then provides the calculation.

  13. 13

    What is the role of a context layer as described in the guide?

    1. A

      To integrate ontology definitions, semantic layer formulas, and data assets into one platform with governance

    2. B

      To provide a chat interface for business users to ask questions

    3. C

      To replace both ontology and semantic layer with a single tool

    4. D

      To act as a data warehouse that stores all raw data

    Correct answer
    A

    To integrate ontology definitions, semantic layer formulas, and data assets into one platform with governance

    Explanation

    A context layer is a platform that makes ontological definitions and semantic layer metrics discoverable, linked to data assets, and governed consistently.

  14. 14

    Which of the following is identified as a common failure mode?

    1. A

      Starting with a lightweight glossary and then iterating

    2. B

      Starting with a pilot project focusing on a single domain

    3. C

      Connecting ontology and semantic layer through a context layer

    4. D

      Deploying a semantic layer without first clarifying ontology

    Correct answer
    D

    Deploying a semantic layer without first clarifying ontology

    Explanation

    A failure mode is deploying a semantic layer without ontological clarity, leading to metrics that use different entity definitions and produce conflicting numbers.

  15. 15

    What is the recommended sequence to get started?

    1. A

      Start by implementing a data catalog without any governance

    2. B

      Start by building a semantic layer with 200 metrics, then define entities later

    3. C

      Start with a glossary capturing core entities and relationships inside a context layer, then connect semantic layer tools

    4. D

      Start with a full formal ontology before any semantic layer work

    Correct answer
    C

    Start with a glossary capturing core entities and relationships inside a context layer, then connect semantic layer tools

    Explanation

    The practical sequence is to start with a structured glossary (light ontology) in a context layer, then connect semantic layer definitions, building governance proportionally.

Question 1 of 15
Question 1 of 15

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent