W3C home > Mailing lists > Public > public-powderwg@w3.org > December 2007

RE: Open Issues: DR scope

From: Smith, Kevin, VF-Group <Kevin.Smith@vodafone.com>
Date: Thu, 6 Dec 2007 17:57:16 +0100
Message-ID: <BE5CA01EA47984458F205AE8C65E586F3C94C9@VF-MBX11.internal.vodafone.com>
To: "Andrea Perego" <andrea.perego@uninsubria.it>, <public-powderwg@w3.org>
Cc: "Public POWDER" <public-powderwg@w3.org>

Hi Andrea,

I was trying to follow the example in the OWL guide [1]:

<owl:Class rdf:ID="PotableLiquid"> 
  <rdfs:subClassOf rdf:resource="#ConsumableThing" />
  ...
</owl:Class>  


<owl:Class rdf:ID="Wine"> 
  <rdfs:subClassOf rdf:resource="&food;PotableLiquid"/> 
  ...  
</owl:Class> 


So by my interpretation, "ResourceOnExampleDotOrg" is a subclass of the
class of all resources (or arguably of all resources at the top level
domain .org, but that has little semantic value)

Of course, my interpretation could be completely wrong :)

Cheers
Kevin



[1]
http://www.w3.org/TR/2004/REC-owl-guide-20040210/#DefiningSimpleClasses


-----Original Message-----
From: public-powderwg-request@w3.org
[mailto:public-powderwg-request@w3.org] On Behalf Of Andrea Perego
Sent: 06 December 2007 13:47
To: public-powderwg@w3.org
Cc: Public POWDER
Subject: Re: Open Issues: DR scope


Hi, Kevin.

>> It is not clear to me why you're using here rdf:ID as an attribute to
> rdfs:subclassOf.
> 
> Well spotted  - I meant rdf:resource :)

Thanks. So, the corrected version of your example should be:

 1  <owl:Class rdf:ID="ResourceOnExampleDotOrg">
 4    <rdfs:subClassOf rdf:resource="#AllResources">
 5       <owl:Restriction>
 6         <owl:onProperty rdf:resource="&wdr;includeHost" />
 7          <owl:hasValue>example.org</owl:hasValue>
 8         </owl:Restriction>
 9    </rdfs:subClassOf>
 12 </owl:Class>

But where the AllResources class is defined? Moreover, you cannot use
rdf:resource and then include the restriction - i.e., the rdf:resource
attribute is used to denote the object of the statement, but here there
is already an object, namely, owl:Restriction.

What you can write is:

<owl:Class rdf:ID="ResourceOnExampleDotOrg">
  <rdfs:subClassOf rdf:resource="#AllResources">
</owl:Class>

<owl:Restriction rdf:ID="AllResources">
  <owl:onProperty rdf:resource="&wdr;includeHost" />
  <owl:hasValue>example.org</owl:hasValue>
</owl:Restriction>

but I'm not sure whether this is what you meant.

Andrea
Received on Thursday, 6 December 2007 16:57:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:42:12 GMT