Hi Andy,

I am running Fuseki as a service (i.e. with "fuseki start"), without any 
modifications to the configuration. I have added a dataset with multiple named 
graphs through the web interface, and I tried running the queries through the 
web interface as well, although I am later planning to query the SPARQL 
endpoint via Python.


When I try the following minimal query in <http://www.sparql.org/sparql.html>, 
it also doesn't work:


SELECT ?s ?p ?o
FROM <http://id.loc.gov/vocabulary/iso639-2/deu.rdf>
WHERE { ?s ?p ?o }

Do I understand you correctly that this should work? If yes, any idea what I 
might be doing wrong? And how would I tell my own server to allow queries like 
that?

Thanks for your help,
Andreas


________________________________
Von: Andy Seaborne <[email protected]>
Gesendet: Mittwoch, 13. Februar 2019 11:20:16
An: [email protected]
Betreff: Re: AW: Using FROM on external RDF files in Fuseki

Fuseki does support loading FROM URLs from the web in the "main" version
of Fuseki.  If the service is backed by a dataset it will use the graphs
from the dataset but there is the "general" query service as well.

It is --general in Fuseki.main and that is what
   http://www.sparql.org/sparql.html
is using.

Andreas - were you looking for it in the webapp version?

     Andy

On 12/02/2019 19:52, Charles Abela wrote:
> Hehe
>
> On 12 Feb 2019 20:14, "Walker, Andreas" <
> [email protected]> wrote:
>
> Hi ajs6f,
>
> yes, what I am aiming for is what the FROM statement would do if it could
> target graphs outside my own dataset.
>
> The only thing I have come up with so far - as an idea, not tested - is
> loading the RDF file into a named graph, querying it and then dropping it
> again. What I am asking is whether there is a simpler way of instructing
> Fuseki to temporarily load that graph just for the purposes of one query.
>
> Best,
> Andreas
> ________________________________
> Von: ajs6f <[email protected]>
> Gesendet: Dienstag, 12. Februar 2019 19:06:36
> An: [email protected]
> Betreff: Re: Using FROM on external RDF files in Fuseki
>
> I'm not quite sure what you are asking about here: Do you mean to query
> both a new graph and the main dataset at the same time, and to do that
> without using anything other than SPARQL, and without loading the new graph
> into your dataset?
>
>
> ajs6f
>
>> On Feb 12, 2019, at 10:58 AM, Walker, Andreas <
> [email protected]> wrote:
>>
>> Dear all,
>>
>>
>> after trying for a while, I found out that Fuseki does not temporarily
> add external RDF files to the default graph when they are included through
> a FROM statement in the SPARQL query, which was also confirmed on
> StackExchange [1].
>>
>>
>> Since this option isn't available, is there a good way of querying an
> external RDF file without permanently adding it to the graph by loading it?
> For example, my own graph might contain a link to an RDF file like [2], and
> I want to query that file from my application (through Fuseki), but not
> store it in my own triple store.
>>
>>
>> Any help and/or advice would be welcome,
>>
>>
>> Andreas
>>
>>
>> [1]
> https://stackoverflow.com/questions/36532737/sparql-queries-with-from-clause-in-fuseki2
>>
>> and
> https://stackoverflow.com/questions/54358099/fuseki-sparql-service-not-able-to-refer-to-external-rdf-resources
>>
>> [2] http://id.loc.gov/vocabulary/iso639-2/deu.rdf
>> <https://s>
>

Reply via email to