W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > January to March 2005

Tests for expressions : boolean effective values

From: Seaborne, Andy <andy.seaborne@hp.com>
Date: Thu, 17 Feb 2005 19:13:28 +0000
Message-ID: <4214ECD8.7010702@hp.com>
To: RDF Data Access Working Group <public-rdf-dawg@w3.org>

Today, some of us were puzzling over boolean expressions in XQuery/Xpath and how 
they affect SPARQL.  We think that the "boolean effective values" rules apply in 
constraints and I have checked in some tests into tests/data/Expr2 for this.

"boolean effective values" reference:

and it means that:

"AND ?x" is legal.

?x is true if the value of ?x is:

* boolean and the value of the boolean is true
* a string and length(string) > 0
* a numeric: number != NaN && number != 0

Anything else is "type error" which means the whole solution is rejected.

Received on Thursday, 17 February 2005 19:14:23 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:00:46 UTC