Re: Basic federation in Jena

2012-08-17 Thread Tayfun Gökmen Halaç
Dear Olivier, Your query is OK. Maybe you had another problem except syntax. You can use a subquery to use LIMIT/OFFSET/ORDERBY for services. OPTIONAL can be used for any triple pattern in a SERVICE block. SELECT DISTINCT ?thCenturyClassicalComposers0 ?comment ?optvar WHERE { { SELECT ?thCentury

Re: Basic federation in Jena

2012-08-01 Thread Andy Seaborne
On 01/08/12 16:50, Olivier Rossel wrote: 4/ You can use a subselect to restrict the remote query part: SERVICE <...> { SELECT * { ... } LIMIT 300 } I tried this query: SELECT DISTINCT ?comment WHERE { SERVICE { ?thCentury

Re: Basic federation in Jena

2012-08-01 Thread Olivier Rossel
> 4/ You can use a subselect to restrict the remote query part: > > > SERVICE <...> { >SELECT * { >... >} LIMIT 300 > } I tried this query: SELECT DISTINCT ?comment WHERE { SERVICE { ?thCenturyClassicalComposers0

Re: Basic federation in Jena

2012-07-31 Thread Andy Seaborne
On 31/07/12 11:44, Olivier Rossel wrote: Forcing the syntax to Syntax.syntaxARQ is mandatory because client-side federation is a ARQ-specific feature. Only in very old versions of ARQ - SERVICE is part of SPARQL 1.1 As far as I understand, SERVICE in SPARQL 1.1 is server-side federation. And

Re: Basic federation in Jena

2012-07-31 Thread Olivier Rossel
>> Forcing the syntax to Syntax.syntaxARQ is mandatory because >> client-side federation is a ARQ-specific feature. > > Only in very old versions of ARQ - SERVICE is part of SPARQL 1.1 As far as I understand, SERVICE in SPARQL 1.1 is server-side federation. And you have no way to federate with loc

Re: Basic federation in Jena

2012-07-31 Thread Andy Seaborne
On 31/07/12 09:30, Andy Seaborne wrote: (same question as yesterday) A few problems: 1/ Talis are turning off their online service so http://api.talis.com/... will stop working sometime. If this is a paid-for store, that wil be in several months; if hosted for free, it'll happen in the next fe

Re: Basic federation in Jena

2012-07-31 Thread Andy Seaborne
(same question as yesterday) A few problems: 1/ Talis are turning off their online service so http://api.talis.com/... will stop working sometime. If this is a paid-for store, that wil be in several months; if hosted for free, it'll happen in the next few days. 2/ The services have a 30s t

Re: Basic federation in Jena

2012-07-31 Thread Andy Seaborne
On 31/07/12 08:52, Olivier Rossel wrote: Oops, the webpage I mentionned had wrong code. The correct code to run my query is: QueryExeuction exec = QueryExecutionFactory.create(QueryFactory.create("yourfederatedquery", Syntax.syntaxARQ), new DatasetImpl(ModelFactory.createDefaultModel())); exec.e

Re: Basic federation in Jena

2012-07-31 Thread Olivier Rossel
Oops, the webpage I mentionned had wrong code. The correct code to run my query is: QueryExeuction exec = QueryExecutionFactory.create(QueryFactory.create("yourfederatedquery", Syntax.syntaxARQ), new DatasetImpl(ModelFactory.createDefaultModel())); exec.execSelect(); Forcing the syntax to Syntax.

Basic federation in Jena

2012-07-31 Thread Olivier Rossel
Hi all. I would like to try Jena basic federation. I tried this query: SELECT DISTINCT ?thCenturyClassicalComposers0 WHERE { SERVICE { ?thCenturyClassicalComposers0

Basic federation in Jena

2012-07-30 Thread Olivier Rossel
Hi all. I want to try Jena basic federation. I tried this query: SELECT DISTINCT ?thCenturyClassicalComposers0 WHERE { SERVICE { ?thCenturyClassicalComposers0