[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: About OWL syntax


owl subclassof
Didier PH Martin wrote:

>Hi Jonathan,
>
>Jonathan said:
>In any case this is what you want:
>
><owl:Class rdf:ID="ConsumableThing">
>  <owl:subClassOf>
>     <owl:Restriction>
>	<owl:onProperty rdf:resource="#madeFromFruit" />
>     	<owl:allValuesFrom rdf:resource="#Fruit" />
>     </owl:Restriction>
>  </owl:subClassOf>
>  .... other property definition ....
></owl:Class>
>
>Didier replies:
>Thanks for the answer Jonathan, I wasn't aware we can do that.
>
>What is now confusing about the above statement is not the <owl:restriction>
>element, since this latter can be perceived as a restriction, a constraint,
>a limitation. It is more the element <owl:subClassOf> which suggest, well...
>a subclass. Instead this element contains a restriction on a property. I
>cannot say we have reached here readability and clarity summits :-)
>  
>
Let me clarify a few points, which hopefully will make this make sense :-)

First, an owl:Restriction defines a _class_ that is the result of the 
restriction on the property -- think of it as in some way a Property -> 
Class converter.

Second, the way OWL allows a class to be derived from multiple classes 
is with owl:subClassOf. The example suggests that the class being 
defined has more in the definition than the restriction hence the "...". 
If we are defining the class as *only* the restriction, we can simply do:

(note that I am defining a "ConsumableFruitThing" for this example)

<owl:Restriction rdf:ID="ConsumableFruitThing">
	<owl:onProperty rdf:resource="#madeFromFruit" />
     	<owl:allValuesFrom rdf:resource="#Fruit" />
</owl:Restriction>

but this doesn't capture the fact that this class also derives from a 
"ConsumableThing" class, hence we need to declare it this way:

<owl:Class rdf:ID="ConsumableFruitThing">
  <owl:subClassOf rdf:resource="#ConsumableThing" />
  <owl:subClassOf>
     <owl:Restriction>
	<owl:onProperty rdf:resource="#madeFromFruit" />
     	<owl:allValuesFrom rdf:resource="#Fruit" />
     </owl:Restriction>
  </owl:subClassOf>
</owl:Class>

does this make more sense?

Jonathan


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.