Skip to content

Instantly share code, notes, and snippets.

@suellenstringer-hye
Created February 26, 2015 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suellenstringer-hye/81835e659ac428fbc5cf to your computer and use it in GitHub Desktop.
Save suellenstringer-hye/81835e659ac428fbc5cf to your computer and use it in GitHub Desktop.
Flannery O'Connor loads for neo4j
LOAD CSV WITH HEADERS FROM "http://www.library.vanderbilt.edu/webimages/flannery/Name.csv" AS csvLine
CREATE (p:Person { id: csvLine.NameID, name: csvLine.Name })
LOAD CSV WITH HEADERS FROM "http://www.library.vanderbilt.edu/webimages/flannery/locations.csv" AS csvLine
CREATE (l:Location { id: csvLine.LocationID, Place: csvLine.Location })
LOAD CSV WITH HEADERS FROM "http://www.library.vanderbilt.edu/webimages/flannery/letterlocations.csv" AS csvLine
CREATE (R:Letter { id: csvLine.Letter, name: csvLine.Location })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment