AIDP(AI駆動型データプラットフォーム)用に、意味定義層(.aidp/semantic.md)を管理します。論理的なエンティティ名、SQL定義済みのメトリクス(測定指標)、関連テーブルの結合ルール、同義語、データ値の辞書などを一元管理します。 **次のような場合に使用:** - メトリクスやビジネス用語を定義したいとき - 自然言語から SQL へ変換する精度を高めたいとき - 「売上」「顧客数」など用語表記を統一したいとき - 意味定義モデルを構築したいとき データ分析、クエリ検証、データプロファイリング、データ品質チェックなど、複数の機能から参照・確認されます。
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 — セマンティック・グラウンディング層.aidp/semantic.md の作成・管理を行います。
これは NL-to-SQL(自然言語からSQLへの変換)を意味的に裏付けるビジネス意味層です。
Snowflake セマンティックモデルや Databricks Genie のメトリクス・ジョイン定義といった
キュレーション型システムが依存する核となる仕組みであり、
これが存在しない場合、実運用における NL-to-SQL の精度は低くなります。
aidp-verified-queries を通じて保存).aidp/catalog.md が存在することを確認する(aidp-catalog-init を使用)
— セマンティックモデルは実在するテーブル・カラムを参照するため、カタログが前提となります。
references/semantic-model.md に定めたフォーマットに従い .aidp/semantic.md を編集する:
論理エンティティ、メトリクス(SQL式として記述)、ジョイン(カーディナリティを含む)、
シノニム、値ディクショナリを記載します。
カラムや値は 絶対に創作しない こと — カタログから読み取るか、ユーザーに確認して下さい。
必要に応じて、小さなサンプルデータに対して SQL を実行しメトリクスを検証する
— aidp-analyzing-data に処理を委譲すると、
python "$PLUGIN_DIR/scripts/aidp_sql.py" 経由で Spark SQL が実行されます(MCP 不要)。
ドメインごとの作業セットは小さく、焦点を絞った状態に保つ。
AIDP にはネイティブの Ontologies 機能が搭載されています
(RDF/OWL ベースのビジネスグロッサリー: 用語、シノニム、定義、グラフビュー、
および av:isSensitive / av:requiresRole などオントロジー駆動のガバナンス機能)。
この機能は本セマンティック層と重複する部分がありますが、UI 操作前提であり、
プログラマティックな REST API は確認されていません
(GET …/ontologies および …/workspaces/<ws>/ontologies はいずれも 404 を返すことを
2026-06-10 に確認済み)。
そのため:
Agent から利用可能なプログラマティックなセマンティック・グロッサリー層が必要な場合は、
.aidp/semantic.md(本スキル)を使用してください。
これは API を必要とせず、agent が読み書きして SQL のグラウンディングに利用できるものです。
ユーザーがネイティブ Ontologies(グラフビュー、TTL/R2RML エクスポート、
センシティビティガバナンス)を特に必要としている場合は、
AIDP コンソール UI で作成するものであり、REST エンドポイントが存在するかのように案内しないでください。
そこで設定されたセンシティビティタグはマスキングガバナンスに反映されます
(aidp-roles-access → マスキングセクション)。
.aidp/semantic.md はユーザーが直接編集可能で、.gitignore 対象です(プロジェクト単位)。aidp-verified-queries(例示・検証済み SQL)および aidp-analyzing-data(両者を参照して実行)と組み合わせて使用します。aidp-semantic-model — the semantic grounding layerCreate 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.
aidp-verified-queries)..aidp/catalog.md exists (aidp-catalog-init) — the semantic model references real tables/columns..aidp/semantic.md per the format in references/semantic-model.md: logical entities, metrics (as
SQL expressions), joins (with cardinality), synonyms, value dictionaries.aidp-analyzing-data,
which executes Spark SQL via python "$PLUGIN_DIR/scripts/aidp_sql.py" (no MCP required).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:
.aidp/semantic.md (this skill) —
it's the API-free analog the agent can read/write and ground SQL with.aidp-roles-access → masking section)..aidp/semantic.md is user-editable and git-ignored (per-project).aidp-verified-queries (example/verified SQL) and aidp-analyzing-data (consumes both).原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。