Skip to content

dmontag/neo4j-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neo4j Import Tool

Building

./build.sh

Running

./run.sh <new store dir> <nodes csv> <relationships csv>

Input file format

Plain CSV with a leading header line. The header line supports special annotations for property types and indexing.

Note: values with commas and/or quoted values are NOT supported right not!

The node format:

id[,[indexname|]propertyname[@type]]*

The relationship format:

from,to,type[,[indexname|]propertyname[@type]]*

Examples

Here’s a nodes input file for nodes with two properties, the first of which is indexed in the “users” index, and the
second of which is a long number:

id,users|username,age@long
1,Dave,27
2,Mike,21

And here’s a file connecting these two users, with a timestamp on the relationship:

from,to,type,since@long
1,2,KNOWS,13242352355

Sparse property values are also supported:

id,firstname,make,year
1,Dave,,
2,,Honda,2004

from,to,type
1,2,OWNS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published