我正在研究RDF / XML解析器,该解析器解析RDF / XML本体并将其转换为RDD [OWLAxiom]。这部分使用OWL API完成,但是我注意到在输出中我得到了一些错误的结果:
如果我有此记录:
<rdf:Description rdf:about="http://swat.cse.lehigh.edu/onto/univ-bench.owl#emailAddress">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/>
<rdfs:label>can be reached at</rdfs:label>
<rdfs:domain rdf:resource="http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person"/>
</rdf:Description>
我明白了
AnnotationPropertyDomain(<http://swat.cse.lehigh.edu/onto/univ-bench.owl#emailAddress> <http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person>)
代替
DataPropertyDomain(<http://swat.cse.lehigh.edu/onto/univ-bench.owl#emailAddress> <http://swat.cse.lehigh.edu/onto/univ-bench.owl#Person>)