W3C home > Mailing lists > Public > semantic-web@w3.org > August 2007

Re: Datatypes

From: Bijan Parsia <bparsia@cs.man.ac.uk>
Date: Tue, 21 Aug 2007 19:10:16 +0100
Message-Id: <F2847C8C-4D08-46C0-BF70-0EA0B33A6589@cs.man.ac.uk>
Cc: semantic-web@w3.org
To: Reto Bachmann-Gmür <reto@gmuer.ch>

On 21 Aug 2007, at 16:42, Reto Bachmann-Gmür wrote:

> I'm writing an ontology with properties pointing to literals
> representing the following:
> - media types (eg: "application/xhtml+xml")
> - media ranges (eg: "application/*")
> - fully qualified java-class names (eg: "org.example.tools.MyTool")
> While I could use xsd:string I think it would be better to use custom
> datatypes to have literals like
> "org.example.tools.MyTool"^^http://example.org/datatypes#javaClass.
> My question:
> - Anyone knows a place where such datatypes are already defined?

Not me.

> - Datatypes are typically defined in an XML-schema, is there an  
> ontology
> to do so in RDF?

RDF has pretty limited datatype support in general (both in the spec  
and in the tools...as far as I know). OWL has somewhat better support  
including required support for xsd:string and xsd:integer, plus at  
least defined support for other simple types:

Deriving URIs for user defined datatypes was left unspecified in  
deference to the XML Schema working group. There's a discussion you  
might find interesting:

(Pellet implemented the daml solution.)

OWL 1.1 has a built-in vocabulary for user defined datatypes:


The rdf form is at the top of:

> - Is it a good idea to define the datatypes in the same namespace  
> as the
> ontology using them?

I think it's a matter of taste.

Received on Tuesday, 21 August 2007 18:09:05 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:41:05 UTC