On 25/07/13 15:43, Michael Brunnbauer wrote:

Hello Andy,

On Thu, Jul 25, 2013 at 02:24:44PM +0100, Andy Seaborne wrote:
Can we agree on the test case?

I don't get he same numbers as you (data changing?)
but do queries 1 and 3 represent the issue?

No. They are truncated.

My bad - I used "head" to label them.

But do these two queries, when complete, capture the issue? query 2 adds nothing?


Reformatted for email:

==> Q1.rq <==
PREFIX  :
<http://www.imagesnippets.com/imgtag/datasets/Michaels_Dataset/>
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT  (count(*) AS ?c)
WHERE
   { GRAPH ?g
       { SERVICE <http://www.imagesnippets.com/sparql/datasets>
           { ?d rdfs:subClassOf :aidkjfsdf }
         ?s ?p ?d
       }


There is a "}" missing at the end.

==> Q3.rq <==
PREFIX  :
<http://www.imagesnippets.com/imgtag/datasets/Michaels_Dataset/>
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT  ?c
WHERE
   { SELECT  (count(*) AS ?c)
     WHERE
       { GRAPH ?g
           { SERVICE <http://www.imagesnippets.com/sparql/datasets>
               { ?d rdfs:subClassOf :aidkjfsdf }


        Andy

And here, "?s ?p ?d } } }" is missing at the end.

My archived mail from Jul 17 contains the untruncated queries:

http://mail-archives.apache.org/mod_mbox/jena-users/201307.mbox/browser

There are two messages from you:

This one, with 4 queries:

http://mail-archives.apache.org/mod_mbox/jena-users/201307.mbox/%3C20130717190649.GA25207%40netestate.de%3E

and we are taking about queries 1 and 3 ?



If I add the missing stuff and execute those queries against our public endpoint
http://www.imagesnippets.com/sparql/dbpedia, I currently get 1 for Q1 and
38188 for Q3. The result should be 1 for both.

Regards,

Michael Brunnbauer


It's a bug - rewriting the scopes does not get propagated correctly to and from the SERVICE when there is a nested scope introduced by the additional projection.

        Andy

Reply via email to