在Protege中为个人定义属性值时使用枚举数据类型 [英] Using enumerated data type in defining property value for individual in Protege

查看:736
本文介绍了在Protege中为个人定义属性值时使用枚举数据类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我想提一下我是本体论和门生的新手.我尝试使用protege 5.0开发本体.我用枚举范围定义了一些数据属性,这些属性是在数据范围表达式中定义的,例如:{"Balanced","Clever","Energetic","Lazy","Talkative"}.现在,我想定义一个个人,并希望从我上面定义的范围中选择一个值作为数据类型属性的填充符.我怎样才能做到这一点?

At first I want to mention that I am new in ontology and protege. I try to develop an ontology using protege 5.0. I defined some data properties with enumerated range which I defined in data range expression like this: {"Balanced" , "Clever" , "Energetic" , "Lazy" , "Talkative"}. Now I want to define an individual and want to choose a value from the range I defined above as filler for a datatype property. How can I do this?

感谢您的提前帮助

推荐答案

无法声明该范围内的个人,因为数据类型范围由文字而不是个人组成.

It is not possible to declare an individual from that range, because datatype ranges are composed of literals, not individuals.

例如,如果您想要一个标有平衡"的个人,请创建一个您认为足够的IRI并添加一个rdfs:label作为平衡"的个人

If you want an individual labeled, for example, as "Balanced", create an individual with any IRI you think adequate and add an rdfs:label to it, as "Balanced"

如评论所讨论,需要的是数据属性声明p(A, "literal")

as discussed in the comments, what is wanted is a data property assertion p(A, "literal")

我已通过以下步骤完成此操作: -创建数据属性p(数据属性"标签) -创建一个单独的A(单个标签) -选择A,将显示一个数据属性断言选项卡 -选择+按钮 -选择所需的属性并插入所需的值

I have done this with the following steps: - create a data property p (data property tab) - create an individual A (individual tab) - select A, a data property assertion tab appears among others - select the + button - select the desired property and insert the desired value

注意:在问题中,提到了数据类型枚举-我没有将其添加到示例中,但是如果属性p具有声明的范围,则过程相同.

Note: In the question, a datatype enumeration is mentioned - I have not added it to the example, but the procedure is the same if the property p has a declared range.

这在下面的图片中显示,仅供参考.

This is shown in the picture below for reference.

这篇关于在Protege中为个人定义属性值时使用枚举数据类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆