R390 · Knowledge for agents › Retrieval over long documents

Semantic layer or ontology, and the two numbers that carry the argument

Read the original

semantic-layerontologiesknowledge-graphstext-to-sqlbenchmarksclaim-checkingagent-harness

Source: a newsletter edition published 28 Nov 2026 reading the code of a vendor's open-source text-to-SQL project, placing its output on a six-stage ontology maturity pipeline, and proposing three questions to ask of anything sold as an ontology. Every load-bearing figure below was checked at its own source: the analyst prediction's press release, the project's merged pull request and 1.3.0 release notes, and the two knowledge-graph accuracy papers.

The question, and why it is not pedantry

A wrong SQL join is valid SQL. It runs, it returns numbers, and the numbers look plausible. That failure mode is the reason the "semantic layer" has become a product category: a layer that knows what a business term means can refuse a question it cannot answer instead of answering it wrongly.

The argument in this edition is that the category has absorbed three words that mean different things — semantic layer, ontology, knowledge graph — and that one well-known project, named for the second, ships the first. That claim is checkable, and it checks out.

What the project actually ships

The evidence is structural rather than rhetorical:

The project's own release notes describe the retrieval tool as searching "the semantic layer by meaning and by name", which is the more accurate of the two names it uses for itself; the README still advertises AI-ready knowledge graphs.

Placed on a six-stage maturity pipeline — controlled vocabulary, metadata standards, taxonomy, thesaurus, ontology, knowledge graph, each stage built on the one before — it covers the first two: term names and descriptions, typed column metadata, sampled values. Synonyms come from a single model call per table description, so the thesaurus stage is thin and the ontology stage is empty. The project's own commit history calls its result a flat taxonomy.

This is a reasonable thing to build. It is not the thing the name claims.

The architecture change, verified

The same release replaced a fixed multi-step pipeline with a single agent loop, and the numbers are worth getting right because they are widely repeated:

The "up to 20%" is the weak link, and the edition is right to say so: the notes give no absolute figures and never state whether 20 is percent or percentage points. On a base near 10%, a relative 20% is a handful of extra answers.

The two numbers that carry the semantics argument

Two figures do most of the persuasive work in this space. Both are real, and both are weaker than their headline form.

The analyst prediction. The May 2026 release does predict that "organizations that prioritize semantics in AI-ready data will increase their agentic AI accuracy by up to 80%" by 2027 — and in the same sentence, "reduce costs by up to 60%". "Up to" is a ceiling with no base, no sample and no method behind it. The more interesting fact is lexical: the release advises leaders to "establish a context layer as a core component" of their infrastructure, and nowhere uses the words ontology, knowledge graph or semantic layer. The vocabulary that vendors attach to this prediction is not the vocabulary of the prediction.

The graph-versus-SQL benchmark. The widely cited result — a frontier model at 16% answering over SQL directly and 54% over a knowledge graph on the same data — is accurate (16.7% and 54.2% over 43 questions, with the graph virtual over the same database). But the comparison is confounded by design, and the authors say so: the SQL prompt supplies the DDL while the graph prompt supplies the OWL ontology, which carries extra business semantics. The paper calls the gap "a predictable result given that the SPARQL query over a Knowledge Graph representation of the SQL database contains all the required context". Read strictly, it is evidence that more semantic context helps, not that the graph formalism beats SQL.

The follow-up's ~72% needs the same care. The reported figure is 72.55% with a deterministic ontology check and up to three LLM repair cycles; first-pass accuracy is 42.88%, a further 8% are returned as "I don't know", and the error rate is about 19–20%. The repair loop, not the representation, is doing much of the lifting — which is an argument for verifiers, and a familiar one.

One attribution could not be confirmed: a widely quoted one-liner contrasting text-to-SQL failure ("a plausible but incorrect answer") with semantic-layer failure ("an error message"), attributed to a vendor benchmark published in April, does not appear on that vendor's April posts; the closest comparable piece is dated late October. Treat the quote as unsourced until the original surfaces.

Three questions worth keeping

The edition's buying checklist is the most portable part, because each question has a falsifiable answer:

  1. What does it export? A YAML dialect is a different commitment from OWL or Turtle. Export format tells you whether anything downstream can reason over it.

  2. Does review change answers? This project has certification flags for human review, but the agent's retrieval path never reads them — so a certified definition and an unreviewed guess reach the model identically. A review workflow that does not alter retrieval is documentation, not governance.

  3. Does it read the definitions you already wrote? Its Postgres, Snowflake and MySQL connectors read no table or column comments, so a model regenerates descriptions that a team may already have written by hand.

Review checklist

Connections

See R390 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.