Build a graph database that shows relationships between characters in Shakespeare's Romeo and Juliet . Task 1:
Fantastic news! We've Found the answer you've been seeking!
Question:
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).
Related Book For
Smith and Roberson Business Law
ISBN: 978-0538473637
15th Edition
Authors: Richard A. Mann, Barry S. Roberts
Posted Date: