W3C home > Mailing lists > Public > semantic-web@w3.org > January 2006

owl:onProperty with enumeration

From: Hans Teijgeler <hans.teijgeler@quicknet.nl>
Date: Fri, 13 Jan 2006 22:15:52 +0100
To: "SW-forum" <semantic-web@w3.org>
Message-ID: <000001c61886$8c3e3850$6c7ba8c0@hans>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:22:39 GMT