O'Reilly logo

Neo4j Cookbook by Ankur Goel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Retail data modeling with Neo4j

In this recipe, you will learn how to model retail data using Neo4j.

Getting ready

Install the Neo4j graph database over the host machine using the recipe described in Chapter 1, Getting Started with Neo4j. This installation process will depend on your preference for your machine OS type.

How to do it...

Let's model this data to build a retail insight engine:

Customer – [HAVE] – Location
Customer – [BUYS] – Product[s]
Product – [HAVE] – Categories
Customer-[LOOKS]- Product[s]

The following screenshot shows the retail graph modeling:

How to do it...

Let's answer some questions on the basis of our retail graph, which are as follows:

  • The day ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required