How to import .rdf file in Neo4j database?

亡梦爱人 提交于 2019-12-08 04:57:03

问题


I have a .rdf file which I was used for Dgraph in order to import the data and the subsequently queries in order to get the relations in the Dgraph Ratel UI.

Now I need to include in my web application for which Dgraph doesn't have support (link). Hence I started looking for Neo4j.

Can anyone please help out how to import .rdf file in Neo4j if not what's the workaround. Thanks.


回答1:


Labeled property graph (LPG) and RDF graph are different graph data models, see:

  • RDF Triple Stores vs. Labeled Property Graphs: What's the Difference? by Jesus Barrasa
  • Reification is red herring by Bob DuCharme

Neo4j supports LPG data model only. However, there is the neosemantics Neo4j plugin.
After installation, say:

CALL semantics.importRDF(<RDF_file_path>, <RDF_serialization_format>)

The mapping from RDF to LPG is described here.


I'd suggest you to use a proper triplestore for RDF data.



来源:https://stackoverflow.com/questions/51837979/how-to-import-rdf-file-in-neo4j-database

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!