W3C home > Mailing lists > Public > www-rdf-interest@w3.org > August 2004

using datatype for ObjectProperty range

From: Prajakta Nivargi <Prajakta.Nivargi@asu.edu>
Date: Mon, 23 Aug 2004 12:20:20 -0700
To: www-rdf-interest@w3.org
Cc: drager@bbn.com
Message-id: <9EAE2E44897BC749ACB3A62683B2C8D10455A616@ex4.asurite.ad.asu.edu>
I have declared the following class and its property in OWL.

 

<!-- Open class. Category : Open -->

 <owl:Class rdf:ID="Open" rdfs:label="Open">

 <rdfs:comment>A category of unrestricted data or public
data</rdfs:comment> 

 <rdfs:subClassOf
rdf:resource="http://www.public.asu.edu/~pnivargi/ppm/ontologies/Data.ow
l#Category" /> 

 </owl:Class>

 

<!-- level property: Assigns a number as a level to each category -->

 <owl:ObjectProperty rdf:ID="level" rdfs:label="level">

 <rdfs:domain
rdf:resource="http://www.public.asu.edu/~pnivargi/ppm/ontologies/Data.ow
l#Category" /> 

 <rdfs:range
rdf:resource="http://www.w3.org/2001/XMLSchema#positiveInteger"/>

 </owl:ObjectProperty>

 

When I tested my ontology using the OWL validator provided by BBN
Technologies on 

http://owl.bbn.com/validator/

 

I get the following warnings:

 

http://www.public.asu.edu/~pnivargi/ppm/ontologies/Data.owl#level
<http://www.daml.org/cgi-bin/hyperdaml?http://www.public.asu.edu/%7Epniv
argi/ppm/ontologies/Data.owl#level> 
http://www.w3.org/2000/01/rdf-schema#range
<http://www.daml.org/cgi-bin/hyperdaml?http://www.w3.org/2000/01/rdf-sch
ema#range> 
http://www.w3.org/2001/XMLSchema#positiveInteger
<http://www.daml.org/cgi-bin/hyperdaml?http://www.w3.org/2001/XMLSchema#
positiveInteger> 

 

 

Statement Indication

 

The range restriction for an ObjectProperty can not be a datatype.

 

 

I used this because I saw this being used in an example on the OWL
specifications on w3c website. Is this not allowed? Is there any
workaround for it?

 

Prajakta

 

 
Received on Monday, 23 August 2004 19:21:50 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:57 UTC