How do I define a property to have only two legal values (strings 'foo' or 'bar') in Protege?
Asked
Active
Viewed 689 times
1
user6454026
- 45
- 3
-
Possible duplicate of [Data range expression for an enumeration in Protégé](http://stackoverflow.com/questions/35348064/data-range-expression-for-an-enumeration-in-prot%c3%a9g%c3%a9) – Joshua Taylor Jun 20 '16 at 14:10
1 Answers
2
- Select your datatype property,
- Click on "Ranges" and then from the tab "Built in datatypes" select
xsd:string. - In the tab "Data range expressions" enter
{"foo", "bar"} - Click "OK"
When you enter a value outside this range, some reasoners like Fact++ will show that as inconsistent, others won't.
Ivo Velitchkov
- 2,361
- 11
- 21