简体   繁体   中英

ArangoDB 2 GraphML

Is there a way to export ArangoDB-Graphs to GraphML?

I'm accessing the database using pyArango. arangoexport seems to focus on JSON(L) only.

You can try converting your ArangoDB graph to a NetworkX graph and then use the Networkx API for the conversion. You can convert your ArangoDB graph to a networkx graph using the networkx adapter. You need to describe the vertex and edge collections of your ArangoDB graph using a dictionary. See the section "Connect ArangoDB and NetworkX" in: https://github.com/arangoml/networkx-adapter/blob/master/examples/ArangoDB_NetworkxAdapter.ipynb for details. Once you have the networkx graph, covert it to graphML using: https://networkx.org/documentation/stable/reference/readwrite/generated/networkx.readwrite.graphml.write_graphml.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM