Dataset overview

Dataset import

To prepare the data in your Neo4j instance you must:

  1. Start the database and the Graph Data Science Playground if you are using Neo4j Desktop.

  2. 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

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

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

recipe

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)

  1. In Neo4j Desktop, start the database.

  2. Start the Graph Data Science Graph Playground Graph App:

    1. Double-click Graph Data Science Graph Playground app in the left pane to start it.

    2. Once started, it will open a new window as follows:

Graph Data Science Playground Started

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

Question 1

What labels could we use to describe the Recipes network?

Select the correct answers.

  • Food

  • Ingredient

  • Recipe

  • Category

Question 2

What libraries do you use to perform analyses for Graph Data Science?

Select the correct answers.

  • GDSL

  • Graph Explorer

  • NEuler

  • APOC

Question 3

What Graph app do you use to help you run graph algorithms?

Select the correct answer.

  • Bloom

  • Cypher-shell

  • Graph Data Science Playground

  • Linkurious

Summary

You have now prepared your system for performing the hands-on exercises for this course.