Answered step by step
Verified Expert Solution
Link Copied!

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

  1. Then we need to identify a list of characters that appear in the play.
  2. For each character, create a corresponding "Character" node in Neo4J.
  3. Make sure to identify appropriate attributes that describe each character (e.g., name, age, gender, family).
  4. Make sure to save your queries in a separate text file

Task 3: 

  1. Identify a list of scenes that take place in the play
  2. For each scene, create a corresponding "Scene" node in Neo4J
  3. Make sure to identify appropriate attributes that describe each scene (e.g., scene number, title, duration)
  4. Make sure to save your queries.

Task 4:

  1. Create relationships between characters and scenes.  Label the relationships between characters and scenes as "APPEARS_IN".
  2. Create relationships between character nodes.  Make sure to build the following types of relationships:
    1. FAMILY
    2. FRIEND
    3. ROMANTICALLY_INVOLVED
    4. 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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Smith and Roberson Business Law

Authors: Richard A. Mann, Barry S. Roberts

15th Edition

1285141903, 1285141903, 9781285141909, 978-0538473637

More Books

Students also viewed these Databases questions

Question

What are the two objectives of accounting for income taxes?

Answered: 1 week ago

Question

a sin(2x) x Let f(x)=2x+1 In(be)

Answered: 1 week ago