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

Mutually Exclusive Properties in OWL

From: Ashraful Alam <masud80@hotmail.com>
Date: Sat, 8 Jul 2006 20:56:35 -0500
Message-ID: <008501c6a2fa$e933d610$4101a8c0@iris>
To: <semantic-web@w3.org>
Cc: <masud80@hotmail.com>
I was trying to map an xml schema document into an ontology and got stuck trying to figure out the corresponding semantics of xs:choice in OWL. Here I assume 'xs' is a prefix to refer to XML-Schema namespace. For instance, take this example :

<xs:element name="MyFavoriteFruit" type="base:MyFavoriteFruitType>

<xs:complexType name="MyFavoriteFruitType">
      <xs:element name="SweetFruit" type="xs:String">
      <xs:element name="NonSweetFruit" type="xs:String">

The interpreation here is my favorite fruit can be either a sweet fruit or a non-sweet fruit and a client application of the above document can actually determine whether the favorite fruit was 'SweetFruit' or 'NonSweetFruit'. The last part is important to me since my application has to make decisions based on the kind of fruit chosen. One possible OWL profile of ex1.xsd can be as follows.

<owl:Class id="MyFavoriteFruit">
         <owl:oneOf parseType="collection">
                <owl:onProperty about="hasChosenSweetFruit">
                <owl:cardinality datatype="xs:integer">1</owl:cardinality>
                <owl:onProperty about="hasChosenNonSweetFruit">
                <owl:cardinality datatype="xs:integer">1</owl:cardinality>

Above owl file is certainly 'valid', but what I don't know is if it captures the interpretation that an instance of MyFavoriteFruit can have *either* hasChosenSweetFruit *or* hasChosenNonSweetFruit (i.e. are these properties mutually exclusive through 'oneOf'?). If not, what alternatives do I have? Your comments will be greatly appreciated.

Received on Sunday, 9 July 2006 05:21:04 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 07:41:52 UTC