owl - OWL 对象属性双向
问题描述
我需要说一个对象属性是双向的。我知道我们可以使用 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>
谢谢你的帮助。
解决方案
您确实可以使属性与自身相反,这很好。然而,表达关系是双向的更明确的方式是定义属性是对称的:
<owl:SymmetricProperty rdf:about="http://www.co-ode.org/ontologies/ont.owl#isLinkedTo"/>
推荐阅读
- c++ - int* 和 int[] 类型的无效操作数到二元运算符+
- regex - 我可以使用正则表达式、Like 运算符和/或 Instr() 在较大的字符串中查找模式的索引吗?
- laravel - 如何将 laravel 路由重定向到我使用 vue-router 在 vue 中创建的链接
- excel - 使用 Google Colab 时如何将文件写入本地驱动器?
- excel - 转换为 Excel 后的数字形式为“123.456.789”
- excel-formula - Excel公式表示时间是否在某个小时范围内
- ios - 在`ios`中使用常规图像和按钮图像有何不同?
- angular - 启用跨域请求 Spring Boot
- inno-setup - Inno Setup:如果快捷方式已经存在,请不要(重新)创建快捷方式
- javascript - 世博会位置权限立即被拒绝 iOS 模拟器