The Complete Graph

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?

mermaid
Northwind Graph Model
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:

  1. Open Query and delete all the data from your instance:

    cypher
    MATCH (n) DETACH DELETE n
  2. Download the Northwind Complete data model - northwind-complete.zip.

  3. Use the …​ menu, select Open Model (with data), and select the northwind-complete.zip file you downloaded.

    …​ menu and  Open Model (with data) highlighted
  4. Run the import.

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.

Chatbot

How can I help you today?