172. Graph Model を試す
はじめに
前回で Digital Twin Builder の話を語り終えたので、Microsoft Fabric のお話はおしまいにしようと思ったのですが、モデルという名前が他にもあるな、ということで、Graph Model を取り上げることにしました。
Graph Model
まだ、プレビュー段階の機能ですが、Microsoft Fabric の Graph Model とは、
Graph in Microsoft Fabric is a scalable, enterprise-grade solution that turns disconnected data into AI-powered insights.
Unlike traditional relational databases that often require costly joins and complex queries, graph in Microsoft Fabric:
・Introduces a scale-out architecture that implements the flexible labeled property graph model.
・Offers data querying functionality that's compliant with the international standard for the graph query language GQL (ISO/IEC 39075).
Together, these capabilities enable advanced graph analytics directly on OneLake without the need to manually set up brittle ETL (extract, transform, load) or data replication workflows.
Graph in Microsoft Fabric's scale-out design ensures performance and elasticity for enterprise-scale workloads, so you can analyze billions of relationships without bottlenecks. Its labeled property graph model lets nodes and edges carry labels and properties that make complex relationships easy to model, query, and explore.
And with native GQL and NL2GQL support, you gain standards-based querying capabilities optimized for graph operations—delivering portability and consistency across graph solutions. Graph in Microsoft Fabric removes the complexity of joins and transformations to unlock seamless graph analysis and advanced insights at scale, all while using your existing data estate.
グラフモデルは、グラフデータベースと呼ばれている形式のデータベースの Microsoft Fabric 版です。グラフデータベースは、ノード(プロパティと伴う)とエッジ(ノード間の方向付き意味的関係)で構成されます。
この形式は、スキーマと、スキーマに従って構成されるデータ群、両方を表現することができます。もしかすると、この違いを特に意識せずにグラフデータベースを使っている人が結構いるのかもしれません。そんな人たちからすると、Microsoft Fabric のグラフモデルには違和感を抱くかもしれませんね。Microsoft Fabric のグラフモデルは、グラフ形式によるスキーマの定義であることにご留意。
概念モデリング的には、これまで出てきた、セマンティックモデル、オントロジモデル、そしてグラフモデルも、全て本質的には、概念情報モデルで語りつくせるモデルである、と言えるモデル群です。本質的と言っているのは、道具立てが一緒で、かつ、その体系の用語でシンプル、かつ、ロジカルに、首尾一貫した説明ができるということ。
言ってみれば、概念情報モデルを実践する際の、目的、用途別、または、意味の場の種別の表現形式として、これら三種類のモデルに関する機能が使えるよ、ということです。
”Art of Conceptual Modeling”で解説している考え方で、うまく使いこなせますよ。。。と言っておきましょう。
Learn では、Compare Graph and Relational Databases - Microsoft Fabric | Microsoft Learn で、リレーショナルデータベースとの違いが開設されています。
・Graph databases: Organize data as nodes and edges, storing relationships explicitly. Traversing connections is efficient and often independent of total dataset size.
・Relational databases: Organize data in tables with rows and columns. Relationships are inferred at query time using JOIN operations, which can become complex and slow for highly connected data.
どちらも本質は一緒なんですけどね。。。Relational Database はリレーショナルセオリーに従って、テーブル設計がなされるので、リレーションシップは基本になっていますから。まぁ、明確に線でリレーションシップが表現されていることをExplicitly、カラム間のキー・外部キーによる定義を Implicitly と言えなくもないですね。。。
あ、リレーショナルセオリーを基にしたデータ設計がなされていない、なんちゃってリレーショナルデータベースは論外。一応念のため。
え?「引用が何で英語ページ?」ですって?
なんかね、日本語訳のページの文面がこなれてないのよ。。。
とりあえず使ってみる
Digital Twin Builder とは違って、私の無償お試し期間の環境で、”新しい項目”で、ちゃんと”Graph Model(preview)”は表示されたので、とりあえず、使ってみることにします。
Get Started with Graph in Microsoft Fabric - Microsoft Fabric | Microsoft Learn
こちらを参考にしました。このチュートリアルは、他のものに比べると、かなり手抜きな説明になっています。足りないと思われる部分を補足しながら、私も幾分手抜きな説明をしていくことにします。
Lakehouse の準備
AdventureWorks というデータセットを使います。このデータセットは、github で公開されています。Learn のリンクが間違っているので、ここに正しいリンクを書いておきます。
ここから先は

IoT・Digital Twins を極めよう!
2022年3月にマイクロソフトの中の人から外の人になった Embedded D. George が、現時点で持っている知識に加えて、頻繁に…
この記事が気に入ったらチップで応援してみませんか?
