[MOBY-dev] findService... how to ?

Paul Gordon gordonp at ucalgary.ca
Fri Jul 6 18:37:26 UTC 2007


Hi Andreas,

For the returned object, you are asking for any object at all (you 
happen to name it "SimpleAnnotatedJPEGImage". 
MobyDataObject is ONLY for base objects.
The constructor you want is the one for non-primitives of the ontology, 
MobyDataComposite...

MobyDataObject dataObject = new MobyDataComposite("SimpleAnnotatedJPEGImage");

> Hi,
>
> i keep the list busy ;-)
>
> its just... I dont quite understand the findservice method....
>
> as far as I understood it - with the following I get all services which has an 
> image as output and an AGI Locuscode as input
>
> MobyDataObject object = new MobyDataObject( "" );
> object.setPrimaryNamespace( new MobyNamespace( "AGI_LocusCode" ) );
> service.addInput( object );
> MobyDataObject dataObject = new MobyDataObject( "SimpleAnnotatedJPEGImage" );
> MobyDataObjectSet set = new MobyDataObjectSet( "" );
> set.add( dataObject );
> service.addOutput( set );
>
> MobyService[] services = central.findService( service, null, false, false );
>
> this is an extract of what I get back
>
> Service getTairRefsByAgi 
> Service getGOAccsByAGICode 
> Service genefarmGetGeneIDByAGI 
> Service PhytoprotGetByAGICode 
> Service getReporterImageByAGI_dev 
> Service getPMCIDsByAGI 
>
> why getPMCIDsByAGI ? why getGOAccsByAGICode ? and so on
> both das not have any SimpleAnnotatedJPEGImage anywhere written....
>
> Thanks
> Andreas
> _______________________________________________
> MOBY-dev mailing list
> MOBY-dev at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/moby-dev
>
> !DSPAM:60005,468e4685802139014536!
>
>
>
>   




More information about the MOBY-dev mailing list