cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Migration from Neo4j to Relational DB?

I am curious if there are tools to migrate/populate a relational database from Neo4j? I have seen numerous articles on migrating from a RDBMS to Neo4j, but not the other way around. Looking to use the relational database for reporting.

Thanks.

3 REPLIES 3

You can export from CYPHER to CSV e.g. with APOC or by programmatically executing statements and dumping them.

You can also write a small script in any programming language and do the fetch from neo + write to RDBMS there.

You might also be able to use an ETL System like Kettle or Talend to do this.

For Kettle you can use the Neo4j plugins (get them at http://neo4j.kettle.be).
Take a look at the plugin examples for an exporting in export-to-xls:
https://github.com/neo4j-examples/kettle-plugin-examples
Instead of the Excel Output step you can write to the relational database of your choice.

clem
Graph Steward

I know this is gross.... but is there a way to export the nice and clean many-to-many relationships of a Graph DB into a Relational DB with a Join Table, where the Join Table would have the pair of primary keys to map one type of node to another?

(I imagine primary keys would need to be made...)

This gets more gross the more I think about it...