Przejdź do treści
Biblioteka skilli
Dane i analityka · Budowanie i kod

aidp-semantic-model

/aidp-semantic-model

Utrzymuje warstwę semantyczną .aidp/semantic.md dla AIDP: nazwy encji, metryki zdefiniowane w SQL, złączenia z licznością, synonimy i słowniki wartości, co poprawia trafność NL-to-SQL.

Licencja
UPL-1.0
Ostatnia zmiana repozytorium
26.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

UPL-1.0, otwarta.

Co robi i kiedy

Utrzymuje warstwę semantyczną .aidp/semantic.md dla AIDP: nazwy encji, metryki zdefiniowane w SQL, złączenia z licznością, synonimy i słowniki wartości, co poprawia trafność NL-to-SQL.

Wyzwalacze z opisu

revenue/customers/etc.
Oryginalny opis (EN)

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.

Jak działa

  1. When to use
  2. Instruction hierarchy (most → least reliable)
  3. Workflow
  4. AIDP native Ontologies (related feature — UI-driven)
  5. Notes
  6. References
Sekcje z nagłówków SKILL.md, w oryginale · 43 linii, 328 słów
Podgląd SKILL.md
---
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)

Wersje

RepozytoriumWynikLicencja
Ta strona · oracle-samples/oracle-aidp-samples100UPL-1.0
oracle-samples/oracle-aidp-samples100UPL-1.0

Migawka bazy z 13.11.2026 · wersja paczki 7333767f7e6f (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 2 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100aidp-analyzing-data
    Odpowiada na pytania biznesowe nad lakehouse AIDP w Spark SQL: opiera się na katalogu i warstwie semantycznej, używa zweryfikowanych zapytań i wykonuje SQL pomocnikiem aidp_sql.py.
  • 100aidp-analyzing-data
    Odpowiada na pytania biznesowe nad lakehouse AIDP w Spark SQL: opiera się na katalogu i warstwie semantycznej, używa zweryfikowanych zapytań i wykonuje SQL pomocnikiem aidp_sql.py.
  • 90semantic-model-builder
    Buduje uporządkowaną dokumentację warstwy semantycznej dla metryk, wymiarów i encji, w tym definicje YAML zgodne z dbt Semantic Layer.
  • 100semantic-layer
    Prowadzi warstwę semantyczną Keboola: tworzy i waliduje metryki, zbiory danych, relacje i ograniczenia modelu.
  • 100semantic-analyst
    Odpowiada na pytania o KPI, metryki, trendy i kohorty przez warstwę semantyczną Sidemantic, wykorzystując zaufane definicje.
  • 100setting-up-data-catalog
    Zapełnia i utrzymuje katalog danych projektu (warstwę semantyczną): kanoniczne metryki, oznaczenia zaufania tabel i widoków hurtowni oraz sprawdzone relacje między tabelami.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.