Import RDF (XML or Turtle) into Neo4j

前端 未结 3 1954
天涯浪人
天涯浪人 2020-12-15 14:27

i downloaded the Database dump of Freebase. The format of the file is rdf turtle. I need to get all the data into the neo4j database.

I already wrote an importer wit

3条回答
  •  伪装坚强ぢ
    2020-12-15 15:13

    There is a plugin that allows you to import RDF-Data into Neo4j. You simply put the semantics.liteOntoImport.jar-File into your plugin folder and in Neo4j command line you call:

    CALL semantics.liteOntoImport('file:///filename.owl','RDF/XML')
    

    Therefore your file should be in the import directory of Neo4j. If it is not you should enter the full path.

    EDIT

    Same procedure works for .xml and .ttl files, just change the type of the file in the command line (second argument) e.g. 'TURTLE'.

提交回复
热议问题