Use RDFS to write a small ontology probably the smallest ont
Solution
<rdf:RDF xml:lang=\"en\"
 xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"
 xmlns:rdfs=\"http://www.w3.org/TR/1999/PR-rdf-schema-19990303#\"
  xmlns:u=\"http://www.example.org/univ#\"
 xml:base=\"http://www.example.org/univ#\">  
   
 <!-- Person class -->
 <rdfs:Class rdf:ID=\"Person\" />
   
 <!-- Sub class of Person -->
 <rdfs:Class rdf:ID=\"Student\" >
 <rdfs:subClassOf=\"#Person\"/>
 </rdfs:Class>
   
 <!-- Sub class of Person -->
 <rdfs:Class rdf:ID=\"Professor\" >
 <rdfs:subClassOf=\"#Person\"/>
 </rdfs:Class>
   
 <!-- Class Course -->
 <rdfs:Class rdf:ID=\"Course\" />
   
 <!-- property knows -->
 <rdf:Property rdf:ID=“knows” />
   
 <!-- sub property of knows -->
 <rdf:Property rdf:ID=“advises”>
     <!-- Professor advises a Student -->
    <rdfs:domain rdf:resource=“#Professor” />
    <rdfs:range rdf:resource=“#Student” />
    <rdfs:subPropertyOf=“#knows”>
 </rdf:Property>
   
 <!-- property takes -->
 <rdf:Property rdf:ID=“takes”>
    <!-- student takes course -->
    <rdfs:domain rdf:resource=“#Student” />
    <rdfs:range rdf:resource=“#Course” />
 </rdf:Property>
   
 <!-- property teaches -->
 <rdf:Property rdf:ID=“teaches”>
 <!-- Professor takes course -->
 <rdfs:domain rdf:resource=“#Professor” />
 <rdfs:range rdf:resource=“#Course” />
 </rdf:Property>
   
    </rdf:RDF>

