W3C home > Mailing lists > Public > www-rdf-logic@w3.org > April 2004

Re: Restricting value of property to user-defined datatype

From: Dave Reynolds <der@hplb.hpl.hp.com>
Date: Tue, 27 Apr 2004 12:19:57 +0100
Message-ID: <408E41DD.5090600@hplb.hpl.hp.com>
To: Anjum Shehzad <anjum@oslab.khu.ac.kr>
Cc: www-rdf-logic@w3.org

Anjum Shehzad wrote:

> I want to define my own data type e.g. an integer representing a
> day-of-the-month should be between 1 and 31 (daysInt). I know how to do
> this with XSD SimpleType element but can the RDF/RDFS/OWL parser
> understand the datatype daysInt? 

Some toolkits, for example Jena [1], do support user defined XSD datatypes 
by using a local convention for the URI of the defined datatype. The 
problem, as you point out, is that there is no defined standard for this 
URI convention and so any such usage may not be portable.

The semantic web best practices WG is, I believe, hoping to work with the 
XML Schema WG to resolve this.

Dave

[1] http://jena.sourceforge.net/
Received on Tuesday, 27 April 2004 07:21:53 GMT

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