46 ◾ Rajendra Akerkar
Example 2.2: In the following schema, the train resource is a subclass of the vehi-
cle class.
<?xml version=”1.0”?>
<rdf:RDF
xmlns:rdf= “http://www.w3.org/1999/02/22-rdf-syntax-ns#”
xmlns:rdfs=”http://www.w3.org/2000/01/rdf-schema#”
xml:base= “http://www.vehicle.org/vehicles#”>
<rdf:Description rdf:ID=”vehicle”>
<rdf:type
rdf:resource=”http://www.w3.org/2000/01/rdf-schema#Class”/>
</rdf:Description>
<rdf:Description rdf:ID=”train”>
<rdf:type
rdf:resource=”http://www.w3.org/2000/01/rdf-schema#Class”/>
<rdfs:subClassOf rdf:resource=”#vehicle”/>
</rdf:Description>
</rdf:RDF>
As an RDF schema, class is an RDF resource. We can modify the above example
with the help of rdfs:Class instead of rdf:Description, and drop the rdf:type in