Neo4j

Aus Claimbase (Testinstanz)
Zur Navigation springen Zur Suche springen

import data in json format

 CALL apoc.load.json("file:///locations.json") YIELD value
 
 // Create the Location node
 MERGE (l:Location {id: value.id})
   SET l.name = value.name
 
 // Create Regest nodes and relationships
 WITH l, value
 UNWIND value.lemmaID AS regestId
 MERGE (r:Regest {id: regestId})
 MERGE (l)-[:MENTIONED_IN]->(r);