简体   繁体   English

Protege 5:如何通过其数据属性推断个人的类成员资格?

[英]Protege 5: How can I infer a class membership of an individual through its data properties?

I've made an ontology in Protégé 5 using OWL/XML syntax.我使用 OWL/XML 语法在 Protégé 5 中创建了一个本体。 I have included a class Cerveza and another class Color among others.我已经包括了一个类 Cerveza 和另一个类 Color 等等。 Under Color, I have 3 subclasess: Claro (pale), Medio (medium) and Oscuro (dark):在颜色下,我有 3 个子类:Claro(浅色)、Medio(中等)和 Oscuro(深色):

班级

I made a data property called EBC xsd:int, which domain is class Cerveza:我创建了一个名为 EBC xsd:int 的数据属性,该域是 Cerveza 类:

数据属性

So I made a restriction to class Claro to have maximum 12 EBC degrees:因此,我对 Claro 类进行了限制,使其最多拥有 12 个 EBC 学位:

等级限制

Then I create an individual called kk and I assert the property EBC=10:然后我创建一个名为 kk 的个体,并声明属性 EBC=10:

在此处输入图片说明

I started reasoner Pellet, and it is inferring that, as kk has EBC kk has to belong to class Cerveza.我启动了reasoner Pellet,它推断出,因为kk 有EBC kk 必须属于Cerveza 类。 But I was expecting somehow to infer that kk belongs to Class Color / Subclass claro.但我期待以某种方式推断出 kk 属于 Class Color / Subclass claro。

What is wrong in this design?这个设计有什么问题?

You are confusing datatype restrictions ( 7.5 ) and data property cardinality restrictions ( 8.5 ).您混淆了数据类型限制( 7.5 ) 和数据属性基数限制( 8.5 )。

Instead of:代替:

Class: Claro
  SubClassOf: EBC max 12 xsd:int

you should write:你应该写:

Class: Claro
  EquivalentTo: EBC some xsd:int[<= 12]

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

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