-1

All math courses are taught by David only (no other lecturer must be involved).`

<owl:Class rdf:ID="Math">
<owl:Restriction>
<owl:onProperty uni:Resource="#isTaughtBy"/>
<owl:allValuesFrom uni:Resource="#9432"/>
</owl:Restriction>
</owl:Class>

the above code seems invalid why i try to draw the graph please help. If anyone is wondering about the #9432 it refers to David

1 Answers1

0
<owl:Class rdf:ID="Math">
<rdfs:subClassOf>
    <owl:Restriction>
        <owl:onProperty rdf:resource="#isTaughtBy"/>
        <owl:hasValue>
            <owl:Class>
                <uni:Name>david</uni:Name>
            </owl:Class>
        </owl:hasValue‌​>
    </owl:Restriction>
</rdfs:subClassOf>

graph produced by rdf validator

  • 1
    I don't think that this is right. This says that every instance of the class Math is related by the property isTaughtBy to _. I don't think that `david` is correct. And even if it is, it would say that the course is taught by an David, but not that it's *not* taught by anyone else. A course could still be taught by multiple lecturers – Joshua Taylor Dec 21 '15 at 23:20
  • In protégé it would be **MathClass SubClassOf (isTaughtBy only {David}) and (isTaughtBy some {David})**. I'd suggest that you use protégé or another OWL based tool,or at least a humans readable rdf syntax, rather than ttying to write the rdf/xml serialization of an rdf graph mapping of an owl ontology. It will probably be a much more pleasant experience. – Joshua Taylor Dec 22 '15 at 02:19