Data range expression for an enumeration in Protégé

5.2k Views Asked by At

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é?

1

There are 1 best solutions below

1
On

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