Exercises
To make sure you understand the topics covered in this chapter before moving on to the next one, you are encouraged to think about the following:
- What is the advantage of a
MERGE
statement overCREATE?
- Can raw Cypher parse JSON data? What tool should you use for that?
- Practice! Using the Netflix dataset, set the movie’s genres contained in the
listed_in
column in the CSV dataset (assumeMovies
has already been imported). - Practice! Using the Netflix JSON dataset, write a Cypher query to import actors (assume
Movies
has already been imported). - Knowing that a given user – let’s call her Alice – watched the movie named Confessions of an Invisible Girl, what other Netflix content can we recommend to Alice?
- Practice! Refine the SPARQL query we’ve built to make sure the person is an actor or movie director.
Help: You can use Robert Cullen as an example.
The answers are provided at the end of this book.