owl:onProperty with enumeration

Hi,
 
I need some help with the following:
 
Say I need to define a catalog for a particular type of car.
In its specification I have: color: black | white | red
 
Assume I want to use an anonymous subclass with owl:onProperty.
How do I express that enumeration? 
 
Should I create a new class 'BlackWhiteRed' :
 
<owl:Class rdf:ID="BlackWhiteRed">
    <owl:unionOf rdf:parseType="Collection">
        <owl:Class rdf:about="#Black"/>
        <owl:Class rdf:about="#White"/>
        <owl:Class rdf:about="#Red"/>
    </owl:unionOf>
</owl:Class>


and then refer to that class in the anonymous class:
 
<rdfs:subClassOf>
    <owl:Restriction>
        <owl:onProperty rdf:resource="#hasColor"/>
        <owl:someValuesFrom rdf:resource="#BlackWhiteRed"/>
        <owl:maxCardinality
rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:ma
xCardinality>
    </owl:Restriction>
</rdfs:subClassOf>
 
But actually I want something like owl:oneValueFrom
 
Where did I go wrong?
 
I hope someone can help me!
 
Regards,
Hans
 
____________________
Hans Teijgeler
ISO 15926 specialist
Netherlands
+31-72-509 2005
www.InfowebML.ws <http://www.infowebml.ws/>  
hans.teijgeler@quicknet.nl
 
 

Received on Friday, 13 January 2006 21:16:08 UTC