Introduction
Here is an example complete graph data model for the Northwind dataset.
How does it compare to the graph data model you created in the previous lesson?
graph TD
Territory -->|IN_REGION| Region
Supplier -->|SUPPLIES| Product
Product -->|PART_OF| Category
Shipper -->|SHIPS| Order
Customer -->|PURCHASED| Order
Employee -->|SOLD| Order
Employee -->|IN_TERRITORY| Territory
Employee -->|REPORTS_TO| Employee
Order -->|ORDERS<br/>unitPrice<br/>quantity<br/>discount| Product
Territory(("<b>Territory</b>"))
Region(("<b>Region</b>"))
Supplier(("<b>Supplier</b>"))
Shipper(("<b>Shipper</b>"))
Product(("<b>Product</b>"))
Category(("<b>Category</b>"))
Order(("<b>Order</b>"))
Customer(("<b>Customer</b>"))
Employee(("<b>Employee</b>"))It depends!
It depends!
There is no right or wrong way to complete the challenge.
The model you created is just as valid. A model is partially driven by the questions you want to ask of the data and the insights you want to gain. Your experience is different to others and your model may be different.
Graph data models in Neo4j can be easily evolve as your use case changes.
Download and import the model
If you would like to update your model, you can download this complete graph data model, and import it into your instance.
To update the graph data model with the solution, you can:
-
Open Query and delete all the data from your instance:
cypherMATCH (n) DETACH DELETE n -
Download the Northwind Complete data model - northwind-complete.zip.
-
Use the
…menu, select Open Model (with data), and select the northwind-complete.zip file you downloaded.
-
Run the import.
Next
Lesson Summary
In this lesson, you reviewed an example Northwind graph data model and compared it to the model you created.
In the next module, you will learn how to work with your graph database using the Aura Explore, Dashboard, and Agent tools.