Dataset overview
Dataset import
To prepare the data in your Neo4j instance you must:
-
Start the database and the Graph Data Science Playground if you are using Neo4j Desktop.
-
Load some data into your database you will use for the hands-on exercises.
Datasets you will use in this course
-
Game of Thrones (GOT)
-
European Roads
-
Recipes
Game of Thrones
The Game of Thrones network is a monopartite graph containing Character nodes and their interactions in the TV shows. Interactions between characters are grouped by TV shows seasons. For example, a relationship INTERACTS_SEASON1 represents an interaction between characters in the first season, INTERACTS_SEASON2 means interaction in the second season, and so on. The relationship weight represents the strength of the interaction, and because two characters can interact in more than a single season, we are dealing with a weighted multigraph.
European Roads
The European Roads network is also a monopartite graph containing Place nodes and their road connections indicated by the EROAD relationship. The Place node has multiple properties, name and countryCode. The EROAD relationship has four properties, distance, inverse_distance, road_number, and watercrossing. We will assume that we can traverse each EROAD relationship in both directions, effectively treating the European Roads network as an undirected graph.
Recipes
The Recipes network is a bipartite graph containing Recipe and Ingredient nodes. A CONTAINS_INGREDIENT relationships indicates that an ingredient was used in the particular recipe. This is a very simple data model where each node has only a name and there are no properties in the relationships.
Step 1: Start the database and Graph Data Science Playground (Neo4j Desktop only; already started if using a Sandbox)
-
In Neo4j Desktop, start the database.
-
Start the Graph Data Science Graph Playground Graph App:
-
Double-click Graph Data Science Graph Playground app in the left pane to start it.
-
Once started, it will open a new window as follows:
-
Step 2: Load the data for the exercises
If you haven’t already, open Neo4j Browser for the started database.
In the query edit pane of Neo4j Browser, execute the browser command:
:play 4.0-intro-graph-algos-exercises
and follow the instructions for Load the Data for the Exercises.
Estimated time to complete: 10 minutes. |
Check your understanding
Need help? Ask in the Neo4j Community