vos:group vs. uws:JobInfo

Matthew Graham mjg at cacr.caltech.edu
Mon Aug 16 08:54:06 PDT 2010


Hi Paul,

Rereading the UWS spec, I realise that the exact format of a request is not defined anywhere. I had assumed, following standard REST practices, that a job would be initiated by a POST of the appropriate resource representation, i.e. a <uws:job> document, although there also existed a mapping from a HTML form to this for the case of simple key-value parameters. Otherwise it seems a little confusing to me that you would be using different resources to start, report, and potentially modify the same job.

	Cheers,

	Matthew



On Aug 16, 2010, at 4:37 AM, Paul Harrison wrote:

> 
> On 2010-08 -13, at 18:50, Matthew Graham wrote:
> 
>> Hi Paul,
>> 
>> Thanks for the swift response - this certainly helps the discussion. 
>> 
>> Is it your recommendation that any service which uses UWS specifically states what its JDL is? Is there a suitable format for this for validation, etc? In VOSpace 2.0, I have assumed that the <uws:parameters> define the job since there is no initial POST - what is posted is the full XML representation of the Job resource, e.g.:
> 
> OK - now I see what you are doing - As far as the UWS specification goes, I think that the initial POST can be anything, and I guess that the using the a document conforming to the uws:job schema is ok, though I think a rather confusing, and possibly limiting choice. I would personally use a specific vospace schema that does what you want directly as the JDL, rather than trying to squeeze this into the allowable spaces in the UWS job description (and incidentally the schema "any" definition in the UWS schema does mean that any <vos:transfer> needs to be in a <uws:jobInfo> element).
> 
> Cheers,
> 	Paul.
>> 
>> <uws:job xsi:schemaLocation="http://www.ivoa.net/xml/UWS/v1.0
>> UWS.xsd "
>>    xmlns:uws="
>> http://www.ivoa.net/xml/UWS/v1.0
>> "
>>  xmlns:xlink="
>> http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
>> ">
>>  <uws:jobId/>
>>  <uws:ownerId xsi:nil="true"/>
>>  <uws:phase>RUN<uws:phase/>
>>  <uws:startTime xsi:nil="true"/>
>>  <uws:endTime xsi:nil="true"/>
>>  <uws:executionDuration>0</executionDuration>
>>  <uws:destruction xsi:nil="true"/>
>>  <uws:parameters>
>>    <uws:parameter id="target">vos://nvo.caltech!vospace/mydata1</uws:parameter>
>>    <uws:parameter id="direction">vos://nvo.caltech!vospace/mydata2</uws:parameter>
>>    <uws:parameter id="keepBytes">false</uws:parameter>
>>  </uws:parameters>
>>  <uws:results/>
>> </uws:job>
>> 
>> or have I misread UWS?
>> 	Cheers,
>> 	Matthew
>> 
> 
> 



More information about the grid mailing list