this example in the neo4j docs显示多组节点文件,但只显示一组关系文件。
neo4j_home$ ./bin/neo4j-import --into path_to_target_directory --nodes "movies4-header.csv,movies4-part1.csv,movies4-part2.csv" --nodes "actors4-header.csv,actors4-part1.csv,actors4-part2.csv" --relationships "roles4-header.csv,roles4-part1.csv,roles4-part2.csv"
使用neo4j-import将多个关系文件导入neo4j的语法是什么?
我可以想象将示例扩展为也具有DIRECTED_IN
关系类型,该类型将在名为 directed-in4.csv
然后,我可以想象对neo4j-import
的调用看起来像这样:
neo4j_home$ ./bin/neo4j-import --into path_to_target_directory --nodes "movies4-header.csv,movies4-part1.csv,movies4-part2.csv" --nodes "actors4-header.csv,actors4-part1.csv,actors4-part2.csv" --relationships "roles4-header.csv,roles4-part1.csv,roles4-part2.csv" --relationships directed-in4.csv
最后加上--relationships directed-in4.csv
。这是正确的方法吗?
答案 0 :(得分:0)
似乎指定多个关系的确如下:
neo4j_home $ ./bin/neo4j-import --into path_to_target_directory --nodes " movies4-header.csv,movies4-part1.csv,movies4-part2.csv" --nodes " actors4-header.csv,actors4-part1.csv,actors4-part2.csv" --relationships" roles4-header.csv,roles4-part1.csv,roles4-part2.csv" --relationships directed-in4.csv
附加--relationships
参数