将 Neo4j 变成一个三元组 [英] Turn Neo4j into a triplestore

查看:141
本文介绍了将 Neo4j 变成一个三元组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 Neo4j 中加载一个 RDF 文件并将其转换为三元组,但我不知道是否可以使用 Neo4j 的 spqrl-plugin 执行此操作.我一直在 https://github.com/neo4j-contrib/sparql-插件,但是当我尝试打开文档时出现 404 错误.

I want to load a RDF file in Neo4j and turn this into a triplestore but I don't know if I can do this with the spqrl-plugin for Neo4j. I have been looking documentation for this plugin in https://github.com/neo4j-contrib/sparql-plugin, but I get 404 error when I try to open the documentation.

问题是,我是否需要开发一个程序来解析 RDF 文件并将元组以我想要的海龟格式存储在 Neo4j 中,或者 sparql 端点中有一些功能可以让我轻松执行此任务?

The thing is, Do I need to develop a program which parse a RDF file and store the tuples in Neo4j with the turtle format I desire, or there is some feature in the sparql-endpoint which allow me to perform this task easily?

推荐答案

您可以轻松地将 CSV 直接导入 Neo4j.请参阅 http://neo4j.org/develop/import

You can easily import CSV into Neo4j directly. See http://neo4j.org/develop/import

也有几个人将RDF文件导入Neo4j.http://neo4j.org/develop/linked_data

There are also several people who imported RDF files into Neo4j. http://neo4j.org/develop/linked_data

重要的是.首先开发一个 godo 属性图模型,您要将数据导入到该模型中.尝试在属性图上强制使用 RDF 模型并尝试查询它,您将不会高兴.

The important thing is. Develop a godo property graph model first, that you want to import your data into. You won't be happy trying to force the RDF model on a property graph and trying to query it.

Wes Freeman 还介绍了将 freebase 导入 Neo4j

There is also a presentation from Wes Freeman about importing freebase into Neo4j

如果你愿意,你可以联系 http://graphalchemist.com,他们也有很多经验将 RDF 导入 Neo4j.

And if you want to you can reach out to http://graphalchemist.com who have also a lot of experience importing RDF into Neo4j.

但总的来说,这不是火箭科学:

But in general it is not rocket science:

  1. 良好的图模型
  2. rdf 解析器
  3. 快速插入(例如批量插入器)
  4. 放松

这篇关于将 Neo4j 变成一个三元组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆