rangeontologyprotegeprotege4manchester-syntax

protege set data range expression for a data properties


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? enter image description here

Thank you so much


Solution

  • {"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.