W3C home > Mailing lists > Public > www-rdf-logic@w3.org > June 2001

properties with classes as values?

From: David Martin <martin@ai.sri.com>
Date: Wed, 06 Jun 2001 23:30:48 -0700
Message-ID: <3B1F1F98.AE9E7C9E@ai.sri.com>
To: www-rdf-logic@w3.org
A question for DAML language gurus -

I want to declare a property that will take a class as its value (rather
than an instance of a class).

For instance, I want to declare class MyClass with property myProperty,
and say that the range of myProperty is Class, so that an instance of
MyClass can have myProperty with, say, class Person as its value.

(1) How should the range of myProperty be declared?  Like this?:

   <daml:ObjectProperty rdf:ID="myProperty">
       <rdfs:domain rdf:resource="#myClass"/>
       <rdfs:range rdf:resource="daml:Class"/>

(2) Now, what if I want to say that the range of myPropery is Class (as
above), AND that its values are restricted to the subclasses of some
particular class, say, Animal.  Is this doable?  And if so, how would
this range be declared?


- David Martin
Received on Thursday, 7 June 2001 02:33:28 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 2 March 2016 11:10:35 UTC