Re: Datatypes (ISSUE-48)

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:restriction base="xs:date">
    <xs:pattern value="\p{Nd}{4}-\p{Nd}{2}-\p{Nd}{2}"/>

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

Did I miss some other question?

Nuno Lopes

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

> Hi Nuno,
> I had another look at the wiki page:
> Ok, this answers what we ought to do with user-defined and constructed types.
> There are still a couple of questions open from here:
> Maybe you could comment on these?
> Cheers,
> Richard

Received on Wednesday, 10 August 2011 10:36:26 UTC