Issue with Loading RDF File into Neo4j Desktop

Hello Neo4j Community,

I am experiencing an issue when trying to load an RDF file into Neo4j Desktop on my Windows machine. I have followed the standard procedures for importing RDF data but have been encountering errors that prevent the file from being recognized by Neo4j. I have placed my RDF file, ga_geology_v1-0.nt , in the default import directory as follows:

C:\Users\VIL032.Neo4jDesktop\relate-data\dbmss\dbms-704ca40a-726f-4b70-b1bf-17d4c0d87e51\import

However, when I run the following Cypher command in the Neo4j Desktop console:

CALL n10s.rdf.import.fetch('file:///ga_geology_v1-0.nt', 'N-Triples');

"ga_geology_v1-0.nt (The system cannot find the file specified)"

Could someone please assist me in troubleshooting this issue? I am not sure if there's a step I might be missing or if there's a configuration setting that needs to be adjusted for my specific environment.

Thank you for your time and help!

Hi Sandra,
n10s does not use the import directory. You have to provide an absolute path to the location of your RDF file.

CALL n10s.rdf.import.fetch('file:///...<full path>.../ga_geology_v1-0.nt', 'N-Triples');

Hope this helps,

JB.

1 Like

Thanks a lot for the support Jesus that worked out!!

1 Like


Another related question: why do I not see the graph icon in the Browser? Attached is what I see.

Well, what you see there is the summary of the import process (number of triples parsed/imported, namespaces detected, etc) and not the imported graph.

Now the data is stored in neo4j and you can start querying it with cypher or exploring it visually.
If you're not familiar with cypher, one simple way of starting to interact with the data is clicking on any of the elements on the left bar (node labels, relationship types, etc) and seeing the nodes/rels returned.