Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert Neo4j DB to XML?

Tags:

neo4j

Can I convert Neo4J Database files to XML?

like image 373
unj2 Avatar asked Feb 05 '10 01:02

unj2


1 Answers

I agree, GraphML is the way to go, if you don't have problems with the verbosity of XML. A simple way to do it is to open the Neo4j graph from Gremlin, where GraphML is the default import/export format, something like

peters: ./gremlin.sh

gremlin> $_g := neo4j:open('/tmp/neo4j')
==>neograph[/tmp/neo4j, vertices:2, edges:1]
gremlin> g:save('graphml-export.xml')

As described here

Does that solve your problem?

like image 169
Peter Neubauer Avatar answered Sep 21 '22 02:09

Peter Neubauer