You are on page 1of 10

CST8276 - Advanced Database Topics

Lab 10 - Working with Graph Databases – Neo4j (5%)


This assignment relates to the following Course Learning Requirements:

CLR 2 - Administer a DBMS using knowledge of SQL, database security features, globalization, and database architecture
(storage, memory, and processes)
CLR 7 - Explore and gain practical experience in current advanced database technology

Objectives of the Lab


This lab is the second of two that address the larger theme of NoSQL databases. The previous one used MongoDB. This lab
focuses on installing and becoming somewhat familiar with the Neo4j graph database.

Resources:
Review the materials provided for the Neo4j to familiarize yourself -- “The Top 5 Use Cases of Graph Databases”. Here is the link:
https://go.neo4j.com/rs/710-RRC-335/images/Neo4j_Top5_UseCases_Graph%20Databases.pdf

User manuals for Neo4j

https://neo4j.com/docs/desktop-manual/1.4/visual-tour/

Neo4j Developer Guides | Neo4j Graph Database Platform

Deliverable:
All Lab Submissions are to be submitted via Brightspace in a WORD file format that contains the answers of the questions
provided in section 4 parts: i, j, k, l, m and n. Check your course calendar to see the ‘due dates’ for each Lab submission.

1
It is easiest to just submit the downloaded version of this Word document and paste your screenshots and answers into the
spaces provided.

Lab Submission Tasks:


Using the URL provided in the Resources section above….

Navigate to the following site:


https://neo4j.com/download/neo4j-desktop/?edition=desktop&flavour=winstall64&release=1.4.13&offline=true

fill in the form and choose DOWNLOAD DESKTOP

2
Choose WINDOWS option and your download will begin.

When you are asked forthe “Software Registration” you can use the activation key provided earlier.

You are now able to create and start a database!.

1. Show that you have successfully installed Neo4j

Provide screenshots and paste into the box provided.

3
2. In the Neo4j Desktop application, click on the “+New” button to create a new project.

Provide screenshots and paste into the box provided.

3. Find the new project in the navigation list on the Left Side of the window. Select the project (if not already selected). Inside
the new project, Click “+Add” which will turn give options. Click the one labelled “Local DBMS”.

4. Change the suggested Graph Name to: “yourfirstnameGraphFirstExample”, give a password “myfirstexample” and then click
Create.

4
5. Select the newly created Graph DBMS and then click on the Start Button. Once the database (graph) is started, click on the
“Open” button use the Neo4j Browser option.

Provide screenshots and paste into the box provided.

5
Now, we will see the database features.

6. In the Neo4j Browser, run the command in the browser window :play movie-graph (Type in the command and click the run
button)

As you click on each script (you will have to scroll down to bottom) (play button icon) --- look at the code in the browser
and the results.

Provide screenshots and paste into the box provided.

6
To execute each statement --- click on the ‘play’ icon in each box.
Continue running commands on the following screens you reach the end.

7. Take notice as you go through your screens/scripts you will see the types of questions being answered (then the
corresponding query – then the corresponding ‘MATCH’ statement). You can see on the left ‘browser’ window, the coloured
ovals, these represent the ‘tables’ and the colours match what you see in the graph display.

Provide screenshots and paste into the box provided.

7
8. Practice with a two queries of your own --- screenshot and paste one of them in the box below.

Provide screenshots and paste into the box provided.

9. Based on your own research, list three uses for this type of database and a brief explanation why.

Provide screenshots and paste into the box provided.

10. Explain the differences between a relational (normalized data model) and a ‘graph’ data model --- feel free to use
diagrams with text

Provide screenshots and paste into the box provided.

8
Please note: Algonquin College has a policy regarding Plagiarism. The consequences are immediate zeroes for assignments and
potentially an instant fail for the whole course. It is only natural for students to work together to complete assignments.

DO NOT PLAGIARIZE each other’s work.

9
Table 1 - Lab 10 Grading Rubric
Accomplished Developing Incomplete

Criteria 3 0.5 0

Question 1 Completed ALL instructions Completed ALL instructions correctly but yielded Didn't follow ALL
incorrect answers instructions
AND
OR OR
Provided all correct answers
Demonstrated complete understanding of the concepts Provided no answers
using incorrect terminology OR
OR Provided completely incorrect
Demonstrated partial understanding of the concepts answers
using correct terminology
Question 2 refer to above refer to above refer to above

Question 3 refer to above refer to above refer to above

Question 4 refer to above refer to above refer to above

Question 5 refer to above refer to above refer to above

Question 6 refer to above refer to above refer to above

Question 7 refer to above refer to above refer to above

Question 8 refer to above refer to above refer to above

Question 9 refer to above refer to above refer to above

Question 10 refer to above refer to above refer to above

End of Lab

10

You might also like