Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Data range expression for an enumeration in 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.

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 doing that using Protégé?

like image 976
Zaratruta Avatar asked Sep 07 '25 15:09

Zaratruta


1 Answers

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

like image 57
Joshua Taylor Avatar answered Sep 10 '25 04:09

Joshua Taylor