W3C home > Mailing lists > Public > www-rdf-interest@w3.org > June 2000

RE: How to restrict the possible values of a class?

From: McBride, Brian <bwm@hplb.hpl.hp.com>
Date: Tue, 27 Jun 2000 14:55:22 +0100
Message-ID: <5E13A1874524D411A876006008CD059F2392A9@0-mail-1.hpl.hp.com>
To: www-rdf-interest@w3.org
>
>It does not seem right to me that DayRange be a subclass of Range :
>typically, Range is a class and DayRange is the instance,
>but DayRange may ALSO be a class (in which case Range is a metaclass)
>
>This is absolutely possible in RDF,
>you just have to declare that Range is a subclass of class
>(and that is IS also a class, as you did - both things are different !)
>

Yup - thats much cleaner.  To answer Tom's request for RDF:

<rdfs:Class rdf:ID='DayRange'>
  <rdf:type rdf:resource='#Range'/>
  <thisNameSpace:ge>0</thisNameSpace:ge>
  <thisNameSpace:le>31</thisNameSpace:le>
</rdfs:Class>

Does that do it?

Brian McBride
HPLabs
Received on Tuesday, 27 June 2000 09:55:32 GMT

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