Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Use RDFS to write a small ontology (probably the smallest ontology in the world)

ID: 3795593 • Letter: U

Question

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:

Explanation / Answer

<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>

Dr Jack
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote