In this recipe, you will learn how to model retail data using Neo4j.
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.
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:
Let's answer some questions on the basis of our retail graph, which are as follows: