W3C home > Mailing lists > Public > public-rdb2rdf-wg@w3.org > August 2011

Re: Datatypes (ISSUE-48)

From: Nuno Lopes <nuno.lopes@deri.org>
Date: Wed, 10 Aug 2011 11:35:57 +0100
Cc: Nuno Lopes <nuno.lopes@deri.org>, W3C RDB2RDF <public-rdb2rdf-wg@w3.org>
Message-Id: <1CAE3CAA-CAA3-47C9-941B-36A085A49928@deri.org>
To: Richard Cyganiak <richard@cyganiak.de>
Hi Richard,

I added to the Wiki an explanation for the "or" mapping, most of them are left up to the implementation. Regarding the boolean type there is no mention and it seems to be mapped directly.  As for the dates and durations, the lexical values are restricted by the "xs:pattern" facet as I mentioned. For example the DATE SQL type is mapped to the XSD type:

<xs:simpleType>
  ANN
  <xs:restriction base="xs:date">
    <xs:pattern value="\p{Nd}{4}-\p{Nd}{2}-\p{Nd}{2}"/>
  </xs:restriction>
</xs:simpleType>

where ANN may indicate the original SQL datatype (implementation defined).  I'll add this example to the wiki.

Did I miss some other question?

Cheers,
--
Nuno Lopes



On 9 Aug 2011, at 19:03, Richard Cyganiak wrote:

> Hi Nuno,
> 
> I had another look at the wiki page:
> http://www.w3.org/2001/sw/rdb2rdf/wiki/Mapping_SQL_datatypes_to_XML_Schema_datatypes
> 
> Ok, this answers what we ought to do with user-defined and constructed types.
> 
> There are still a couple of questions open from here:
> http://lists.w3.org/Archives/Public/public-rdb2rdf-wg/2011Aug/0017.html
> 
> Maybe you could comment on these?
> 
> Cheers,
> Richard
Received on Wednesday, 10 August 2011 10:36:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:00:26 UTC