Skip to content

Instantly share code, notes, and snippets.

@jexp
Last active August 23, 2016 16:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jexp/f1b6b514515d9a539f423b0bc0ce2713 to your computer and use it in GitHub Desktop.
Save jexp/f1b6b514515d9a539f423b0bc0ce2713 to your computer and use it in GitHub Desktop.
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
Copy link
Author

jexp commented Aug 21, 2016

load_onodo_graph

@jexp
Copy link
Author

jexp commented Aug 21, 2016

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