> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wayak.io/llms.txt
> Use this file to discover all available pages before exploring further.

# What is an ontology?

> How Wayak's semantic layer teaches AI to understand your data like your team does

An ontology is the map of your business logic. It's how you teach Wayak's agent to understand your data the same way a person at your company would — what things are called, how they relate, and what they mean.

In Wayak, the ontology is the semantic layer. It sits between your raw data and the AI agent, translating business language into precise data operations.

<Frame caption="Define semantic objects — entities, dimensions, and relationships — in the ontology">
  <img src="https://mintcdn.com/wayak/SyWPcqQONHnC0uoc/app-screenshots/Semantic%20Objects.png?fit=max&auto=format&n=SyWPcqQONHnC0uoc&q=85&s=f97de8b0fc3496ddd1dbe5274143d771" alt="Wayak semantic objects interface" width="4236" height="3548" data-path="app-screenshots/Semantic Objects.png" />
</Frame>

***

## Why you need one

<Columns cols={2}>
  <div>
    ### Without an ontology

    <Warning>The agent guesses. A table called `txn_ledger` with a column `amt_net_usd` means nothing without context. Results are inconsistent and unreliable.</Warning>
  </div>

  <div>
    ### With an ontology

    <Check>The agent answers with the same precision as your best analyst. It knows "revenue" means `SUM(amt_net_usd) WHERE txn_type = 'sale'` and applies that consistently.</Check>
  </div>
</Columns>

***

## The building blocks

The ontology is made up of six components that work together in a hierarchy:

<CardGroup cols={3}>
  <Card title="Objects" icon="cube" href="/concepts/ontology/objects">
    The core entities in your business — customers, orders, products, employees.
  </Card>

  <Card title="Dimensions" icon="layer-group" href="/concepts/ontology/dimensions">
    The attributes that describe and categorize your objects — region, status, tier.
  </Card>

  <Card title="Entities" icon="id-card" href="/concepts/ontology/entities">
    Specific instances and how they're identified and resolved across data sources.
  </Card>

  <Card title="Metrics" icon="chart-line" href="/concepts/ontology/metrics">
    The calculations your team cares about — revenue, churn, conversion rate.
  </Card>

  <Card title="Views" icon="chart-bar" href="/concepts/ontology/views">
    Standalone charts and tables that visualize specific slices of your data.
  </Card>

  <Card title="Dashboards" icon="grid-2" href="/concepts/ontology/dashboards">
    Collections of views assembled into a single, shareable page.
  </Card>
</CardGroup>

***

## How it all fits together

```mermaid placement="center" theme={null}
flowchart TD
    objects[Objects\nCustomers · Orders · Products] --> dimensions[Dimensions\nRegion · Status · Tier]
    objects --> entities[Entities\nIdentity Resolution]
    objects --> metrics[Metrics\nRevenue · Churn · Conversion]
    metrics --> views[Views\nCharts · Tables]
    views --> dashboards[Dashboards\nShareable Pages]
```

The agent uses this hierarchy to navigate from a user's question down to the exact data operation needed to answer it.

<Tip>Start by defining your most important [objects](/concepts/ontology/objects) and [metrics](/concepts/ontology/metrics) — those two alone give the agent enough context to answer most business questions accurately.</Tip>
