3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Code-Driven データ分析ナイト #2 セマンティックレイヤー

Last updated at Posted at 2025-11-18

概要

「Code-Driven データ分析ナイト #2 セマンティックレイヤー」にて、「データ利活用における
セマンティックレイヤー概要」というタイトルで発表しました。本記事では、その発表内容を整理してご紹介します。

資料

実行コード

リンク先のレポジトリにて、dbt Platform での MetricFlow、 Snowflake Semantic Layer、 Databricks Metric View をほぼ同じロジックで実装しています。

発表内容補足

セマンティックレイヤーとは

DMBOK 出版元である DAMA による The DAMA Dictionary of Data Management, 2nd Edition にて Semantic Layer が定義されています。

A representation of data using business terms to enable ease of understanding and use.

Ref: The DAMA Dictionary of Data Management, 2nd Edition

理解や活用を容易にするためのビジネス用語を用いたデータ表現。

上記翻訳

データ利活用におけるセマンティックレイヤーとは

2つのセマンティックレイヤーが注目されており、データマネジメント業界では Knowledge Graph によるセマンティックレイヤーが注目されている領域であり、どちらの話をしているかに注意が必要です。

image.png

Knowledge Graph に関する記事として下記を投稿しております。

<補足>Knowledge Graph によるセマンティックレイヤー

Knowledge Graph によるセマンティックレイヤー機能については、 Graphwise 社の資料が参考になります。

image.png

出所:What Is a Semantic Layer | Graphwise Fundamentals

2025年10月22日~23日に開催された Graphwise AI Summit 2025 について下記でまとめています。

データ利活用におけるセマンティックレイヤーの実践

Databricks と Snowflake に格納されている TPC-H データを用いてサンプルコードを作成しています。ディメンショナルモデリングである TPC-DS を利用していない理由は、TPC-DS のデータモデルが整い過ぎており、例外パターンを含む検証シナリオを設定しにくいためです。データ利活用におけるセマンティックレイヤーを実装する際には、ディメンションモデル(スタースキーマ、スノーフレークスキーマ)で実装してください。

TPC-H と TPC-DS については下記の記事で整理しています。

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?