Skip to Content
グラフデータベース 第2版
book

グラフデータベース 第2版

by Ian Robinson, Jim Webber, Emil Eifrem
March 2025
Beginner to intermediate
238 pages
3h 51m
Japanese
O'Reilly Media, Inc.
Content preview from グラフデータベース 第2版

第3章 グラフを使ったデータモデリング グラフを使ったデータモデリング

この作品はAIを使って翻訳されている。ご意見、ご感想をお待ちしている:translation-feedback@oreilly.com

これまでの章では、他のNOSQLストアや従来のリレーショナルデータベースと比較した場合のグラフデータベースの利点について説明してきた。しかし、グラフ・データベースを採用することにした以上、どのようにグラフをモデリングするのかという疑問が生じる。

この章では、グラフ・モデリングに焦点を当てる。最も広く採用されているグラフ・データ・モデルであるラベル付きプロパティ・グラフ・モデルの復習から始め、本書のコード例のほとんどで使用されているグラフ・クエリ言語の概要を説明する:Cypherである。グラフクエリ言語はいくつか存在するが、Cypherは最も広くデプロイされており、事実上の標準となっている。Cypherは、特にSQLのバックグラウンドを持っている人にとっては、学びやすく理解しやすい言語でもある。これらの基本を押さえた上で、グラフ・モデリングの例を見ていこう。最初の例では、システム管理分野に基づき、リレーショナルとグラフのモデリングテクニックを比較する。2つ目の例では、シェークスピア文学の生産と消費について、グラフを使って複数の異なるドメインを結びつけ、クエリを実行する。最後に、グラフを使ったモデリングにありがちな落とし穴と、グッドプラクティスをいくつか挙げて、この章を終わる。

モデルと目標

グラフを使ったモデリングを深く掘り下げる前に、一般的なモデルについて一言述べておこう。モデリングは、特定のニーズや目標に動機づけられた抽象化活動である。私たちがモデリングを行うのは、手に負えない領域の特定のファセットを、構造化して操作できるスペースに取り込むためである。世界を「ありのまま」に表現する自然な表現など存在しない。ただ、多くの目的を持って選択し、抽象化し、単純化するだけである。

グラフ表現もこの点では変わらない。しかし、他の多くのデータモデリングテクニックと異なるのは、論理モデルと物理モデルの親和性が高いことである。リレーショナル・データ管理テクニックでは、自然言語によるドメイン表現から逸脱することを要求される。まず論理モデルへと強制し、次に物理モデルへと強制する。このような変換は、私たちの世界の概念とデータベースのそのモデルのインスタンス化との間に意味的な不一致をもたらす。グラフデータベースを使えば、このギャップはかなり縮まる。

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

FastAPIで生成型AIサービスを作る

FastAPIで生成型AIサービスを作る

Alireza Parandeh
エンジニアが学ぶ会計システムの「知識」と「技術」

エンジニアが学ぶ会計システムの「知識」と「技術」

広川 敬祐, 五島 伸二, 小田 恭彦, 大塚 晃, 川勝 健司
エンジニアが学ぶ金融システムの「知識」と「技術」 第2版

エンジニアが学ぶ金融システムの「知識」と「技術」 第2版

大和総研フロンティア研究開発センター
scikit-learn、Keras、TensorFlowによる実践機械学習 第2版

scikit-learn、Keras、TensorFlowによる実践機械学習 第2版

Aurélien Géron, 下田 倫大, 長尾 高弘

Publisher Resources

ISBN: 9798341635845