DAML +OIL notation question

Hi everyone,

I would like to represent a property that can take values into a set of
predefined values that are string.
For example the possible value for the unit property of an angle class could
be Minutes, or Radians or Degrees or Seconds

I've found several solutions but for a collection of classes.
In fact i'm trying to represent what is called "Symbol" in the protege tool.
Could you tell me if the following notation is right:

   <rdfs:Class rdf:ID="Angle">
        <rdfs:subClassOf>
            <daml:Restriction daml:mincardinality="1"
daml:maxcardinality="1">
                <daml:onProperty rdf:resource="#unit"/>
                <daml:toClass rdf:resource="#Angle_unit_selection"/>
            </daml:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
            <daml:Restriction daml:mincardinality="1"
daml:maxcardinality="1">
                <daml:onProperty rdf:resource="#value"/>
                <daml:toClass
rdf:resource="http://www.w3.org/TR/xmlschema-2/#string"/>
            </daml:Restriction>
        </rdfs:subClassOf>
    </rdfs:Class>

    <daml:Class  rdf:ID="Angle_unit_selection">
  	<rdfs:comment>
    	This class represents the choice in Angle unit.
  	</rdfs:comment>
  	<daml:oneOf rdf:parseType="daml:collection">
		<Angle_unit_selection rdf:ID="Minutes"/>
		<Angle_unit_selection rdf:ID="Radians"/>
		<Angle_unit_selection rdf:ID="Degrees"/>
		<Angle_unit_selection rdf:ID="Seconds"/>
  	</daml:oneOf>
    </daml:Class>

Thanks a lot for your help,

Myriam.

Received on Thursday, 24 January 2002 08:58:24 UTC