我正在尝试将 LUBM 数据集上传到 Neo4j 服务器。我浏览了 neo4j 教程,有一个叫做“批量导入”的东西。要使用它,我应该有两个 CSV 文件。
- 节点.CSV
- 关系.CSV
问题在于大学数据集中存在多种类型的节点(大学、系、教授)。所以我认为我无法使用单个节点.CSV 文件来做到这一点。我认为以前应该有人这样做过。如果有人可以帮助我加载 LUBM 数据,那就太好了。
LUBM - 理海大学基准
最佳答案
每个类型/标签需要多个 .csv
文件,并确保符合以下规范:
CSV 文件格式
The CSV file to use with LOAD CSV must have the following characteristics:
- the character encoding is UTF-8;
- the end line termination is system dependent, e.g., it is \n on unix or \r\n on windows;
- the default field terminator is ,;
- the field terminator character can be change by using the option FIELDTERMINATOR available in the LOAD CSV command;
- quoted strings are allowed in the CSV file and the quotes are dropped when reading the data;
- the character for string quotation is double quote ";
- the escape character is .
关于csv - 将 LUBM 大学数据加载到 Neo4j,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32206033/