Use RDFS to write a small ontology probably the smallest ont

Use RDFS to write a small ontology (probably the smallest ontology in the world) to describe the following concepts and relationships: A Person is a class, a Student is a subclass of Person, and a Professor is also a subclass of Person. A Course is a class. Knows is a property, advises is a sub-property of knows, and it is used to describe the fact that a Professor advises a Student. Takes is a property, and it is used to describe the fact that a Student takes a Course. Teaches is a property, and it is used to describe the fact that a Professor teaches a Course. The following lines are given to you as a start so that you can finish your ontology:

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>

 Use RDFS to write a small ontology (probably the smallest ontology in the world) to describe the following concepts and relationships: A Person is a class, a S

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site