Skip to Content
グラフデータベース ―Neo4jによるグラフデータモデルとグラフデータベース入門
book

グラフデータベース ―Neo4jによるグラフデータモデルとグラフデータベース入門

by Ian Robinson, Jim Webber, Emil Eifrem, 佐藤 直生, 木下 哲也
March 2015
Intermediate to advanced
236 pages
4h 1m
Japanese
O'Reilly Japan, Inc.
Content preview from グラフデータベース ―Neo4jによるグラフデータモデルとグラフデータベース入門

3章グラフでのデータモデリング

前章では、ドキュメント、カラムファミリー、キーバリューといったNoSQLストアや従来のリレーショナルデータベースと比較したグラフデータベースの大きな利点を説明しました。しかし、グラフデータベースを採用すると、グラフで世界をどのようにモデリングするのかという疑問が湧きます。

本章では、グラフのモデリングを重点的に取り上げます。プロパティグラフモデル(最も広く採用されているグラフデータモデル)のまとめから始め、本書のコード例のほとんどで使用するグラフクエリ言語Cypherの概要を説明します。Cypherは、プロパティグラフの記述とクエリのための言語の1つです。リレーショナルデータベース管理システム(RDBMS)の世界にはSQLが存在しますが、現在、グラフクエリ言語に合意に至った標準は存在しません。Cypherを選んだ理由は、1つには著者がCypherに堪能であるからですが、学習や理解がしやすく、広く使われているからでもあります。これを基に、グラフのモデリングの2つの例を詳しく見ていきます。最初の例はシステム管理ドメインの例であり、リレーショナルモデリングとグラフのモデリングの手法を比較します。2つ目のシェイクスピア文学の製作と消費の例では、グラフを使って全く異なる複数のドメインをつなげてクエリを行います。本章の最後では、グラフでモデリングするときの一般的な落とし穴に目を向け、優れた実践方法を浮き彫りにします。

3.1 モデルと目的

グラフでのモデリングを深く掘り下げる前に、モデルに関して一般的に説明します。モデリングは、特定の要求や目的を動機とした抽象化作業です。モデリングは、手に負えないドメインの特定の側面を構造化して操作できる空間に変換するために行います。世界を「ありのまま」に表現する自然な方法はなく、目的を持った多くの選択、抽象化、簡素化がありますが、その中には特定の目的を満たすために、役に立つ方法があります。 ...

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

AI技術を活かすためのスキル ―データをビジネスの意思決定に繋げるために

AI技術を活かすためのスキル ―データをビジネスの意思決定に繋げるために

Daniel Vaughan, 西内 啓, 長尾 高弘
進化的アーキテクチャ ―絶え間ない変化を支える

進化的アーキテクチャ ―絶え間ない変化を支える

Neal Ford, Rebecca Parsons, Patrick Kua, 島田 浩二
データサイエンス講義

データサイエンス講義

Rachel Schutt, Cathy O'Neil, 瀬戸山 雅人, 石井 弓美子, 河内 崇, 河内 真理子, 古畠 敦, 木下 哲也, 竹田 正和, 佐藤 正士, 望月 啓充

Publisher Resources

ISBN: 9784873117140Other