Can't import a RDF file retrieved via TRKG API to Neo4j using the semantics.importRDF stored proc...

...edure.

How can I import a RDF file retrieved via TRKG API to Neo4j using the semantics.importRDF stored procedure?

After retrieving a rdf file via TRKG API and placing the file in the import directory of Neo4j which I built on my laptop PC, I tried to import the file to the Neo4j executing the following commands, but somehow I can't complete importing it successfully, even though no error messages appear.

image

image

Best Answer

  • faruk.cay
    faruk.cay LSEG
    Answer ✓

    It appears that the file path you have used in semantics.importRDF call is incorrect. On Linux systems or similar systems including Mac your call should look like

    CALL semantics.importRDF("file:///home/fcay/data/CORE_ENTITIES_value_chains.nt","N-Triples",{})

    On Windows systems it should look like

    CALL semantics.importRDF("file:////C:/Users/u6067304/Documents/content sets/CORE_ENTITIES_value_chains.nt","N-Triples", {})

    Please make sure that you are providing the absolute path to the n-triple file and you are using the correct number of slashes right after file: in the call. Please let us know if this resolves the problem you are seeing.

    Best wishes,

    Faruk

Answers