如何解决错误的OWLAxioms?

时间:2019-04-30 09:44:11

标签: scala

我正在研究RDF / XML解析器,该解析器解析RDF / XML本体并将其转换为RDD [OWLAxiom]。这部分使用OWL API完成,但是我注意到在输出中我得到了一些错误的结果:

  • 每个rdfs:domain都转换为AnnotationPropertyDomain而不是DataPropertyDomain或ObjectPropertyDomain。
  • 每个rdfs:subPropertyOf都会转换为SubAnnotationPropertyOf,而不是SubDataPropertyOf或SubObjectPropertyOf
  • 在具有诸如someValuesFrom之类的限制时出现错误“ Unparsed Triple”,而我对此没有公理。 您知道我该如何处理这种错误的结果吗?

如果我有此记录:

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

0 个答案:

没有答案