Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Build a graph database that shows relationships between characters in Shakespeare's Romeo and Juliet . Task 1: We first need to build a Neo4J
Build a graph database that shows relationships between characters in Shakespeare's Romeo and Juliet.
Task 1: We first need to build a Neo4J database called play
Task 2:
- Then we need to identify a list of characters that appear in the play.
- For each character, create a corresponding "Character" node in Neo4J.
- Make sure to identify appropriate attributes that describe each character (e.g., name, age, gender, family).
- Make sure to save your queries in a separate text file
Task 3:
- Identify a list of scenes that take place in the play
- For each scene, create a corresponding "Scene" node in Neo4J
- Make sure to identify appropriate attributes that describe each scene (e.g., scene number, title, duration)
- Make sure to save your queries.
Task 4:
- Create relationships between characters and scenes. Label the relationships between characters and scenes as "APPEARS_IN".
- Create relationships between character nodes. Make sure to build the following types of relationships:
- FAMILY
- FRIEND
- ROMANTICALLY_INVOLVED
- RIVAL
Task 5: Writing a CYPHER query to show the entire graph
Task 6: Writing a CYPHER query to show all characters that appear in any scene with ROMEO
Task 7: Writing a CYPHER query to show all characters that are rivals
Task 8: Writing a CYPHER query to show all characters that appear in the same scene and are related to each other (FAMILY).
Step by Step Solution
★★★★★
3.37 Rating (156 Votes )
There are 3 Steps involved in it
Step: 1
Building a Relationship Graph for Romeo and Juliet in Neo4J Heres how to build the graph database and answer your queries Task 1 Create the Neo4J data...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started