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:

    <datatype name="pressure" source="double">
          <minExclusive value="0.0"/>

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

Received on Wednesday, 16 February 2000 21:36:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:44:22 UTC