You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Sandor Kopacsi <sa...@univie.ac.at> on 2017/02/16 12:08:09 UTC

SPARQL Query from one Fuseki server to another Fuseki server

Dear list-member,

I have two Fuseki servers running on two different machines. In one of 
them there are several named graphs containing a lot of concepts.

I would like to run a query from another Fuseki server to select all (or 
later just some) triplets from this dataset using a query like this:

SELECT *
FROM </URL of the SPARQL endpoint/:3030/ds/query>
WHERE {GRAPH </URI of the graph/>
{?s ?p ?o . }
}

but it provides empty set:

-------------
| s | p | o |
=============
-------------

What is wrong?

Thanks in advance,
Sandor

-- 

Dr. Sandor Kopacsi
IT Software Designer

Vienna University Computer Center


Re: SPARQL Query from one Fuseki server to another Fuseki server

Posted by Osma Suominen <os...@helsinki.fi>.
Sorry I meant SPARQL 1.1 Federated Query spec:
http://www.w3.org/TR/sparql11-federated-query/

-Osma

16.02.2017, 14:12, Osma Suominen kirjoitti:
> Hi Sandor,
>
> You need to do a federated query. See the SPARQL 1.1 Query spec.
> Something like this:
>
> SELECT *
> WHERE {
>   SERVICE <http://other-endpoint/sparql> {
>     GRAPH <http://uri-of-graph> {
>       ?s ?p ?o
>     }
>   }
> }
>
> -Osma
>
> 16.02.2017, 14:08, Sandor Kopacsi kirjoitti:
>> Dear list-member,
>>
>> I have two Fuseki servers running on two different machines. In one of
>> them there are several named graphs containing a lot of concepts.
>>
>> I would like to run a query from another Fuseki server to select all (or
>> later just some) triplets from this dataset using a query like this:
>>
>> SELECT *
>> FROM </URL of the SPARQL endpoint/:3030/ds/query>
>> WHERE {GRAPH </URI of the graph/>
>> {?s ?p ?o . }
>> }
>>
>> but it provides empty set:
>>
>> -------------
>> | s | p | o |
>> =============
>> -------------
>>
>> What is wrong?
>>
>> Thanks in advance,
>> Sandor
>>
>
>


-- 
Osma Suominen
D.Sc. (Tech), Information Systems Specialist
National Library of Finland
P.O. Box 26 (Kaikukatu 4)
00014 HELSINGIN YLIOPISTO
Tel. +358 50 3199529
osma.suominen@helsinki.fi
http://www.nationallibrary.fi

Re: SPARQL Query from one Fuseki server to another Fuseki server

Posted by Sandor Kopacsi <sa...@univie.ac.at>.
Thank you Osma,

It works fine, I only had to replace /sparql with /ds/query.

Best Regards,
Sandor


Am 16.02.2017 um 13:12 schrieb Osma Suominen:
> Hi Sandor,
>
> You need to do a federated query. See the SPARQL 1.1 Query spec. 
> Something like this:
>
> SELECT *
> WHERE {
>   SERVICE <http://other-endpoint/sparql> {
>     GRAPH <http://uri-of-graph> {
>       ?s ?p ?o
>     }
>   }
> }
>
> -Osma
>
> 16.02.2017, 14:08, Sandor Kopacsi kirjoitti:
>> Dear list-member,
>>
>> I have two Fuseki servers running on two different machines. In one of
>> them there are several named graphs containing a lot of concepts.
>>
>> I would like to run a query from another Fuseki server to select all (or
>> later just some) triplets from this dataset using a query like this:
>>
>> SELECT *
>> FROM </URL of the SPARQL endpoint/:3030/ds/query>
>> WHERE {GRAPH </URI of the graph/>
>> {?s ?p ?o . }
>> }
>>
>> but it provides empty set:
>>
>> -------------
>> | s | p | o |
>> =============
>> -------------
>>
>> What is wrong?
>>
>> Thanks in advance,
>> Sandor
>>
>
>

-- 
Dr. Sandor Kopacsi
IT Software Designer

Vienna University Computer Center
Universit�tsstra�e 7 (NIG)
A-1010 Vienna

Phone:  +43-1-4277-14176
Mobile: +43-664-60277-14176


Re: SPARQL Query from one Fuseki server to another Fuseki server

Posted by Osma Suominen <os...@helsinki.fi>.
Hi Sandor,

You need to do a federated query. See the SPARQL 1.1 Query spec. 
Something like this:

SELECT *
WHERE {
   SERVICE <http://other-endpoint/sparql> {
     GRAPH <http://uri-of-graph> {
       ?s ?p ?o
     }
   }
}

-Osma

16.02.2017, 14:08, Sandor Kopacsi kirjoitti:
> Dear list-member,
>
> I have two Fuseki servers running on two different machines. In one of
> them there are several named graphs containing a lot of concepts.
>
> I would like to run a query from another Fuseki server to select all (or
> later just some) triplets from this dataset using a query like this:
>
> SELECT *
> FROM </URL of the SPARQL endpoint/:3030/ds/query>
> WHERE {GRAPH </URI of the graph/>
> {?s ?p ?o . }
> }
>
> but it provides empty set:
>
> -------------
> | s | p | o |
> =============
> -------------
>
> What is wrong?
>
> Thanks in advance,
> Sandor
>


-- 
Osma Suominen
D.Sc. (Tech), Information Systems Specialist
National Library of Finland
P.O. Box 26 (Kaikukatu 4)
00014 HELSINGIN YLIOPISTO
Tel. +358 50 3199529
osma.suominen@helsinki.fi
http://www.nationallibrary.fi