W3C home > Mailing lists > Public > www-rdf-comments@w3.org > July to September 2002

simple datatypes

From: Jonathan Borden <jonathan@openhealth.org>
Date: Wed, 31 Jul 2002 08:29:19 -0400
Message-ID: <3D47D81F.AEAA9D01@openhealth.org>
To: www-rdf-comments@w3.org, guha@guha.com

Regarding:

http://lists.w3.org/Archives/Public/w3c-rdfcore-wg/2002Jul/0199.html

I enthusiastically agree (with the last paragraph).

Yet this doesn't break current RDF/XML files.

Several examples:

<ex:Example rdf:ID="foo">
  <ex:property>10</ex:property>
</ex:Example>

-> "10" as a string

<ex:Example rdf:ID="foo2">
	<ex:property xsi:type="xsd:decimal">10</ex:property>
</ex:Example>

-> 10 the integer

(this idiom shouldn't exist in the wild as yet, and if it does exist,
the intention is to do exactly as above)

Perhaps:

<ex:Example rdf:ID="foo3">
	<ex:property rdf:parseType="xsd:decimal">10</ex:property>
</ex:Example>

which doesn't require changes to the RDF/XML syntax! Indeed the
rdf:parseType can exactly be considered a particular mapping from a
lexical to value space.

Jonathan
Received on Wednesday, 31 July 2002 08:33:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 21 September 2012 14:16:30 GMT