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

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

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Mon, 24 Jan 2011 10:44:10 +0000
Message-ID: <4D3D57FA.8020108@epimorphics.com>
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.

This is corrected in the SPARQL 1.1 working draft.

http://www.w3.org/TR/sparql11-query/#func-sameTerm

Thank you for your comment,

	Andy
Received on Monday, 24 January 2011 10:45:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 24 January 2011 10:45:13 GMT