- From: Chris Opler <chrisopler@free.fr>
 - Date: Fri, 26 Oct 2001 08:37:13 -0400
 - To: Dan Connolly <connolly@w3.org>
 - Cc: www-archive@w3.org, larsga@garshol.priv.no, openwine@yahoogroups.com
 - Message-ID: <3BD958F9.BE0DD844@free.fr>
 
Hi Dan,
Apologies for contacting you directly with a question.  Since you expressed an interest previously, I thought you might be able to point us in the right direction.
daml for openwine project is found at:
http://www.openwine.org/open_wine_data.xml
The question we're having is regarding the appropriate way to designate ObjectProperties.
We currently have and ObjectProperty defined as:
  <daml:ObjectProperty rdf:ID="Nation">
    <rdfs:range rdf:resource="#Nation"/>
    <rdfs:domain rdf:resource="#Region"/>
  </daml:ObjectProperty>
we think it should be:
  <daml:ObjectProperty rdf:ID="hasNation">
    <rdfs:range rdf:resource="#Nation"/>
    <rdfs:domain rdf:resource="#Region"/>
  </daml:ObjectProperty>
The class definition looks like:
  <daml:Class rdf:ID="Region">
    <rdfs:label xml:lang="en">Region</rdfs:label>
    <rdfs:subClassOf>
     <daml:Restriction daml:cardinality="1">
         <daml:onProperty rdf:resource="#Nation" />
      </daml:Restriction>
  </rdfs:subClassOf>
should be instead:
  <daml:Class rdf:ID="Region">
    <rdfs:label xml:lang="en">Region</rdfs:label>
    <rdfs:subClassOf>
     <daml:Restriction daml:cardinality="1">
        <daml:onProperty rdf:resource="#hasNation" />
        <daml:toClass rdf:resource="#Nation"/>
      </daml:Restriction>
  </rdfs:subClassOf>
The instance looks like:
  <Region rdf:ID="OWP-390">
     <title>Navarra</title>
     <Nation rdf:resource="#OWP-16" />
  </Region>
but should be::
<Region rdf:ID="OWP-390">
  <title>Navarra</title>
    <title>Navarra</pathTitle>
    <hasNation rdf:resource="#OWP-16" />
</Region>
Just wondering if this is correct.  Thank you in advance for guidance or for pointing us to a resource !
Kind Regards,
Chris Opler
Received on Friday, 26 October 2001 02:35:51 UTC