Copyright
Brief Table of Contents
Table of Contents
Foreword
Preface
Acknowledgments
About this Book
About the Authors
About the Cover Illustration
1. Introduction to Neo4j
Chapter 1. A case for a Neo4j database
1.1. Why Neo4j?
1.2. Graph data in a relational database
1.2.1. Querying graph data using MySQL
1.3. Graph data in Neo4j
1.3.1. Traversing the graph
1.4. SQL joins versus graph traversal on a large scale
1.5. Graphs around you
1.6. Neo4j in NoSQL space
1.6.1. Key-value stores
1.6.2. Column-family stores
1.6.3. Document-oriented databases
1.6.4. Graph databases
1.6.5. NoSQL categories compared
1.7. Neo4j: the ACID-compliant database
1.8. Summary
Chapter 2. Data modeling in Neo4j
2.1. What is a data model for Neo4j?
2.1.1. Modeling with diagrams: a simple example
2.1.2. Modeling with diagrams: a complex example
2.2. Domain modeling
2.2.1. Entities and properties
2.3. Further examples
2.3.1. Underground stations example
2.3.2. Band members example
2.4. Summary
Chapter 3. Starting development with Neo4j
3.1. Modeling graph data structures
3.2. Using the Neo4j API
3.2.1. Creating nodes
3.2.2. Creating relationships
3.2.3. Adding properties to nodes
3.2.4. Node type strategies
3.2.5. Adding properties to relationships
3.3. Node labels
3.4. Summary
Chapter 4. The power of traversals