Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
04-30-2019 07:45 AM
I need to have 2 types of Nodes Person and Movie. Person node can have 2 types of Label
Data is coming from a CSV files. Both :Person:Actor and :Person:Director has different set of properties.
I coded like below:
LOAD CSV with headers FROM 'file:///Movie.csv' AS CT
Create (pa:Person:Actor
{Actor_Name : CT.Actor_Name,
Actor_Age : CT.Actor_Age,
Actor_Gender: CT.Actor_Gender,
Earned:CT.Earner,
Action : CT.Action})
Create (pd:Person:Director
{Director_Name : CT.Director_Name,
Director_Age : CT.Director_Age,
Director_Gender: CT.Director_Gender,
Famous_For:CT.Famous_For})
Create (movie:Movie
{Name: CT.Movie_Name,
Release_Date:CT.Release_Date})
Create (pa:Person:Actor) -[ww:WORKED_WITH ]-> (pd:Person:Director)
Create (pd:Person:Director) -[d:DIRECTED ]-> (movie:MOVIE)
Create (pa:Person:Actor) -[ain:ACTED_IN ]-> (movie:MOVIE)
However my colleague said in this code I am creating 2 different Node types :Person:Actor, :Person:Director and :Movie and model requires only 2 :Person and :Movie
Also help me to get meaningful understanding of difference among
Node, Node Type and Label
Please help how to achieve this.
All the sessions of the conference are now available online