Neo4j
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);