The sample is taken, but modified, from this example: http://neo4j.com/docs/2.2.2/cypherdoc-importing-csv-files-with-cypher.html
USING PERIODIC COMMIT 500 LOAD CSV
WITH HEADERS FROM "http://neo4j.com/docs/2.2.2/csv/import/roles.csv" AS csvLine
MATCH (person:Person { id: toInt(csvLine.personId)}),(movie:Movie { id: toInt(csvLine.movieId)})
CREATE (person)-[:csvLine.role { role: csvLine.role }]->(movie)
The above doesn't work since I try to use the data from the CSV-file to define the relationship type, which doesn't appear to be alloved. Or is it because the data in the CSV-file contains space?