Database Reference
In-Depth Information
Then, we get the following result that is very similar to what we had in the previous
import scenarios:
Loading relationships with Load CSV
However, the difference between the current graph and the ones that we had in our
previous import scenarios is that we have not used any labels or relationship types
yet. Therefore, the preceding screenshot looks a bit different. The following two
queries correct this though:
• Query 1:
//Assign labels for Males and Females
match (m {type:"Male"}), (f {type:"Female"})
set m:Male, f:Female
return m,f
• Query 2:
//Create duplicate relationship with appropriate type
match (n)-[r1 {type:"MOTHER_OF"}]->(m), (s)-[r2 {type:"FATHER_
OF"}]->(t)
create n-[:MOTHER_OF]->m, s-[:FATHER_OF]->t
return *;
//Remove duplicate relationships
match ()-[r:REL]-() delete r;
 
Search WWH ::




Custom Search