【发布时间】:2014-03-29 14:50:23
【问题描述】:
我正在尝试组合一个小型本体(HP 类、HEWLETT_PACKARD 类通过对称属性链接在一起)。猫头鹰在下面。我想要做的是在 Protege “equal_symmetric only hp”或“equal_symmetric only hewlett_packard”中查询并获得对方公司。本质上,我想获得每个公司名称的同义词。
<owl:ObjectProperty rdf:about="ontologies/2014/1/untitled-ontology-2#equal_symmetric">
<rdf:type rdf:resource="&owl;SymmetricProperty"/>
</owl:ObjectProperty>
<owl:Class rdf:about="ontologies/2014/1/untitled-ontology-2#hewlett_packard">
<owl:equivalentClass>
<owl:Restriction>
<owl:onProperty rdf:resource="ontologies/2014/1/untitled-ontology-2#equal_symmetric"/>
<owl:allValuesFrom rdf:resource="ontologies/2014/1/untitled-ontology-2#hp"/>
</owl:Restriction>
</owl:equivalentClass>
</owl:Class>
<owl:Class rdf:about="ontologies/2014/1/untitled-ontology-2#hp">
<rdfs:subClassOf rdf:resource="ontologies/2014/1/untitled-ontology-2#brand"/>
</owl:Class>
【问题讨论】:
-
作为一般说明,StackOverflow 不是一个论坛,所以虽然一开始可能看起来很奇怪,但我们不需要一些我们经常在电子邮件、看板、等等,比如签名和感谢。这次我把它们删掉了。同样,我删除了“任何建议赞赏”,因为 StackOverflow 问题往往很好并且专注于特定问题;开放式的事情进展不顺利。
-
你到底想在这里做什么?如果它们是类,您可以声明 HEWLETT_PACKARD 和 HP 是等价的类。如果你有个人,你可以声明他们是owl:sameAs each other。你对 allValuesFrom 限制所做的事情不太清楚。所说的是类 hewlett_packard 等价于“这样的事物类,使得它们对属性 equal_symmetric 的任何值都必须是 hp。”我真的没有看到那里的实用程序。
标签: rdf semantic-web owl protege