Advertisement
Guest User

Untitled

a guest
Nov 5th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. == load first file
  2. LOAD CSV WITH HEADERS FROM "file:///skill_co_occurance3.csv" AS row
  3. MERGE (src:Skill {name: row.Skill_1})
  4. MERGE (tgt:Skill {name: row.Skill_2})
  5. MERGE (src)-[r:CO_OCCURS]->(tgt) ON CREATE SET r.weight = toInteger(row.Users)
  6.  
  7. == Load second file
  8. LOAD CSV WITH HEADERS FROM "file:///skill_rank.csv" AS row
  9. MATCH (c:Skill {name: row.Skill})
  10. SET c.skill_type = toInteger(row.Skill_Type_Id),
  11. c.skill_rank = toFloat(row.Skill_Rank)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement