Convert Neo4j DB to XML?

前端 未结 4 507
粉色の甜心
粉色の甜心 2020-12-28 07:54

Can I convert Neo4J Database files to XML?

4条回答
  •  伪装坚强ぢ
    2020-12-28 08:49

    With Blueprints, simply do:

    Graph graph = new Neo4jGraph("/tmp/mygraph");
    GraphMLWriter.outputGraph(graph, new FileOutputStream("mygraph.xml"));
    

    Or, with Gremlin (which does the same thing in the back):

    g = new Neo4jGraph('/tmp/mygraph');
    g.saveGraphML('mygraph.xml');
    

    Finally, to the constructor for Neo4jGraph, you can also pass in a GraphDatabaseService instance.

提交回复
热议问题