Skip to content

Concept

02of 08

Data

7 min read

Semantic layer

What it is, in one sentence

A single place where every term and every metric in the company has a written definition, with a version, that every dashboard, query and assistant uses to calculate.

01The problem

Three departments.
Three revenues.

Every company has a word that each department calculates its own way. The meeting opens by debating the number, not the decision.

Marketingon the campaign dashboard

revenue = invoiced

61.9R$ million

Salesin the targets spreadsheet

revenue = invoiced − returns

59.6R$ million

Financein the month-end close

revenue = invoiced − returns − taxes

48.2R$ million

Fictional example, October 2026. All three numbers are right for whoever calculated them. The problem is that they carry the same name.

02The idea

Meaning gets
an address.

The definition leaves the dashboard, the spreadsheet and people's heads. It moves to a single place, with a name, an owner and a version.

Underneath, tables and columns with technical names. On top, the words the company uses. The semantic layer is what connects the two.

A semantic layer sits between the physical data and the people who consume it. It stores the meaning, not the data. It states that net revenue is invoiced minus returns minus taxes, and which column each part comes from.

Whoever asks for the metric gets the calculation ready-made, not a table to interpret. The dashboard, the SQL query and the AI assistant all start from the same definition.

With generative AI, this stopped being a convenience and became a requirement. An assistant that writes its own query has to know what “revenue” means in this company. Without the definition, it picks one.

03How it works

One definition.
The same number.

Each term points to the column it lives in. The metric combines the terms. Every consumer reads the same published version and reaches the same answer.

From the column to the answer, through the definitionFictional example.
  1. Three columns, in three systemsThe value of the orders, the value of the returns and the taxes on the invoices.erp.vendas.pedidos · lake.logistica.devolucoes · fiscal.nfe.notas
  2. Three business termsInvoiced, returns and taxes. Each one has a mapping to its column.
  3. One metricThe calculation written once, over the terms.receita_liquida = invoiced − returns − taxes = R$ 48.2M
  4. One current versionv14 is published. v12 and v13 were superseded and remain readable.
  5. Four consumers, one numberThe dashboard, the AI assistant, the agent and the SQL query all get R$ 48.2M and record that they cited v14.

The term points to the column.Each business word has a mapping: the address of the column that supports it.

The metric is a written calculation.It does not live inside a dashboard. It lives in a place everyone reads.

The version is recorded.Whoever consumes cites the version they used. Months later, you still know which definition calculated the number.

04The anatomy of a definition

Five pieces.
No ambiguity.

Five pieces are enough to remove the doubt about a number. With one missing, the definition goes back to depending on whoever reads it.

Definitionreceita_liquidaversion 14

1termnet revenue

synonymsrevenue, net billing

2metricinvoiced − returns − taxes

3dimensionsmonth, region, channel

4invoicederp.vendas.pedidos.valor

returnslake.logistica.devolucoes.valor

taxesfiscal.nfe.notas.impostos

5version14 · published on November 3, 2026

replaces13, which remains readable

1Term
The word as the company uses it, with the synonyms people say.
2Metric
The calculation, written once. It is an expression over terms, not over columns.
3Dimensions
The ways the number can be grouped and filtered without changing meaning.
4Mapping
The address of the column that supports each term. If the table changes, the mapping is fixed. The calculation stays the same.
5Version
Published, it no longer changes. To fix something, another one is published. The previous one remains readable.

05The limits

Meaning.
Not access.

A semantic layer is often confused with four neighboring things. Separating the roles keeps it from becoming a shortcut to the data.

It is not

A permission

Saying what “average salary” means authorizes no one to see salaries. Who can see each piece of data is the data owner's decision, in another layer.

defines ≠ authorizes

The dashboard

The BI tool draws the chart. The definition lives outside it, so the AI assistant and the agent read the same calculation.

1 definition · N tools

A static glossary

A document with definitions calculates nothing. The semantic layer is machine-readable: the query comes out of it.

read by people and by machines

The data

It neither copies nor stores rows. It stores the path to them.

0 rows copied

06Common mistakes and evaluation

Eight questions.
Before you choose.

The list applies to any semantic layer solution. The mistakes alongside are the ones that show up most among those who have already tried.

How to evaluate a solution0 of 8 checked

Five common mistakes

  1. Defining inside the tool

    A metric written in one dashboard is valid only in that dashboard. The next tool starts from scratch.

  2. Editing the definition live

    Changing the calculation without creating a version also changes past reports, with no warning.

  3. Author and approver being the same person

    A definition that changes the company's number asks for a second pair of eyes.

  4. Using the definition as a permission

    If knowing the metric grants access to the data, governance now has two doors.

  5. Starting with everything

    Mapping the whole company before publishing the first metric usually never ends. Start with the ones that cause the most meetings.

07From concept to product

Ontology

How NNumbers
applies it.

Ontology defines what each term, metric and mapping means in your organization. A published version does not change. It defines meaning and never grants access.

The concept asks forOntology has

A versioned definition

Draft and versions

Every ontology has a stable name, an editable draft and published versions. A version goes through six states, and none of them erases what was already published.

v13 superseded · v14 published

The error pointed out where it is

Validation

Validating checks the whole draft and points to the exact place of each finding. With an error, the review does not open. With a warning, it opens.

mapping_target_missing · /mappings/impostos

A second pair of eyes

Review

Opening the review freezes a candidate version. Each comment is tied to the excerpt it discusses. The author does not approve their own change.

approved by carla.menezes

The version recorded in use

Citation

Whoever consumes reads the published version and records a citation. Months later, you still know which definition calculated a report.

October close · cited v14

Meaning without access

TrustLayer

Ontology asks on behalf of whoever is querying, and the Infinite Data TrustLayer decides. What the person may not see is removed from the package they receive.

receita_liquida · indeterminate

Ontology is a young product and starts small: one ontology, the metrics that cause the most meetings and a review cycle with your team. Between the idea and use there are five steps: draft, validation, review, publication and consumption.

Get to know Ontology

Bring a metric.
Leave with a definition.

You pick the number that causes the most discussion. Together with your team we write the term, the calculation, the mapping and the first version.

Talk to NNumbers