Created
January 11, 2022 23:57
-
-
Save jalakoo/1bd2d9aedd65b4ea6ec08b08b185243c to your computer and use it in GitHub Desktop.
discoveraurafree - week 3 - load data
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
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