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

Is this a good example of a class that is also an individual?

From: Roger L. Costello <costello@mitre.org>
Date: Mon, 10 Mar 2003 15:45:51 -0500
Message-ID: <3E6CF97F.D7C3D0B7@mitre.org>
To: www-rdf-logic@w3.org
CC: "Costello,Roger L." <costello@mitre.org>

Hi Folks,

A friend sent me the below as an example of a class that is both acting
as a class and as an individual.  Neither of us are "certain" that it is
correct.  Could someone verify that class Flight37 is valid?  /Roger

<!-- The collection of all airline flight numbers -->
<rdf:Class rdf:ID="AirlineFlight"/>

<rdf:Property rdf:ID="scheduledDeparture">
  <rdfs:Domain rdf:resource="#AirlineFlight"/>

<!-- The collection of all individual flights -->

<rdf:Property rdf:ID="actualDeparture">
  <rdfs:Domain rdf:resource="#FlightInstance"/>

<!-- An individual of AirlineFlight for flight 37 and 
     the collection of all individual flights of flight 37 -->  
<rdfs:Class rdf:ID="Flight37">
  <rdf:type rdf:resource="#AirlineFlight"/>
  <rdfs:subClassOf rdf:resource="#FlightInstance"/>

<!-- An idividual of the Flight37 class -->
<Flight37 rdf:ID="Flight37_20030310">
Received on Monday, 10 March 2003 15:46:06 UTC

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