RE: ACTION-419: Sync with Birte on Datatypes for canonicalisation

Hi,

Oracle's canonicalization is shown below. Please let me know if you have any questions.

Thanks,
Matt

- URI, Blank Node, Plain Literal => no change
- language-tagged literals => normalize lang tag to lowercase

- xsd:string => Plain Literal

- All the following go to xsd:decimal normalized to remove all leading and
   trailing zeros. Decimal point is not included if fractional part is zero.
xsd:decimal
xsd:integer
xsd:nonPositiveInteger
xsd:negativeInteger
xsd:long
xsd:int
xsd:short
xsd:byte
xsd:nonNegativeInteger
xsd:unsignedLong
xsd:unsignedInt
xsd:unsignedShort
xsd:unsignedByte
xsd:positiveInteger

- normalize to concat("mantissa", "E", "exponent")
  (e.g. "100.3"^^<http://www.w3.org/2001/XMLSchema#float =>
        "1.00300003E2"^^<http://www.w3.org/2001/XMLSchema#float>)
xsd:double => xsd:double
xsd:float => xsd:float

- Normalize to Z timezone if timezone is given.
   Time portion allows at most 9 fractional seconds, which are rounded to
   6 fractional seconds with trailing zeros removed.
xsd:dateTime => xsd:dateTime
xsd:time => xsd:time

- xsd:date => xsd:date no change


- xsd:boolean => normalize to lowercase "true" or "false"

Received on Tuesday, 22 March 2011 15:51:18 UTC