Discussion about this post

User's avatar
Cornelius van Heerden's avatar

Great read, Veronika! It was funny seeing the “Semantic Gold Layer” label pop up in the diagram caption, as that’s the exact term I coined for my book (https://a.co/d/0a1VDk0j) and research on evolving ELT into ELTM (Extract → Load → Transform → Model): https://cloud.google.com/resources/semantic-gold-layer?e=48754805.

One architectural distinction worth highlighting for anyone building for AI/LLM analytics: a Knowledge Graph / DCAT Data Catalog solves entity discovery and lineage, but it doesn’t replace the M (Model) step for governed analytical queries.

Materializing Silver into RDF triples with DCAT puts entity links in storage (still a physical T step), which works well for record traversal (“show me everything on customer C-001”). Where enterprise AI breaks down is aggregation semantics: base grain, fan-out safety (e.g., combining order-grain shipping with line-grain revenue without double-counting), fiscal calendars, and fail-safe refusal when a question can’t be answered from governed data. If an LLM still writes free-form SQL/SPARQL from catalog metadata, it will still hallucinate formulas or silently fan out joins.

I recently ran a controlled 4,485-trial benchmark across 9 Gemini and Claude models testing this exact split:

Accuracy & Refusal: Moving from raw schema (17.9%) to catalog/document context (81.7%) helps, but free-form models still fabricate answers >50% of the time on unanswerable questions and plateau below 100%. A compiled Semantic Gold Layer—where the LLM never writes raw queries, only emitting a validated query plan over lowest-grain Silver—reaches 90.2% out of the box (90.5% safe refusal) and 100% with 8 durable model edits.

Token Consumption: Stuffing rich catalog/knowledge-base context into every prompt burned 3,414 tokens/query (and letting an agent stitch cross-source queries itself burned 13,255 tokens/question—29× more tokens—at just 7% accuracy). A compiled Semantic Gold Layer averaged 868 tokens/query (~39 output tokens)—~4× fewer tokens, lowest latency, and highest accuracy.

Catalogs and DCAT are fantastic for discovering where data lives and how entities connect—but for reliable AI analytics, the Semantic Gold Layer has to be a deterministic compiler, not just a richer catalog.

Cyril François's avatar

I was literally thinking about this yesterday. There is just one difficulty, it is the fact materialized gold RDF graph is not as compressed as parquet tables, the foundation of open table format. It is a big deal. Currently I was thinking to go with one pipeline generating one ephemerous materialized in-memory RDF graph generated after query. But it means works to interpret the SPARQL query, through one ontology.

8 more comments...

Ready for more?