This document outlines instructions for a homework assignment to model a social network using a graph database. Students are asked to:
1. Choose a social network and design a data model to store relationship data in a graph database.
2. Install Neo4j and implement the data model, creating realistic "toy" data with at least 10 nodes and different connection levels.
3. Run queries to check connectivity between random nodes, find the most/least connected users, and calculate average connections.
The report should include a network description, data model diagram, query outputs, database/data code, and query performance details.
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Model Social Network Data in Neo4j
1. DS 220: Graph Databases Homework
1. Choose a social network that you use. Say, FaceBook,
Twitter, LinkedIn, or anything else.
2. Design a model to store and manage relationship data from
these social networks in a graph database.
3. Install neo4j and implement your model.
4. Create some realistic “toy” data and store it in your database.
You must design your toy data such that there are at least 10
nodes. The network should be realistic. For example, there
must be at least some nodes that have 4-5 friends and some that
maybe are new or loners and have 1-2 friends. Etc.
5. Run the following queries;
a. Choose two people at random from your toy data. Run a
query to check if they are connected via a path in the graph.
b. Run a query to detect who are the people who have the (i)
most “friends” (or neighbors) and, (ii) least “friends”.
c. Run a query to find the average number of friends per person
in the network.
Your report should contain the following:
1. A brief (but complete) description of the social network and
the data you are using.
2. A description and diagram showing your data model.
3. A snapshot of all the queries you ran in neo4j. Use script in
Unix and similar tools in Windows. Or, use screenshots.
4. The code used to create the database, insert the data, and
query the data.
5. Discuss how long each query took to run. Also, discuss
which queries were “easier” to write using a graph database.
EDU-450 Example Procedures
2. Program of Study: Elementary Education
Procedure 1:
Entering the Classroom
Objective:
To create a classroom environment that is conducive to learning
the moment class begins.
When procedure will be introduced, modeled, and practiced and
its frequency:
Teacher will introduce the procedure on the first day of school.
The teacher will model the procedure at the beginning of class
for the first week of school.
Students will practice this procedure a few times the first day
until satisfactory.
Teacher and students will repeat when reinforcement is needed
or when new students join the class.
Assessment and Feedback:
Teacher will watch for students that follow the steps correctly
and will positively reinforce the students.
Procedure Steps or Activity:
1. Walk in quietly (entering a new zone).
2. Get organized before the bell (sharpen pencil, homework
ready …).
3. Begin working quietly on the warm-up (in your notebook
with paper labeled).
Procedure 2:
Exiting the Classroom
4. https://www.youtube.com/watch?v=BaLy_DbyJGA
HERE’S A SAMPLE FOR YOU. YOU CANNOT USE THIS
ONE FOR YOUR ASSIGNMENT.
Sample Procedure:
Entering the classroom
Objective:
To create a classroom environment that is conducive to learning
the moment class begins.
When procedure will be introduced, modeled, and practiced:
Teachers will introduce the procedure on the first day of school.
The teacher will model the procedure at the beginning of class
for the first week of school.
Frequency of modeling and practice:
Students will practice this procedure a few times the first day
until satisfied.
Assessment and Feedback:
Teacher will watch for student who follow the steps correctly
and will positively reinforce the students’’ actions.
Procedure Steps or Activity:
1. Walk in quietly (entering a new zone)
2. Get organized before the bell (sharpen pencil, homework
ready…)
3. Begin working quietly on the warm-up (in your notebook
with paper labeled)
Procedure 1:
Objective:
When procedure will be introduced, modeled, and practiced:
Frequency of modeling and practice:
Assessment and Feedback:
5. Procedure Steps or Activity:
Procedure 2:
Objective:
When procedure will be introduced, modeled, and practiced:
Frequency of modeling and practice:
Assessment and Feedback:
Procedure Steps or Activity:
Procedure 3:
Objective:
When procedure will be introduced, modeled, and practiced:
Frequency of modeling and practice:
Assessment and Feedback:
Procedure Steps or Activity:
Procedure 4:
Objective:
When procedure will be introduced, modeled, and practiced:
Frequency of modeling and practice:
Assessment and Feedback:
6. Procedure Steps or Activity:
Procedure 5:
Objective:
When procedure will be introduced, modeled, and practiced:
Frequency of modeling and practice:
Assessment and Feedback:
Procedure Steps or Activity:
Procedure 6:
Objective:
When procedure will be introduced, modeled, and practiced:
Frequency of modeling and practice:
Assessment and Feedback:
Procedure Steps or Activity:
Procedure 7:
Objective:
When procedure will be introduced, modeled, and practiced:
Frequency of modeling and practice:
Assessment and Feedback: