Dgraph: Is there any convenient way to import existing data from Neo4j to dgraph ?

Created on 27 Sep 2019  路  4Comments  路  Source: dgraph-io/dgraph

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 ?

kinquestion

All 4 comments

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.

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.

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

Hi,

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bytefish picture bytefish  路  4Comments

ShawnMilo picture ShawnMilo  路  4Comments

andrewsmedina picture andrewsmedina  路  4Comments

armaneous picture armaneous  路  3Comments

jerodsanto picture jerodsanto  路  3Comments