W3C home > Mailing lists > Public > public-sws-ig@w3.org > November 2004

Re: How does valueType work?

From: David Martin <martin@AI.SRI.COM>
Date: Sun, 28 Nov 2004 09:03:01 -0800
Message-ID: <41AA04C5.3040206@ai.sri.com>
To: Daniel Elenius <daele@ida.liu.se>
CC: public-sws-ig <public-sws-ig@w3.org>

Daniel Elenius wrote:

> Can someone explain how the process:valueType property is supposed to be 
> used? I'm confused.

This came in pretty much at the last minute, along with Produce.  We 
should get an example of it into the next release.

It's used when an output has been declared to the the union of 2 or more
classes (say, OutputType = union of A and B). If you want to say that
under a certain condition, the type of the output is going to be A you
can say it like this:

             <process:toParam rdf:resource="#My_Output"/>
             <process:valueType> rdf:datatype="&xsd;#anyURI">

This could appear either in a Result or in a Produce (assuming that
Produce stays the same).

We also have the ability to say something like this using an effect (as
in the congo fragment copied below) but I think valueType is nicer.

             This expression just says that the FullCongoBuyOutput will
be of type
           <expr:expressionBody rdf:parseType="Literal">
               <rdf:rest rdf:resource="&rdf;#nil"/>

- David
Received on Sunday, 28 November 2004 17:03:46 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:54:14 UTC