概要
neo4jでsandboxやってみた。
参考にしたページ
写真
sparqlの実行
データの加工
データの投入
LOAD CSV WITH HEADERS FROM "https://gist.github.com/ohisama/20ff770bfda7d9dafbb1fc0e259aeb9f/raw/fe0fe8ca2d69b63432b0723ff2370406c70fe876/node0.csv" AS line
CREATE (:Anime {id:line.id, name:line.name})
LOAD CSV WITH HEADERS FROM "https://gist.github.com/ohisama/20ff770bfda7d9dafbb1fc0e259aeb9f/raw/fe0fe8ca2d69b63432b0723ff2370406c70fe876/node1.csv" AS line
CREATE (:Actor {id:line.id, name:line.name})
LOAD CSV WITH HEADERS FROM "https://gist.github.com/ohisama/20ff770bfda7d9dafbb1fc0e259aeb9f/raw/fe0fe8ca2d69b63432b0723ff2370406c70fe876/relation.csv" AS line
MATCH (x:Anime {id:line.Anime_id}), (y:Actor {id:line.Actor_id})
CREATE (x)-[:ROLE]->(y)
表示
MATCH (n)-[r]->(m)
RETURN n, r, m
LIMIT 100
以上。