I have a data properties hasCode that can assume one of this values:
What is the expression that I have to write for get this restriction?
Thank you so much
{"1"^^xsd:int, "2"^^xsd:int, "3"^^xsd:int, "4"^^xsd:int}
This should do the trick.
Note: there's a bug in Protege 5 beta 21 that will not make this work. Either use Protege 5 beta 17 or wait for the next beta for this to work properly.