Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@jexp

This comment has been minimized.

Owner

jexp commented Aug 21, 2016

load_onodo_graph

@jexp

This comment has been minimized.

Owner

jexp commented Aug 21, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment