Skip to content

Instantly share code, notes, and snippets.

@jalakoo
Created January 11, 2022 23:57
Show Gist options
  • Save jalakoo/1bd2d9aedd65b4ea6ec08b08b185243c to your computer and use it in GitHub Desktop.
Save jalakoo/1bd2d9aedd65b4ea6ec08b08b185243c to your computer and use it in GitHub Desktop.
discoveraurafree - week 3 - load data
LOAD CSV WITH HEADERS FROM "https://raw.githubusercontent.com/zq99/pgn2data/master/samples/caruana_carlsen_2018_moves.csv" AS row
MERGE (p:Position {fen:row.fen})
CREATE (m:Move {move:row.move, colour:row.color, no:tointeger(row.move_no_pair), piece:row.piece})
CREATE (m)-[:RESULTS_IN]->(p);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment