Re: UNION example

On Mon, May 08, 2006 at 07:15:22PM -0700, Richard Newman wrote:
> 
> Hi all,
>   I was just working my way through the SPARQL CR, and noticed a  
> slight annoyance in <http://www.w3.org/TR/rdf-sparql-query/#unionOp>.
> 
>   The example data only specifies titles:
> 
> ===================================================
> @prefix dc10:  <http://purl.org/dc/elements/1.0/> .
> @prefix dc11:  <http://purl.org/dc/elements/1.1/> .
> 
> _:a  dc10:title     "SPARQL Query Language Tutorial" .
> 
> _:b  dc11:title     "SPARQL Protocol Tutorial" .
> 
> _:c  dc10:title     "SPARQL" .
> _:c  dc11:title     "SPARQL (updated)" .
> ===================================================
> 
>   but the second query references creators:
> 
> 
> ===================================================
> PREFIX dc10:  <http://purl.org/dc/elements/1.1/>
> PREFIX dc11:  <http://purl.org/dc/elements/1.0/>
> 
> SELECT ?title ?author
> WHERE  { { ?book dc10:title ?title .  ?book dc10:creator ?author }
>          UNION
>          { ?book dc11:title ?title .  ?book dc11:creator ?author }
>        }
> ===================================================
> 
>   Running this query against the data in the document will not  
> produce the stated results:
> 
> author         |  title
> ====================================================
> "Alice"        |  "SPARQL Protocol Tutorial"
> ----------------------------------------------------
> "Bob"          |  "SPARQL Query Language Tutorial"
> ====================================================
> 
> 
>   I suggest adding the triples
> 
> _:b  dc11:creator  "Alice" .
> _:a  dc10:creator  "Bob" .
> 
>   to the example data, if only for clarity's sake.
> 
> -R

Andy fixed that in the editor's draft 1.677 (see
  http://www.w3.org/2001/sw/DataAccess/rq23/#unionOp
  http://www.w3.org/2001/sw/DataAccess/rq23/#chlog
and
  http://www.w3.org/2001/sw/DataAccess/rq23/examples )

Does this answer your question? Please indicate whether you are
or are not satisfied. If you are, you can help our issue tracking
system by prefixing the subject of your response with [CLOSED]
(where this subject has [OK?]).
--
-eric

home-office: +1.617.395.1213 (usually 900-2300 CET)
             +33.1.45.35.62.14
cell:        +81.90.6533.3882

(eric@w3.org)
Feel free to forward this message to any list for any purpose other than
email address distribution.

Received on Thursday, 1 June 2006 11:57:55 UTC