我想在 JSON 文件中导出 Neo4j 图形数据库。
这是 Neo4j Web UI 版本中的导出 JSON 按钮,如下图所示。
但在 Neo4j shell 中执行相同任务的等效命令是什么。
谢谢
最佳答案
浏览器导出的 json
正是发送到 transactional cypher endpoint 的内容.这不能通过 neo4j-shell
直接访问,但您可以使用任何命令行 http
客户端,如 cURL
或 httpie
.
对于 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/