Chapter 3. Starting development with Neo4j

This chapter covers

  • Modeling graph data
  • Creating connected nodes using the Neo4j Java API
  • Adding additional information to nodes and relationships using properties
  • Strategies for differentiating between types of nodes

In chapter 1 we demonstrated the performance and scalability improvements available when using Neo4j as a database for graph data. We also discussed how data that’s naturally modeled as a graph fits well with the Neo4j data model. Now it’s time to get some hands-on practice.

In this chapter we’ll introduce you to the Neo4j Core Java API by modeling and creating an example graph in the Neo4j graph database. We’ll build on the social network example from chapter 1, but we’ll make ...

Get Neo4j in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.