Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- == load first file
- LOAD CSV WITH HEADERS FROM "file:///skill_co_occurance3.csv" AS row
- MERGE (src:Skill {name: row.Skill_1})
- MERGE (tgt:Skill {name: row.Skill_2})
- MERGE (src)-[r:CO_OCCURS]->(tgt) ON CREATE SET r.weight = toInteger(row.Users)
- == Load second file
- LOAD CSV WITH HEADERS FROM "file:///skill_rank.csv" AS row
- MATCH (c:Skill {name: row.Skill})
- SET c.skill_type = toInteger(row.Skill_Type_Id),
- c.skill_rank = toFloat(row.Skill_Rank)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement