W3C home > Mailing lists > Public > www-rdf-interest@w3.org > February 2000

Re: do XML Datatypes work for RDF?

From: Curt Arnold <carnold@houston.rr.com>
Date: Wed, 16 Feb 2000 20:29:35 -0600
Message-ID: <000a01bf78ee$d4bd7980$9b6b1b18@houston.rr.com>
To: <www-rdf-interest@w3.org>
Dan Connolly wrote:
> I suppose we could use
> http://www.w3.org/TR/1999/WD-xmlschema-2-19991217/#boolean
> for the value of the rdf:range property, but that doesn't work
> for user-defined derived types.

For user-defined datatypes, you could do some concatenation of the target
namespace and the datatype name, for example:

<schema
targetNamespace="http://www.software.aeat.com/xml/namespaces/datatypes">
    <datatype name="pressure" source="double">
          <minExclusive value="0.0"/>
    </datatype>
</schema>

Pressure could be refered to as
http://www.software.aeat.com/xml/namespaces/datatypes:pressure (I'm not sure
if the ":" would be legal in that location in a URI, but you could
substitute another separator).  That wouldn't give you a way to locate a
schema that defines in, since the namespace would only be loosely coupled
with the schema location, but it should uniquely identify the unit.

Then for consistency, you could define a namespace for XML Schema defined
types, so double could be something like

http://www.w3.org/XMLSchema/Datatypes:double
Received on Wednesday, 16 February 2000 21:36:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:51:42 GMT