- From: Lee Feigenbaum <lee@thefigtrees.net>
- Date: Wed, 20 Feb 2008 12:58:01 -0500
- To: Raf Guns <raf+w3c@randomseed.be>
- CC: public-rdf-dawg-comments@w3.org
Raf Guns wrote: > 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. Hi Raf, This is indeed an error in the example. Thanks for pointing it out. Lee
Received on Wednesday, 20 February 2008 17:58:13 UTC