dgraph-io / dgraph

The high-performance database for modern applications
https://dgraph.io
Other
20.4k stars 1.5k forks source link

Is there any convenient way to import existing data from Neo4j to dgraph ? #4083

Closed protheusfr closed 5 years ago

protheusfr commented 5 years ago

After some basic testing, I would to import my existing Neo4j (3.3.6-enterprise) data to dgraph to go further.

I understand dgraph can import RDF n-quads data but Neo4j can't export in this format... Any experience on the subject here ?

MichelDiz commented 5 years ago

Not sure about this in Neo4j, it certainly can export to JSON or CSV.

Loading CSV in Dgraph https://docs.dgraph.io/howto/#loading-csv-data Loading JSON in Dgraph is easy. You can use either a standard client or bulkloader to import JSONs.

campoy commented 5 years ago

You can export from Neo4j to CSV following this article:

https://neo4j.com/blog/export-csv-from-neo4j-curl-cypher-jq/

Then you can import all the CSV data into Dgraph following this article:

https://docs.dgraph.io/howto/#loading-csv-data

Notice that you could avoid the intermediary step of going to CSV by simply exporting/importing JSON - but some modifications might be necessary.

protheusfr commented 5 years ago

Thank you both, will try and check if a more automated way isn't possible.

sleto-it commented 4 years ago

Hi,

In addition to the article mentioned in a previous comment, also check the APOC Export to CSV and Export to JSON