简体   繁体   English

OWL:使用ObjectUnionOf的抽象类实现似乎失败了hermiT,protégé

[英]OWL: abstract class implementation with ObjectUnionOf seems failing hermiT, protégé

Assuming GeographicArea as union of Planet, Continent and Region: 假设地理区域为行星,大陆和地区的联盟:

 <EquivalentClasses> <Class IRI="#GeographicArea"/> <ObjectUnionOf> <Class IRI="#Continent"/> <Class IRI="#Planet"/> <Class IRI="#Region"/> </ObjectUnionOf> </EquivalentClasses> 

then there should not be any individual of class GeopgraphicArea 那么不应该有GeopgraphicArea类的任何个人

<ClassAssertion>
    <Class IRI="#GeographicArea"/>
    <NamedIndividual IRI="#Bad"/>
</ClassAssertion>

Bad is obviously NOT a continent, planet or region. 坏的显然不是大陆,星球或地区。

nevertheless hermiT reasoner n Protégé does not report an error. hermiT推理器和Protégé没有报告错误。

Why? 为什么? How could I restrict that no individual could be stated as "GeographicArea" only? 我如何限制没有任何人只能被称为“地理区域”?

See sample in: http://www.arcdev.hu/test/helloworld.owl 请参阅以下示例: http : //www.arcdev.hu/test/helloworld.owl

OWL uses the Open World Assumption , which means that just because Bad is not yet defined as a continent, planet or region, doesn't mean that it won't be in future. OWL使用开放世界假设 ,这意味着仅仅因为Bad尚未定义为大陆,行星或地区,并不意味着它将来不会出现。 For the reasoner to report an error, you would have to define Bad as an instance of a class that is disjoint with the other classes. 对于报告错误的推理者,您必须将Bad定义Bad与其他类不相交的类的实例。

How could I restrict that no individual could be stated as "GeographicArea" only? 我如何限制没有任何人只能被称为“地理区域”?

You can't, and it doesn't really make sense to do this in a logical environment (which OWL is, after all). 你不能,而且在逻辑环境中这样做是没有意义的(毕竟OWL是这样)。 OWL reasoning is about logical inference, not about type-checking. OWL推理与逻辑推理有关,而不与类型检查有关。

If you require this kind of functionality, you'll have use some custom validation mechanism of your own (I imagine you could do something like this using some clever SPARQL queries or SPIN rules). 如果你需要这种功能,你将使用自己的一些自定义验证机制(我想你可以使用一些聪明的SPARQL查询或SPIN规则来做这样的事情)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM