W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > February 2008

[Query-errata] wrong variable name in example (section 11.4.1)

From: Raf Guns <raf+w3c@randomseed.be>
Date: Tue, 19 Feb 2008 12:58:43 +0100
Message-ID: <fdbc653b0802190358k649672d5qc6c164c245ab00a7@mail.gmail.com>
To: public-rdf-dawg-comments@w3.org

Hi all,

The first query example in section 11.4.1
(http://www.w3.org/TR/rdf-sparql-query/#func-bound) seems incorrect.
Currently, it says:

PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dc:   <http://purl.org/dc/elements/1.1/>
PREFIX xsd:   <http://www.w3.org/2001/XMLSchema#>
SELECT ?name
 WHERE { ?x foaf:givenName  ?givenName .
         OPTIONAL { ?x dc:date ?date } .
         FILTER ( bound(?date) ) }

which should become

PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dc:   <http://purl.org/dc/elements/1.1/>
PREFIX xsd:   <http://www.w3.org/2001/XMLSchema#>
SELECT ?name
 WHERE { ?x foaf:givenName  ?name .
         OPTIONAL { ?x dc:date ?date } .
         FILTER ( bound(?date) ) }

so the variable name in the SELECT clause matches with the variable
name in the WHERE clause. I couldn't find any mention of this issue,
which is why I'm signaling it here.

Kind regards,

-- 
Raf
Received on Wednesday, 20 February 2008 16:44:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 20 February 2008 16:44:25 GMT