How do I extract raw data from the neo4j examples?

丶灬走出姿态 提交于 2019-12-12 15:54:54

问题


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)?


回答1:


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.



来源:https://stackoverflow.com/questions/24376544/how-do-i-extract-raw-data-from-the-neo4j-examples

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!