Skip to content
Skills Library
Data & analytics · Building & coding

aidp-semantic-model

/aidp-semantic-model

Maintain a semantic grounding layer (.aidp/semantic.md) for AIDP — logical entity names, SQL-defined metrics, joins with cardinality, synonyms, and value dictionaries. Use when the user wants to define metrics/business terms, improve NL-to-SQL accuracy, standardize "revenue/customers/etc.", or set up a semantic model. Read by analyzing-data, verified-queries, profiling, and data-quality.

Licence
UPL-1.0
Last repository change
26.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

UPL-1.0, otwarta.

What it does and when to use it

Maintain a semantic grounding layer (.aidp/semantic.md) for AIDP — logical entity names, SQL-defined metrics, joins with cardinality, synonyms, and value dictionaries. Use when the user wants to define metrics/business terms, improve NL-to-SQL accuracy, standardize "revenue/customers/etc.", or set up a semantic model. Read by analyzing-data, verified-queries, profiling, and data-quality.

Triggers from the description

revenue/customers/etc.
Original author description

Maintain a semantic grounding layer (.aidp/semantic.md) for AIDP — logical entity names, SQL-defined metrics, joins with cardinality, synonyms, and value dictionaries. Use when the user wants to define metrics/business terms, improve NL-to-SQL accuracy, standardize "revenue/customers/etc.", or set up a semantic model. Read by analyzing-data, verified-queries, profiling, and data-quality.

How it works

  1. When to use
  2. Instruction hierarchy (most → least reliable)
  3. Workflow
  4. AIDP native Ontologies (related feature — UI-driven)
  5. Notes
  6. References
Original SKILL.md headings · 43 lines, 328 words
SKILL.md preview
---
name: aidp-semantic-model
description: Maintain a semantic grounding layer (.aidp/semantic.md) for AIDP — logical entity names, SQL-defined metrics, joins with cardinality, synonyms, and value dictionaries. Use when the user wants to define metrics/business terms, improve NL-to-SQL accuracy, standardize "revenue/customers/etc.", or set up a semantic model. Read by analyzing-data, verified-queries, profiling, and data-quality.
---

# `aidp-semantic-model` — the semantic grounding layer

Create and maintain `.aidp/semantic.md`: the business-meaning layer that grounds NL-to-SQL. This is the
lever curated systems (Snowflake semantic model, Databricks Genie metrics/joins) rely on — without it,
real-world NL-to-SQL accuracy is low.

## When to use
- Define metrics (revenue, active_customers, gross_margin…), logical names, joins, synonyms, or value sets.
- The user wants consistent, reusable business semantics across questions.

## Instruction hierarchy (most → least reliable)
1. **SQL expressions** for metrics/filters (preferred).
2. **Example SQL** for ambiguous prompts (store these via `aidp-verified-queries`).
3. **Free text** only as a last resort.

## Workflow
1. Ensure `.aidp/catalog.md` exists (`aidp-catalog-init`) — the semantic model references real tables/columns.
2. Edit `.aidp/semantic.md` per the format in `references/semantic-model.md`: logical entities, metrics (as
   SQL expressions), joins (with cardinality), synonyms, value dictionaries.
3. **Never invent** columns/values — read them from the catalog or confirm with the user.
4. Optionally validate a metric by running its SQL on a small sample — hand off to `aidp-analyzing-data`,
   which executes Spark SQL via `python "$PLUGIN_DIR/scripts/aidp_sql.py"` (no MCP required).
5. Keep the per-domain working set small and focused.

## AIDP native Ontologies (related feature — UI-driven)
AIDP ships a native **Ontologies** feature (RDF/OWL business glossary: terms, synonyms, definitions, a graph
view, and ontology-driven governance like `av:isSensitive` / `av:requiresRole`). It overlaps this semantic
layer but is **UI-driven** — **no programmatic REST API was found** (`GET …/ontologies` and
`…/workspaces/<ws>/ontologies` both returned **404**, probed 2026-06-10). So:
- For an **agent-usable, programmatic** semantic/glossary layer today, use `.aidp/semantic.md` (this skill) —
  it's the API-free analog the agent can read/write and ground SQL with.
- If the user specifically needs the **native Ontologies** (graph view, TTL/R2RML export, sensitivity
  governance), that is authored in the AIDP console UI; don't claim a REST endpoint for it. Sensitivity tags
  there feed masking governance (`aidp-roles-access` → masking section).

## Notes
- `.aidp/semantic.md` is user-editable and git-ignored (per-project).
- Pairs with `aidp-verified-queries` (example/verified SQL) and `aidp-analyzing-data` (consumes both).

## References
- [references/semantic-model.md](../../references/semantic-model.md) · [references/verified-queries.md](../../references/verified-queries.md)

Versions

RepositoryScoreLicence
This page · oracle-samples/oracle-aidp-samples100UPL-1.0
oracle-samples/oracle-aidp-samples100UPL-1.0

Database snapshot: 13.11.2026 · package version 7333767f7e6f (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100aidp-analyzing-data
    Answer business questions over the AIDP lakehouse with Spark SQL. Use when the user asks a data question ("how many…", "top N…", "show me…", "trend of…", "revenue by…") or wants to run ad-hoc Spark SQL. Grounds in .aidp/catalog.md + .aidp/semantic.md and reuses validated…
  • 100aidp-analyzing-data
    Answer business questions over the AIDP lakehouse with Spark SQL. Use when the user asks a data question ("how many…", "top N…", "show me…", "trend of…", "revenue by…") or wants to run ad-hoc Spark SQL. Grounds in .aidp/catalog.md + .aidp/semantic.md and reuses validated…
  • 90semantic-model-builder
    Build structured semantic layer documentation for metrics, dimensions, and entities. Activate when you need to define a business metric, document a data model, or create YAML definitions compatible with dbt Semantic Layer or similar frameworks.
  • 100semantic-layer
    Semantic layer reference for Keboola. Auto-loads when the user mentions: semantic layer, semantic model, SL, metastore, semantic-metric, semantic-dataset, semantic-relationship, semantic-glossary, semantic-constraint, inspect model, validate model, threshold constraints, metric…
  • 100semantic-analyst
    Answer analytical, KPI, metric, trend, cohort, and business-performance questions through a Sidemantic semantic layer. Use when asked to analyze data, explain why a metric changed, compare segments or periods, calculate a business measure, or explore warehouse data when…
  • 100setting-up-data-catalog
    Populates and maintains a project's data catalog (semantic layer): canonical metrics, trust marks (certifications) on warehouse tables/views, and reviewed table relationships. Use when asked to set up / seed / bootstrap the data catalog or semantic layer, to catalog a project's…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.