Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I extract raw data from the neo4j examples?

Tags:

neo4j

The neo4j example data does not work in the most recent version 2.1.2 of neo4j as documented here and here. They are built for 1.9 and apparently can only be upgraded to 2.0, not 2.1. Is there a way to extract the raw data as a csv or cypher file (with a bunch of CREATE statements) from either the tarballs (which contain a graph.db, which I do not understand) or the associated github repositories (which I also do not understand)?

like image 904
user3243135 Avatar asked Dec 01 '25 02:12

user3243135


1 Answers

It's up to us to update the datasets, thanks for pointing it out, I think we'll also put them into versioned subdirectories, so it is easier to see which version they are in.

In general for small enough datasets, you can use the neo4j-shell and the "dump" command to generate cypher statements.

Also in the neo4j browser you can actually download the query results as CSV.

I also wrote a set of helper tools for the neo4j shell that allows you to export and import data as csv, graphml and other formats.

like image 112
Michael Hunger Avatar answered Dec 04 '25 02:12

Michael Hunger



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!