csv - 将 LUBM 大学数据加载到 Neo4j

标签 csv neo4j rdf graph-databases lubm

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

  1. 节点.CSV
  2. 关系.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 .

neo4j documentation

关于csv - 将 LUBM 大学数据加载到 Neo4j,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32206033/

相关文章:

python-3.x - Python CSV 搜索列并使用 for 循环将值替换为另一个列

csv - 惰性 CSV 过滤/解析 - 提高性能

neo4j - 仅获取 Neo4j 中的特定关系类型

Neo4J 第一步 : how to code the most basic operations

javascript - Neo4j session .catch 错误 : structure (127, [[对象对象]])

java - 如何将 RDF 转换为字符串

java - 如何验证 OWLDataRange 对象是否包含指定值?

csv - 类型错误 : string from deserializer instead of int when load csv to table

php - 如何从我的 PHP 服务器生成和导出大 CSV 文件?

xml - 为什么这个 raptor 代码解析 NTriples 而不是 RDFXML?