Data range expression for an enumeration in Protégé

我与影子孤独终老i 提交于 2019-12-02 21:30:55

问题


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.

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

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

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


回答1:


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"}



来源:https://stackoverflow.com/questions/35348064/data-range-expression-for-an-enumeration-in-prot%c3%a9g%c3%a9

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!