W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > January 2011

[Query-errata] error in example query in SPARQL recommendation

From: Sjoerd Mullender <sjoerd@acm.org>
Date: Thu, 13 Jan 2011 12:43:04 +0100
Message-ID: <4D2EE548.5050702@acm.org>
To: public-rdf-dawg-comments@w3.org
In section 11.4.11 sameTerm there is a syntax error in the last example.
The example in the recommendation reads

PREFIX  :      <http://example.org/WMterms#>
PREFIX  t:     <http://example.org/types#>

SELECT ?aLabel1 ?bLabel
WHERE { ?a  :label        ?aLabel .
        ?a  :weight       ?aWeight .
        ?a  :displacement ?aDisp .

        ?b  :label        ?bLabel .
        ?b  :weight       ?bWeight .
        ?b  :displacement ?bDisp .

        FILTER ( sameTerm(?aWeight, ?bWeight) && !sameTerm(?aDisp, ?bDisp) }

There is a closing parenthesis missing for the FILTER expression.

-- 
Sjoerd Mullender


Received on Thursday, 13 January 2011 11:43:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 13 January 2011 11:43:38 GMT