W3C home > Mailing lists > Public > www-rdf-logic@w3.org > March 2003

Treating a class as both an individual and a class?

From: Roger L. Costello <costello@mitre.org>
Date: Sun, 09 Mar 2003 09:10:26 -0500
Message-ID: <3E6B4B52.EC888FE2@mitre.org>
To: www-rdf-logic@w3.org
CC: "Costello,Roger L." <costello@mitre.org>

Hi Folks,

I am not clear on the mechanism of using a class as both an individual
and as a class.  Consider this example:

Suppose that River is a subclass of Stream.  Here's the definition of
the River class:

    <rdfs:Class rdf:ID="River">
        <rdfs:subClassOf rdf:resource="#Stream"/>

Suppose that I want to use this River class as an individual, as shown

    <Country rdf:ID="China">
        <hasFeature rdf:resource="http://geodesy.org#River"/>

Note that the property "hasFeature" has as its value the class River. 
Thus, the River class is being treated as an "individual". (Correct?)

What confuses me is how the property hasFeature would be declared.
More specifically, what would be the value of its rdfs:range?

    <rdf:Property rdf:ID="hasFeature">
        <rdfs:domain rdf:resource="#Country"/>
        <rdfs:range rdf:resource="???"/>

Could somebody please tell me how to define rdfs:range above?  Thanks! 
Received on Sunday, 9 March 2003 09:11:11 UTC

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