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

RE: properties with classes as values?

From: Hart, Lewis <lhart@grci.com>
Date: Thu, 7 Jun 2001 11:45:04 -0400
Message-ID: <09A65DF294F8D311AAB000105A02DBAF026E647D@thumper.va.grci.com>
To: "Sean B. Palmer" <sean@mysterylights.com>, David Martin <martin@ai.sri.com>
Cc: www-rdf-logic@w3.org


>-----Original Message-----
>From: Sean B. Palmer [mailto:sean@mysterylights.com]
>Sent: Thursday, June 07, 2001 11:20 AM
>To: David Martin
>Cc: www-rdf-logic@w3.org
>Subject: Re: properties with classes as values?
>
>
>> What I want is that the value of myProperty can be
>> *any* class.
>
>Then the range of it is rdfs:Class.
>
>   :myProperty rdfs:range rdfs:Class .
>
>> >    :x rdfs:range
>> >       [ daml:intersectionOf
>> >           (:Class [ rdfs:subClassOf :Animal ]) ] .
>> > XML RDF of these things available upon request...
>>
>> I would very much appreciate seeing the last sample above
>> in DAML+OIL.
>
><daml:Class rdf:ID="x">
> <rdfs:range>
>  <rdf:Description>
>   <daml:intersectionOf parseType="daml:collection">
>     <daml:Class rdf:ID="Class"/>
>     <rdf:Description>
>       <rdfs:subClassOf rdf:resource="#Animal"/>
>     </rdf:Description>
>   </daml:intersectionOf>
>  </rdf:Description>
> </rdfs:range>
></daml:Class>
>
>In prose: the range of class "x" is an intersectionOf "#Class" and
>something which is the subClassOf "#Animal"; which most likely isn't
>what you really want to say.
>
Couldn't the above range expression be simplified, since all things that are
a subClassOf something must be a Class? This makes the intersection
superfluous. So the above becomes (assuming 'x' was meant to be a property,
not a class):

<daml:Property rdf:ID="x">
 <rdfs:range>
   <rdf:Description>
      <rdfs:subClassOf rdf:resource="#Animal"/>
   </rdf:Description>
 </rdfs:range>
</daml:Property>


- Lewis
___________________________________________
Lewis L Hart 
GRC International            lhart@grci.com
1900 Gallows Rd.        Voice (703)506-5938
Vienna, Va 22182          Fax (703)556-4261
Received on Thursday, 7 June 2001 11:45:37 GMT

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