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:
Let's answer some questions on the basis of our retail graph, which are as follows:
- The day ...
Get Neo4j Cookbook 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.