将 LUBM 大学数据加载到 Neo4j

Load LUBM University data to Neo4j

我正在尝试将 LUBM 数据集上传到 Neo4j 服务器。我浏览了 neo4j 教程,有一个叫做 'batch import' 的东西。要使用它,我应该有两个 CSV 文件。

  1. Nodes.CSV
  2. Relations.CSV

问题是大学数据集中有来自多种类型(大学、系、教授)的节点。所以我认为我不能使用单个 nodes.CSV 文件来做到这一点。我认为以前应该有人这样做过。如果有人能帮我加载 LUBM 数据就太好了。

LUBM - 理海大学基准

每个 type/label 需要多个 .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 .

neo4j documentation

也许你可以分享一个link到原始数据集。一般来说,对于批量导入,有全面的文档(包括示例)可用: