首页 > 解决方案 > Java代码实现OWLAnnotationPropertyAssertionAxiom

问题描述

我想在三元组上添加注释断言。我尝试使用 Protege 做同样的事情并且能够实现它。从 Protege 生成的 RDF/XML 如下所示:

<owl:Axiom>
        <owl:annotatedSource rdf:resource="http://www.semanticweb.org/smrat/ontologies/2019/0/untitled-ontology-1388#Peter"/>
        <owl:annotatedProperty rdf:resource="http://www.semanticweb.org/smrat/ontologies/2019/0/untitled-ontology-1388#eats"/>
        <owl:annotatedTarget rdf:resource="http://www.semanticweb.org/smrat/ontologies/2019/0/untitled-ontology-1388#Apple"/>
        <weight rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">3</weight>
    </owl:Axiom>

我想使用 owldistribution-api 来达到同样的目的。如果有人做过,将不胜感激!谢谢!

标签: rdfowlontologyowl-apiturtle-rdf

解决方案


推荐阅读