在json文件中导出neo4j数据库 [英] Export neo4j database in json file
问题描述
我要在JSON文件中导出Neo4j图形数据库。
I want to export Neo4j graph database in JSON file.
这是Neo4j Web UI版本中的导出JSON按钮,如下图所示。
This is a Export JSON button in Neo4j web UI version as shown in attached image below.
但
感谢
推荐答案
浏览器导出的 json
正是发送到事务cypher端点。这不能通过 neo4j-shell
直接访问,但您可以使用任何命令行 http
客户端像 cURL
或 httpie
。
The json
exported by the browser is exactly what is getting sent to the transactional cypher endpoint. This is not directly accessible via neo4j-shell
, but you might use any command line http
client like cURL
or httpie
.
对于httpie, :
For httpie it's as simple as:
http -b -j localhost:7474/db/data/transaction/commit statements:='[{"statement": "<your cypher goes here>", "parameters": { cypher parameters go here as map }]'
$ b b
但是,扩展 neo4j-shell
很简单,参见Michael的 neo4j-shell-tools
。
However it is simple to extend neo4j-shell
, see Michael's neo4j-shell-tools
.
这篇关于在json文件中导出neo4j数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!