I'm finally getting somewhere. I have the following nodes:
- (Country), (Employee), (Language), (Specialty)
I have the following relationships:
- (employee)-[:LIVES_IN]->(country)
- (employee)-[:SPECIALIZES_IN]->(specialty)
I now want to add a relationship with a property:
- (employee)->[:SPEAKS]->(language)
but I want to add: a level {1,2,3,4,5} and I have the relationship csv with:
{
"langLevel": "2",
"languageID": "35",
"employeeID": "6800-1"
}
This is what I tried:
LOAD CSV WITH HEADERS FROM "file:///languagerel.csv" AS row
MERGE (employee:Employee {employeeID:coalesce(row.employeeID, "None")})
MERGE (language:Language {languageID:row.languageID})
MERGE (employee)-[:SPEAKS]->(language {langLevel:row.langLevel})
But that didn't work.
Sample from employees.csv
employeeID,last,first,name
6063-2,Miller,Anna,Anna Miller
6800-2,Page,Arline,Arline Page
Sample from languages.csv
languageID,lname
1,Mandarin Chinese
2,Spanish
3,Hindi
Sample from language relationships csv
employeeID,languageID,langLevel
6800-1,2,2
6063-1,1,1
I appreciate any help you can give. I am presenting a demo to our CEO tomorrow on NEO4J and how it can help our non-profit.
John