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

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

From: Matthew Perry <matthew.perry@oracle.com>
Date: Tue, 22 Mar 2011 11:50:43 -0400
Message-ID: <4D88C553.4000108@oracle.com>
To: W3C SPARQL Working Group <public-rdf-dawg@w3.org>
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 GMT

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