Reputation: 2295
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é?
Upvotes: 4
Views: 5618
Reputation: 85923
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"}
Upvotes: 2