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版

第1章. はじめに

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

本書の多くはグラフ・データモデルについて述べているが、グラフ理論についての本ではない。1グラフとは何かということさえ理解していれば、グラフ・データベースを活用するのにそれほど理論は必要ない。グラフとは何かということさえ理解していれば、グラフ・データベースは現実的に利用できるのである。

グラフとは何か?

形式言語では、グラフは頂点と 辺のコレクションであり、もっと敷居の低い言葉で言えば、ノードとそれらをつなぐ関係のセットである。グラフは、実体をノードとして表し、それらの実体が世界に関係する方法を関係として表す。この一般化された構造により、宇宙ロケットの建設から道路のシステム、食材のサプライチェーンや出所、集団の病歴など、あらゆる種類のシナリオをモデル化することができる。

例えば、ツイッターのデータはグラフとして簡単に表現できる。図1-1では、ツイッター・ユーザーの小さなネットワーク()を示している。各ノードにはUser というラベルが貼られ、ネットワークにおける役割を示している。これらのノードは関係で結ばれ、意味的な文脈をさらに確立するのに役立つ。つまり、ビリーはハリーをフォローし、ハリーはビリーをフォローする。ルースとハリーも同様にお互いをフォローしているが、悲しいことに、ルースはビリーをフォローしているものの、ビリーは(まだ)相互フォローしていない。

grdb 0101
図1-1. 小さなソーシャルグラフ

もちろん、ツイッターの実際のグラフは、図1-1の例よりも何億倍も大きいが、まったく同じ原理で動いている。図1-2では、グラフを拡大し、ルースが公開したメッセージ()を含めている。

grdb 0102
図1-2. メッセージを公開する

シンプルではあるが、図1-2はグラフモデルの表現力を示している。Ruthが文字列のメッセージを発表していることは簡単にわかる。彼女の最新のメッセージは、CURRENT というリレーションシップをたどって発見することができる。そして、PREVIOUS の関係によって、Ruthのタイムラインが作成される。

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