- From: Curt Arnold <carnold@houston.rr.com>
- Date: Wed, 16 Feb 2000 20:29:35 -0600
- 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 UTC