Data Analytics with Neo4j -
Data Analytics with Neo4j -
i want integrate neo4j graph database on rails app graphlab data analytics
. possible integrate graphlab straight without explicitly taking out database snapshots?
are there other tools can integrated neo4j same?
if not possible, concern neo4j doesn't allow export info in csv format. while graphlab allows csv imports.
if graph little plenty fit ram, import in few steps:
use neo4j-shell-tools export neo4j graphml. use networkx import graphml networkx graph object (let's phone callg
). use loop or list comprehension add together vertices , edges networkx graph graphlab.sgraph
(let's phone call sg
): import graphlab sg = graphlab.sgraph() sg = sg.add_vertices([graphlab.vertex(i) in g.nodes()]) sg = sg.add_edges([graphlab.edge(*edge) border in g.edges()])
you utilize py2neo (as described in comments above query graph) instead of writing csv, straight build sgraph
queries, either using add_vertices , add_edges, or building vertex/edge sframes , using build graph. might faster solution production (with no intermediate disk representation) , may help around memory size limitation if graph larger fit in ram.
neo4j
Comments
Post a Comment