Dumps huge Graphson's into CSV files which can be fed into Neo4j Batch importer.
- Json Parsing is done via Streaming so it can handle huge Graphsons
- Make sure you are using Java 7
mvn package
mvn assembly:single
<path_to_graphson>
: Path tographson.json
<output_folder>
: Folder wherenodes.csv
andrelationships.csv
will be generatednodeProperty
: Stands for the property names of the nodes in the graph i.e:age
type
: Stands for the type of a node property. i.e: string, int..
java -server -Xmx4G -jar target/BatchTools-1.0-SNAPSHOT-jar-with-dependencies.jar
json2csv <path_to_graphson> <output_folder> nodeProperty1:type,nodeProperty2:type...
- Get Gremlin (Gremlin 2.4.0)
- run
bin/gremlin.sh
In the Gremlin shell do:
g = new Neo4jGraph('../path_to_neo4j/graph.db');
g.saveGraphSON('..output_path/jsongraph.json');
The files generated by this tool can be fed into: