我正在尝试在这个本体中进行推理。我在本体下面发帖。
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xml:base="C:/Users/Rita/Desktop/parenthood.owl"
xmlns="C:/Users/Rita/Desktop/parenthood.owl#">
<owl:Ontology rdf:about="C:/Users/Rita/Desktop/parenthood.owl"/>
<owl:ObjectProperty rdf:about="#has">
<rdfs:domain rdf:resource="#Man"/>
<rdfs:range rdf:resource="#Son"/>
</owl:ObjectProperty>
<owl:Class rdf:about="#Man">
<rdfs:subClassOf rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
<rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string">This is man</rdfs:comment>
</owl:Class>
<owl:Class rdf:about="#Woman">
<rdfs:subClassOf rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
<rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string">This is woman</rdfs:comment>
</owl:Class>
<owl:Class rdf:about="#Son">
<rdfs:subClassOf rdf:resource="#Man"/>
<rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string">This is son</rdfs:comment>
</owl:Class>
<owl:Class rdf:about="#Daughter">
<rdfs:subClassOf rdf:resource="#Woman"/>
<rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string">This is son</rdfs:comment>
</owl:Class>
<owl:Class rdf:about="#Father">
<rdfs:subClassOf rdf:resource="#Man"/>
<owl:equivalentClass>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="#Man"/>
<owl:Class>
<owl:unionOf rdf:parseType="Collection">
<owl:Restriction>
<owl:onProperty rdf:resource="#has"/>
<owl:someValuesFrom rdf:resource="#Son"/>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="#has"/>
<owl:someValuesFrom rdf:resource="#Daughter"/>
</owl:Restriction>
</owl:unionOf>
</owl:Class>
</owl:intersectionOf>
</owl:Class>
</owl:equivalentClass>
<rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string">This is father</rdfs:comment>
</owl:Class>
<Man rdf:about="#filippo">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#NamedIndividual"/>
<has rdf:resource="#matteo"/>
</Man>
<Son rdf:about="#matteo">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#NamedIndividual"/>
</Son>
</rdf:RDF>
我希望“filippo”个人被分配到“父亲”类。期望这样对吗?还是本体不好形成?我使用 OWlAPI 5 和隐士作为推理器。我是本体领域的新手!!请帮忙。谢谢,丽塔