Created
February 12, 2015 01:58
-
-
Save davebshow/aeac2fc56e4775c6b600 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
CREATE INDEX ON :Author(id); | |
CREATE INDEX ON :Paper(id); | |
USING PERIODIC COMMIT | |
LOAD CSV FROM "file:///home/davebshow/git/projx/data/opsahl-collaboration/out.opsahl-collaboration" | |
AS line FIELDTERMINATOR " " | |
MERGE (author:Author {id: line[0]}) | |
MERGE (paper:Paper {id: line[1]}) | |
MERGE (author)-[:WROTE]-(paper); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment