我一直在将导入csv文件的neo4j文档转到数据库,我对CSV行文件中有未知数量的项目提出了疑问。
例如,这是微不足道的:
"1","john","1986"
..
..
"n","peter","1979"
如果我不知道它的大小,我如何导入网络?
例如:
"1","master","1999"
"2","slave1","2000"
另一行只包含未知数量的slaves
:
"1","slave1","1999"
"2","slave2","2000"
"3","slave3","2101"
...
"n","slave","2301
另一种排列可以是master
n
slaves
或两个masters
。
如果没有明确的结构,如何动态导入CSV中的数据?
示例文档:
http://neo4j.com/docs/stable/cypherdoc-importing-csv-files-with-cypher.html