json - 在 json 文件中导出 neo4j 数据库

标签 json database neo4j export

我想在 JSON 文件中导出 Neo4j 图形数据库。

这是 Neo4j Web UI 版本中的导出 JSON 按钮,如下图所示。 enter image description here

但在 Neo4j shell 中执行相同任务的等效命令是什么。

谢谢

最佳答案

浏览器导出的 json 正是发送到 transactional cypher endpoint 的内容.这不能通过 neo4j-shell 直接访问,但您可以使用任何命令行 http 客户端,如 cURLhttpie .

对于 httpie 它很简单:

 http -b -j localhost:7474/db/data/transaction/commit statements:='[{"statement": "<your cypher goes here>", "parameters": { cypher parameters go here as map }]'

但是扩展neo4j-shell 很简单,参见Michael 的neo4j-shell-tools .

关于json - 在 json 文件中导出 neo4j 数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24608316/

相关文章:

mysql - 通过 WordPress 设置远程 MySQL 数据库连接时出错 - 可能的解决方案

ruby-on-rails - postgresql 不接受端口 5432 上的 tcp/ip for rails on linux

database - 查找 neo4j 密码查询中所有节点的根节点

java - Neo4j java api : Transactions, 多处理和线程安全

c# - 试图解析 json C#

mysql - 在 iOS 中直接连接到远程 MySQL 数据库

json - jq 使用嵌套数组元素的值排序

java - neo4j 直接访问和通过 OGM 之间的显着性能差异

JQuery 错误 : XML filter is applied to non-XML value (function (E, F) {return new (o.fn.init)(E, F);})

java - 运行应用程序时无法实例化 Activity