Skip to content

Instantly share code, notes, and snippets.

@langsdlc
Created July 19, 2016 19:49
Show Gist options
  • Save langsdlc/89f482d26fcc736a87e1efe032ceeea9 to your computer and use it in GitHub Desktop.
Save langsdlc/89f482d26fcc736a87e1efe032ceeea9 to your computer and use it in GitHub Desktop.
LOAD CSV WITH HEADERS FROM "https://gist.githubusercontent.com/CliffordAnderson/148c63407ce61c2ecabd456f3e1d15b4/raw/fb50b0b1e02e076df0387ccffb343b4acd0dc74a/Test_Network-cleaned-rows.csv" AS csvLine
MATCH (from :Place { name: toInt(csvLine.FromPoint)}),
(to :Place { name: toInt(csvLine.ToPoint)})
MERGE (from)-[:Path
{ distance: toFloat(csvLine.DistanceFt),
entrance: toInt(csvLine.Entrance),
surface: toInt(csvLine.Surface),
path_type: toInt(csvLine.Path_Type),
stairs: toInt(csvLine.Stairs) }
]->(to)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment