I think you found a very old example. Use Neo4j Desktop 0.5.0 instead from this page:
https://neo4j.com/download/other-releases/
It's easiest to use LOAD CSV to load data from a CSV file. Put them in the import directory of your database.
LOAD CSV WITH HEADERS FROM "file://people.csv" AS row
LOAD CSV WITH HEADERS FROM "file://relationships.csv" AS row
MATCH (p1:Person {id: row.from})
MATCH (p2:Person {id:
row.to})
CREATE (p1)-[:RELATED {type: row.type}]->(p2);
create constraint on (p:Person) assert
p.id is unique;
create index on :Person(name);
Michael