1
Fork 0
mirror of https://github.com/Steffo99/unimore-bda-4.git synced 2024-11-26 09:54:22 +00:00
bda-4-steffo/scripts/import-cratesio/3-crates_keywords.cypher

9 lines
313 B
Text
Raw Normal View History

2022-11-25 08:31:19 +00:00
MATCH (:Crate)-[relation:IS_TAGGED_WITH]->(:Keyword)
DELETE relation;
LOAD CSV WITH HEADERS FROM "file:///crates_keywords.csv" AS line FIELDTERMINATOR ","
MATCH
(crate:Crate {id: toInteger(line.crate_id)}),
(keyword:Keyword {id: toInteger(line.keyword_id)})
CREATE (crate)-[:IS_TAGGED_WITH]->(keyword);