Last active
August 9, 2017 16:34
-
-
Save chriszs/320d18fa418c7cd7ccbe59e751e9ff86 to your computer and use it in GitHub Desktop.
Script to load data from https://www.nytimes.com/interactive/2017/08/08/upshot/what-is-your-opposite-job.html into Neo4j
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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