[MOBY-l] MobyDataType 'Object'

Edward Kawas edward.kawas at gmail.com
Fri Oct 19 13:20:28 UTC 2007


Hi Ola,

The service that you mention expects an identifier (Kegg pathway id) set in
the id portion of the datatype Object. The combination of the id/ns portion
of Object usually specifies a db/id into that db. So when service providers
want to create a service that queries some db, they usually have input of
object. They would expect that you provide the query identifier as the id in
object.

Hope this makes sense,

Eddie

> -----Original Message-----
> From: moby-l-bounces at lists.open-bio.org 
> [mailto:moby-l-bounces at lists.open-bio.org] On Behalf Of Ola Spjuth
> Sent: Friday, October 19, 2007 5:41 AM
> To: moby-l at lists.open-bio.org
> Subject: [MOBY-l] MobyDataType 'Object'
> 
> Hi,
> 
> How should the primitive MobyDataType 'Object' be treated? If 
> a service only has a input with a primitive 'Object', what 
> does it expect?
> 
> Example (implemented in jMoby):
> The service 'getKeggPathwayAsGif' has primary input name='pathway'  
> with MobyDataType 'object', hence instantiating from this 
> datatypeName creates a MobyDataObject, which cannot contain a 
> value (the static method createInstanceFromString(typename, 
> value) sets the 'value' parameter as ID for the 
> MobyDataObject). Is this intentional and in that case what is 
> the intention?
> 
> Why does not the service use the DataType 'String' if that's 
> what it expects? Is the dirty workaround to always supply a 
> MobyDataString if a DataType is set to Object?
> 
> Cheers,
> 
>     .../Ola
> _______________________________________________
> moby-l mailing list
> moby-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/moby-l




More information about the moby-l mailing list