【发布时间】:2018-12-09 20:21:33
【问题描述】:
我需要说一个对象属性是双向的。我知道我们可以使用 inverseOf 属性来链接 2 属性,但是可以说 objectProperty 的 inverseOf 是他自己吗?
<owl:ObjectProperty rdf:about="http://www.co-ode.org/ontologies/ont.owl#isLinkedTo">
<owl:inverseOf rdf:resource="http://www.co-ode.org/ontologies/ont.owl#isLinkedTo"/>
</owl:ObjectProperty>
或者我必须这样做:
<owl:Class rdf:about="http://micorr.ig.he-arc.ch/vocab#artefacts_alloy">
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="http://www.co-ode.org/ontologies/ont.owl#isLinkedTo"/>
<owl:allValuesFrom rdf:resource="http://micorr.ig.he-arc.ch/vocab#artefacts_metal"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
<owl:Class rdf:about="http://micorr.ig.he-arc.ch/vocab#artefacts_metal">
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="http://www.co-ode.org/ontologies/ont.owl#isLinkedTo"/>
<owl:allValuesFrom rdf:resource="http://micorr.ig.he-arc.ch/vocab#artefacts_alloy"/>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
感谢您的帮助。
【问题讨论】:
-
为什么不可能?你听说过reflexivity吗?
-
顺便问一下,
sparql标签的原因是什么?为什么没有owl标签?
标签: owl bidirectional object-property