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

Re: Data-flow redux

From: Drew McDermott <drew.mcdermott@yale.edu>
Date: Sun, 12 Oct 2003 22:19:10 -0400 (EDT)
Message-Id: <200310130219.h9D2JAw17161@pantheon-po01.its.yale.edu>
To: www-ws@w3.org

   I thought that we were to add a property "processOf" to the parameter 
   that allows us to find the process a parameter is related to.  The 
   property will tie parameters and processes together so that there is no 
   confusion which parameter of which process to refer to. 

The parameter can have a processOf property, but it won't solve the
problem, because we have to somehow refer to the parameter of a
particular _process instance_, not a process.

   I do not fully understand the last example, but I believe that tags are 
   no longer needed if we adopt this property.

Here's the example in question:

   >    (Sequence (tag s1 (toodle))
   >              (y(out s1) => x(in s2))
   >	          (toodle)
   >              (tag s2 (doo)))

We have to have a way of indicating that we mean the 'x' belonging to
the call to (doo).  After all, if 's2' were a call to (toodle), then a
flow to parameter 'x' would be ambiguous.

Actually, your message has revealed a bug in my proposed RDF syntax.
You can't say 

  <Atomic rdf:ID="doo">    
	 <InputParameter rdf:ID="x"> 
		     <owl:onProperty rdf:resource="&owl-s;parameterValue"/>
		     <owl:allValuesFrom rdf:resource="&xsd;string"/>

because two processe are allowed to have InputParameters with the same
name.  So we can't use IDs as names.  We'll have to switch to
something like this:

	 <InputParameter paramName="x"> 

So, in the example as given, if we suppose that (doo) and (toodle)
both have input parameters named "x," the data flow from the first
(toodle) to the (doo) would have to be indicated thus:

	 <ParameterSpec psParam="y" 
	 <ParameterSpec psParam="x"

where "#s1" and "#s2" are tag names.  We might as well eliminate the
use of IDs to identify tagBound's as well, since it's less than

There are other ways to do all this.  We could just use variables:

	(Let ((y (toodle)))
	      (doo y)))

Dataflow annotations have these advantages:

- The fact that a given flow can be used at most once supports simpler
  reasoning about the values produced by processes (okay, I'm guessing).

- Dataflows supplement control constructs in a useful way, allowing
  them to be augmented with extra dependencies while one step waits
  for another to provide it with data.

Another possibility is to name the Dataflow object, and specify which
Dataflow object the results of a step go to, and which they come from:

   (With-dataflows (c1)
          (toodle y => c1)
          (doo x <= c1)))

This can be considered a variant of the variable concept, with the
disciplines imposed by dataflows easier to see.

                                             -- Drew

                                   -- Drew McDermott
                                      Yale Computer Science Department
Received on Sunday, 12 October 2003 22:19:12 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:37:10 UTC