rdf - 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 来达到同样的目的。如果有人做过,将不胜感激!谢谢!
解决方案
推荐阅读
- unity3d - tilemap 中的通用渲染管道 2d 阴影
- python - 更改字典中特定键的特定值
- java - 无法从前置扬声器切换到后置扬声器
- regex - 如何使用正则表达式提取器提取文本值
- java - 方法重载——方法的调用是否依赖于类中方法定义的出现
- java - 如何使用 spock 为 RESTful Web 服务调用开发模拟服务
- reactjs - 在 JS 对象中使用 redux 数据
- postgresql - POSTGRES JSONB 从嵌套数组中选择值
- python - tf.range() 结果不一致
- python - Python - 使用字典获取数据时出错,因为它仅从 14 个数据中获取 1 个输出。谢谢