ABCDEFGHIJKLMNOPQRS
1
This spreadsheet is an example of an easy, non-programmatic way to load data into Neo4j. Please copy, enhance and redistribute as much as you can.
2
3
Instructions:
4
CREATE a new empty file, import.txt
5
ADD "BEGIN" to the top of the import.txt file
6
COPY ALL OF THE NODE queries TO the import.txt file
7
COPY ALL OF THE RELATIONSHOP queries TO THE SAME import.txt file
8
ADD "COMMIT" to the end of the import.txt filethis commits the transaction
9
MAKE SURE THAT AUTO_INDEXING for neo4j is enabled, set node_auto_indexing=true and node_keys_indexable=id,name,type in conf/neo4j.properties
10
see the manual (http://docs.neo4j.org/chunked/milestone/auto-indexing.html) for more info.
11
THEN EXECUTE THE FOLLOWING COMMAND, making sure that Neo4j is NOT running:
12
cat import.txt | <neo4j directory>/bin/neo4j-shell -config conf/neo4j.properties -path <neo4j directory>/data/graph.db
13
THEN START NEO4J: <neo4j directory>/bin/neo4j start
14
15
ENJOY!
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100