load grap content from http://onodo.org visualizations into Neo4j using the apoc procedure library
call apoc.load.json("https://onodo.org/api/visualizations/21/nodes/") yield value | |
create (n:Person) set n+=value | |
with count(*) as nodes | |
call apoc.load.json("https://onodo.org/api/visualizations/21/relations/") yield value | |
match (a:Person {id:value.source_id}) | |
match (b:Person {id:value.target_id}) | |
call apoc.create.relationship(a,value.relation_type,{},b) yield rel | |
return nodes, count(*) as relationships |
This comment has been minimized.
This comment has been minimized.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.