Skip to content

Instantly share code, notes, and snippets.

@cj2001
Created November 2, 2021 17:47
Show Gist options
  • Save cj2001/7c04b5b8636bd35f985554978b5603ef to your computer and use it in GitHub Desktop.
Save cj2001/7c04b5b8636bd35f985554978b5603ef to your computer and use it in GitHub Desktop.
Load the CORA node list
// Load node list
LOAD CSV WITH HEADERS FROM 'https://raw.githubusercontent.com/cj2001/pydata2021/main/notebooks/data/cora_nodes.csv' AS line
WITH line
MERGE (p:Paper {id: line.id})
ON CREATE SET p.subject = line.subject, p.features = line.features
RETURN COUNT(*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment