neo4jでsandbox
概要
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
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
以上。
Author And Source
この問題について(neo4jでsandbox), 我々は、より多くの情報をここで見つけました https://qiita.com/ohisama@github/items/df1478cecc1f2cd648a1著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .