将 Neo4j DB 转换为 XML? [英] Convert Neo4j DB to XML?

查看:49
本文介绍了将 Neo4j DB 转换为 XML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以将 Neo4J 数据库文件转换为 XML 吗?

解决方案

我同意,GraphML 是您要走的路,如果您没有 XML 冗长的问题.一个简单的方法是从 Gremlin 打开 Neo4j 图,其中 GraphML 是默认的导入/导出格式,类似的东西

<前>彼得斯:./gremlin.shgremlin> $_g := neo4j:open('/tmp/neo4j')==>neograph[/tmp/neo4j,顶点:2,边:1]gremlin> g:save('graphml-export.xml')

此处所述

这能解决您的问题吗?

Can I convert Neo4J Database files to XML?

解决方案

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?

这篇关于将 Neo4j DB 转换为 XML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆