- From: Hans Teijgeler <hans.teijgeler@quicknet.nl>
- Date: Tue, 17 Jan 2006 13:14:46 +0100
- To: "'Peter F. Patel-Schneider'" <pfps@research.bell-labs.com>
- Cc: <semantic-web@w3.org>
- Message-ID: <000201c61b5f$a0f14f90$6c7ba8c0@hans>
Peter,
Thanks for your response!
When you say: "The syntax here may not be exactly right" then you invite my
next question: What's wrong with it?
I *did* create an enumerated 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>
I *did* use that class in a Restriction:
<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>
so where is it "not exactly right"? Please enlighten me.
Regards,
Hans
=============================================================
-----Original Message-----
From: Peter F. Patel-Schneider [ <mailto:pfps@research.bell-labs.com>
mailto:pfps@research.bell-labs.com]
Sent: Saturday, January 14, 2006 15:58
To: hans.teijgeler@quicknet.nl
Cc: semantic-web@w3.org
Subject: Re: owl:onProperty with enumeration
[The syntax here may not be exactly right.]
You can create a named enumerated class for this purpose, as in
EnumeratedClass(BWR Black White Red)
and then use that class in something like
restriction(hasColor cardinality(1) someValueFrom(BWR))
peter
From: "Hans Teijgeler" <hans.teijgeler@quicknet.nl>
Subject: owl:onProperty with enumeration
Date: Fri, 13 Jan 2006 22:15:52 +0100
> 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</
> ow
> l:maxCardinality>
> </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
Received on Tuesday, 17 January 2006 12:47:25 UTC