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

11th hour datatype testing proposal

From: Eric Prud'hommeaux <eric@w3.org>
Date: Tue, 5 Apr 2005 07:37:41 -0400
To: public-rdf-dawg@w3.org
Message-ID: <20050405113741.GB32750@w3.org>
I expect to do some worksmithing to clarify the semantics of types
derived from decimal near [[

XML Schema [] defines a set of types derived from decimal: integer,
nonPositiveInteger, negativeInteger, long, int, short, byte,
nonNegativeInteger, unsignedLong, unsignedInt, unsignedShort,
unsignedByte and positiveInteger. These are all treated as decimals
for computing effective boolean values.

Other than that, I think that section 11 is reasonably implementable
and somewhat readable. Howard has given it a brief sanity check and
supplemented my understanding of how XQuery does numeric comparison.

I have a few relevent tests to help the WG decide if this is a good
idea (vs. the more computationlly intensive and scarier space of
numbers being equivilent in the FILTER when they weren't in the
graph match).

whether different datatypes restricted from decimal have the same
value (I said "no"):

whether known datatypes restricted from decimal can be cast to an
equivalent values (I said "yes"):

whether non-0 datatypes restricted from decimal have an ebv of true.
(I said "yes"):

whether uncastables yield an error. (I said "yes"):

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

Feel free to forward this message to any list for any purpose other than
email address distribution.

Received on Tuesday, 5 April 2005 11:37:42 UTC

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