简体   繁体   English

ArangoDB - 如何将neo4j 数据库导出导入ArangoDB

[英]ArangoDB - how to import neo4j database export into ArangoDB

Are there any utilities to import database from Neo4j into ArangoDB?是否有任何实用程序可以将数据库从 Neo4j 导入 ArangoDB? arangoimp utility expects the data to be in certain format for edges and vertices than what is exported by Neo4j. arangoimp实用程序希望边和顶点的数据采用某种格式,而不是 Neo4j 导出的格式。

Thanks!谢谢!

Note: This is not an answer per se, but a comment wouldn't allow me to structure the information I gathered in a readable way.注意:这本身不是答案,但评论不允许我以可读的方式组织我收集的信息。

Resources online seem to be scarce w/r to the transition from neo4j to arangodb.从 neo4j 到 arangodb 的过渡,在线资源似乎稀缺。

One possible way is to combine APOC ( https://github.com/neo4j-contrib/neo4j-apoc-procedures ) and neo4j-shell-tools ( https://github.com/jexp/neo4j-shell-tools )一种可能的方法是结合 APOC ( https://github.com/neo4j-contrib/neo4j-apoc-procedures ) 和 neo4j-shell-tools ( https://github.com/jexp/neo4j-shell-tools )

  1. Use apoc to create a cypher export file for the database (see https://neo4j.com/developer/kb/export-sub-graph-to-cypher-and-import/ )使用 apoc 为数据库创建密码导出文件(参见https://neo4j.com/developer/kb/export-sub-graph-to-cypher-and-import/
  2. Use the neo4j-shell-tool cypher import with the -o switch -- this should generate csv-files使用带有-o开关的 neo4j-shell-tool 密码导入——这应该生成 csv 文件
  3. Analyse the csv-files,分析csv文件,
    1. massage them with csvtool ORcsvtool按摩它们或
    2. create json-data with one of the numerous csv2json converters available (npm, ...) and massage these files with jq使用众多可用的 csv2json 转换器(npm,...)之一创建 json-data 并使用jq这些文件
  4. Feed the files to arangoimp, repeat 3 if necessary将文件提供给 arangoimp,如有必要,请重复 3

There is also a graphml to json converter ( https://github.com/uskudnik/GraphGL/blob/master/examples/graphml-to-json.py ) available, so that you could use the afforementioned neo4j-shell-tools to export to graphml, convert this representation to json and massage these files to the necessary format.还有一个graphml到json转换器( https://github.com/uskudnik/GraphGL/blob/master/examples/graphml-to-json.py )可用,这样你就可以使用上述neo4j-shell-tools导出到 graphml,将此表示转换为 json 并将这些文件转换为必要的格式。

I'm sorry that I can't be of more help, but maybe these thoughts get you started.很抱歉我不能提供更多帮助,但也许这些想法会让你开始。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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