|
From: Jeremy J C. <jj...@sy...> - 2016-02-16 15:40:11
|
> On Feb 15, 2016, at 10:42 PM, Joakim Soderberg <joa...@bl...> wrote: > > Has anyone succeeded to load a folder of .nt files? I can load one by one: > > LOAD <file:///mydata/dbpedia2015/core/amsterdammuseum_links.nt <file:///mydata/dbpedia2015/core/amsterdammuseum_links.nt>> INTO GRAPH <http://dbpedia2015 <http://dbpedia2015/>> > > But it doesn’t like a folder name > LOAD <file:///mydata/dbpedia2015/core/ <file:///mydata/dbpedia2015/core/>> INTO GRAPH <http://dbpedia2015 <http://dbpedia2015/>> That is correct. If you look at the spec for LOAD: https://www.w3.org/TR/sparql11-update/#load <https://www.w3.org/TR/sparql11-update/#load> then it takes an IRI as where you are loading from, and the concept of folder is simply not applicable. A few schemes such as file: and ftp: may have such a notion, but the operation you are looking for is local to your machine on the client and you should probably implement it yourself. In particular, do you want each file loaded into a different graph or the same graph: probably best for you to make up your own mind. I have had success loading trig files into multiple graphs, using a simple POST to the endpoint. Jeremy |