W3C home > Mailing lists > Public > www-archive@w3.org > October 2001

daml issues with http://www.openwine.org

From: Chris Opler <chrisopler@free.fr>
Date: Fri, 26 Oct 2001 08:37:13 -0400
Message-ID: <3BD958F9.BE0DD844@free.fr>
To: Dan Connolly <connolly@w3.org>
Cc: www-archive@w3.org, larsga@garshol.priv.no, openwine@yahoogroups.com
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 7 November 2012 14:17:14 GMT