W3C home > Mailing lists > Public > www-ws@w3.org > August 2003

Re: [Fwd: Time in DAML-S: another two possible additions to the Congo use case]

From: Feng Pan <pan@ISI.EDU>
Date: Mon, 4 Aug 2003 18:16:17 -0700 (PDT)
To: David Martin <martin@ai.sri.com>
Cc: Jerry Hobbs <hobbs@ISI.EDU>, "'www-ws@w3.org'" <www-ws@w3.org>
Message-ID: <Pine.GSO.4.21.0308041758520.19079-100000@nitro.isi.edu>

Hi David,

Thanks for your suggestions. Since the range of minDeliveryDuration and
maxDeliveryDuration is Interval, intervals with specific durations need 
to be created first. For example, for FedEx2-3dayDuration we need to
define Interval2Days and Interval3Days first as follows:

<owl:Class rdf:ID="Interval2Days"> 
    <!-- intervals with a duration of 2 days --> 
    <rdfs:subClassOf rdf:resource="&time;#Interval"/>
    <owl:subClassOf>
      <owl:Restriction>
        <owl:onProperty
		rdf:resource="&time;#durationDescriptionDataType" />
        <owl:hasValue rdf:datatype="&xsd;duration">P2D</owl:hasValue>
      </owl:Restriction>
    </owl:subClassOf>
</owl:Class>

<owl:Class rdf:ID="Interval3Days"> 
    <!-- intervals with a duration of 3 days --> 
    <rdfs:subClassOf rdf:resource="&time;#Interval"/>
    <owl:subClassOf>
      <owl:Restriction>
        <owl:onProperty
		rdf:resource="&time;#durationDescriptionDataType" />
        <owl:hasValue rdf:datatype="&xsd;duration">P3D</owl:hasValue>
      </owl:Restriction>
    </owl:subClassOf>
</owl:Class>

Then, FedEx2-3dayDuration restricts the value of minDeliveryDuration and
maxDeliveryDuration to Interval2Days and Interval3Days respectively as
follows:

<owl:Class rdf:ID="FedEx2-3dayDuration">   
  <rdfs:subClassOf rdf:resource="#DeliveryDuration"/>
  <rdfs:subClassOf>
    <owl:Restriction>
      <owl:onProperty rdf:resource="#minDeliveryDuration"/>
      <owl:allValuesFrom rdf:resource="#Interval2Days"/>
    </owl:Restriction>
  </rdfs:subClassOf>
  <rdfs:subClassOf>
    <owl:Restriction>
      <owl:onProperty rdf:resource="#maxDeliveryDuration"/>
      <owl:allValuesFrom rdf:resource="#Interval3Days"/>
    </owl:Restriction>
  </rdfs:subClassOf>
</owl:Class>

Please let me know if you have further comments on this.

Thanks,

Feng

On Sun, 3 Aug 2003, David Martin wrote:

> 
>  Feng -
> 
> [This is a resend, because in my previous message I lost the indentation in your examples.]
> 
> So far I've only had time to glance at these proposed additions to the
> Congo example.
> 
> I think they look like the right way to go, but I think we will also
> need to go one step further. That is, for each subclass of
> DeliveryDuration, we will need to restrict the values of the properties
> minDeliveryDuration and maxDeliveryDuration, so as to indicate the
> relevant intervals. Either hasValue or toValue restrictions will be
> appropriate here (I forget which is best for this kind of case).
> 
> For instance, for FedEx2-3dayDuration, a restriction will say that "any
> instance of this class will have an instance of the minDeliveryDuration
> property with value 2" and similarly for maxDeliveryDuration having value 3.
> 
> Let me know if this needs further clarification.
> 
> Thanks very much,
> David Martin
Received on Tuesday, 5 August 2003 00:19:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 July 2007 12:25:43 GMT