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

7 tests to induct xsd:boolean into SPARQL

From: Eric Prud'hommeaux <eric@w3.org>
Date: Thu, 12 Jan 2006 20:49:09 -0500
To: public-rdf-dawg@w3.org
Message-ID: <20060113014908.GI7513@w3.org>
A while ago, it became clear that, since we were talking about
xsd:boolean in the spec, the type should probably be recognized by
SPARQL. To that end, I've created these tests:

EBV result is the same as xsd:boolean
-> http://www.w3.org/2001/sw/DataAccess/tests/#boolean-logical-or

"false"^^xsd:boolean = "0"^^xsd:boolean
-> http://www.w3.org/2001/sw/DataAccess/tests/#boolean-equiv-false

"true"^^xsd:boolean = "1"^^xsd:boolean
-> http://www.w3.org/2001/sw/DataAccess/tests/#boolean-equiv-true

T=T T=1 1=T 1=1 F=F F=0 0=F 0=0
-> http://www.w3.org/2001/sw/DataAccess/tests/#boolean-equiv-xsdtype

graph match canonical lexical form of "false"
-> http://www.w3.org/2001/sw/DataAccess/tests/#boolean-false-canonical

graph match on the canonical lexical form of "true"
-> http://www.w3.org/2001/sw/DataAccess/tests/#boolean-true-canonical

= match on the canonical lexical result of an EBV
-> http://www.w3.org/2001/sw/DataAccess/tests/#boolean-ebv-canonical


-- 
-eric

office: +81.466.49.1170 W3C, Keio Research Institute at SFC,
                        Shonan Fujisawa Campus, Keio University,
                        5322 Endo, Fujisawa, Kanagawa 252-8520
                        JAPAN
        +1.617.258.5741 NE43-344, MIT, Cambridge, MA 02144 USA
cell:   +81.90.6533.3882

(eric@w3.org)
Feel free to forward this message to any list for any purpose other than
email address distribution.

Received on Friday, 13 January 2006 01:49:12 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:25 GMT