Skip to content

Instantly share code, notes, and snippets.

@chriszs
Last active August 9, 2017 16:34
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 chriszs/320d18fa418c7cd7ccbe59e751e9ff86 to your computer and use it in GitHub Desktop.
Save chriszs/320d18fa418c7cd7ccbe59e751e9ff86 to your computer and use it in GitHub Desktop.
LOAD CSV WITH HEADERS FROM 'https://static01.nyt.com/newsgraphics/2017/07/21/opposite-job/32175e8ee679c6b87f5ca1cc675fe555dbb5d8da/matches.csv' AS line
MERGE (job1:Job { title: line.title})
MERGE (job2:Job { title: line.opposite_job})
CREATE (job1)-[:OPPOSITE_OF]->(job2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment