neosemantics icon indicating copy to clipboard operation
neosemantics copied to clipboard

request n10s.onto.import.fetch require a relative path and relative to the Neo4j import directory

Open Dcanzano opened this issue 4 years ago • 1 comments

Would like

call n10s.onto.import.fetch() and its first arguement which is either a http:// reference of file:/// and when using file:/// that it use a relative path and it be relative to dbms.directories.import per the conf/neo4j.conf. This is what cypher LOAD CSV does and neosemantics should behave in the same manner. Today file:/// must be an absolute path reference, ie. file:///home/neo4j/neo4j-enterprise-4.2.1/import/data.rdf when ideally i should be able to file:///data.rdf

Dcanzano avatar Feb 17 '21 13:02 Dcanzano

Hi @Dcanzano, I am speaking as a neosemantics user, so @jbarrasa should provide more information since he is the expert on this.

I think the use of URIs for data input comes from the semantic web field, in which everything has an unique identifier, and this identifier is an URI. I am not very sure if it would be possible to write a relative URI for a file according to the standards (some discussions in this stackoverflow thread). This kind of schema should work for different protocols, like file, http, bolt... and relative paths do not have sense in other protocols beyond file.

In my opinion, I'm comfortable with the current implementation because you can upload any resource from anywhere from your computer or even from the internet, and putting files into the import folder is not necessary. But lets wait for @jbarrasa opinion.

Regards.

fanavarro avatar Feb 18 '21 11:02 fanavarro