Protégé中枚举的数据范围表达式 [英] Data range expression for an enumeration in Protégé

查看:171
本文介绍了Protégé中枚举的数据范围表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将数据类型属性的范围定义为字符串的详尽枚举,以使个人枚举中只有一个字符串可以作为此属性的值.

I would like to define the range of a data type property as an exhaustive enumeration of strings, in a way that an individual could have as value of this property only one of the strings in the enumeration.

例如,一个名为"color"的数据类型属性,该属性只能采用3个值:"Red","Green"和"Blue".

For example, a data type property called "color", which can assume only 3 values: "Red", "Green" and "Blue".

我正在使用OWL 2和Protégé5.0.

I'm using OWL 2, and Protégé 5.0.

有没有一种简单的方法可以使用Protégé?

Is there an easy way of doind that using Protégé?

推荐答案

我似乎无法找到确切的重复问题,尽管我认为以前可能已经问过这个问题.在Protege中,您可以使用数据类型表达式来表示文字的枚举.您可以添加范围并使用表达式:

I don't seem to be able to find an exact duplicate question, though I think that this may have been asked before. In Protege, you can use a datatype expression to represent an enumeration of literals. In your case, you can add a range and use the expression:

       {红色",绿色",蓝色"}

        {"Red", "Green", "Blue"}

这篇关于Protégé中枚举的数据范围表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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