Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added readme

  • Loading branch information...
commit 8ce794e5694ada347fe867eb55be4ecf65557229 1 parent ea7fd7b
David Montag authored January 12, 2012

Showing 1 changed file with 54 additions and 1 deletion. Show diff stats Hide diff stats

  1. 55  README.textile
55  README.textile
Source Rendered
... ...
@@ -1,4 +1,57 @@
1 1
 h1. Neo4j Import Tool
2 2
 
3  
-TBD
  3
+h2. Building
4 4
 
  5
+<pre>
  6
+./build.sh
  7
+</pre>
  8
+
  9
+h2. Running
  10
+
  11
+<pre>
  12
+./run.sh <new store dir> <nodes csv> <relationships csv>
  13
+</pre>
  14
+
  15
+h2. Input file format
  16
+
  17
+Plain CSV with a leading header line. The header line supports special annotations for property types and indexing.
  18
+
  19
+<b>Note:</b> values with commas and/or quoted values are NOT supported right not!
  20
+
  21
+The node format:
  22
+<pre>
  23
+id[,[indexname|]propertyname[@type]]*
  24
+</pre>
  25
+
  26
+The relationship format:
  27
+<pre>
  28
+from,to,type[,[indexname|]propertyname[@type]]*
  29
+</pre>
  30
+
  31
+h2. Examples
  32
+
  33
+Here's a nodes input file for nodes with two properties, the first of which is indexed in the "users" index, and the
  34
+second of which is a long number:
  35
+<pre>
  36
+id,users|username,age@long
  37
+1,Dave,27
  38
+2,Mike,21
  39
+</pre>
  40
+
  41
+And here's a file connecting these two users, with a timestamp on the relationship:
  42
+<pre>
  43
+from,to,type,since@long
  44
+1,2,KNOWS,13242352355
  45
+</pre>
  46
+
  47
+Sparse property values are also supported:
  48
+<pre>
  49
+id,firstname,make,year
  50
+1,Dave,,
  51
+2,,Honda,2004
  52
+</pre>
  53
+
  54
+<pre>
  55
+from,to,type
  56
+1,2,OWNS
  57
+</pre>

0 notes on commit 8ce794e

Please sign in to comment.
Something went wrong with that request. Please try again.