BTW if you need your nodes to have multiple labels each, I'd suggest you to
prepare a simple file (not even .csv, just 2 columns) beforehands:
$ cat node_labels.txt
1 :LabelA:LabelN:LabelV
2 :LabelD:LabelV:LabelX:LabelZ
...
9999 :LabelF:LabelJ:LabelN:LabelX:LabelZ
$
Then import all nodes with a single label *Skewer* as suggested above and
import relationships too.
As soon as all your nodes are already inside Neo4j database, you can write
a simple bash script which reads your node_labels.txt in a loop line by
line, splits each line inside 2 shell variables: *my_node_id* and *labels *
and just issues a shell command for each line, like this (untested):
neo4j-shell -c "MATCH (n:Skewer \{my_node_id: $my_node_id \}) SET n $labels
;"
this will do the job in some finite (not too long) time.
WBR,
Andrii
--
You received this message because you are subscribed to the Google Groups
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.