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

Re: owl:onProperty with enumeration

From: Peter F. Patel-Schneider <pfps@research.bell-labs.com>
Date: Sat, 14 Jan 2006 09:58:28 -0500 (EST)
Message-Id: <20060114.095828.72849471.pfps@research.bell-labs.com>
To: hans.teijgeler@quicknet.nl
Cc: semantic-web@w3.org

[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 Saturday, 14 January 2006 14:58:39 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:47:11 UTC