[MOBY-dev] findService java api question
Edward Kawas
edward.kawas at gmail.com
Tue Aug 7 14:26:18 UTC 2007
Hi Andreas,
I will give you a little nudge to push you along!
The Booleans that you are talking about are the 'expandServices' and
'expandObjects' flags. If you go to
http://biomoby.open-bio.org/CVS_CONTENT/moby-live/Docs/MOBY-S_API/MobyCentra
lObjects.html#ServiceQueryObject, you can see what they are meant to do.
I think using the services browser (as part of the registry browser in
dashboard) will help in deciphering what the results should be, etc.
Hope this helps,
Eddie
> -----Original Message-----
> From: moby-dev-bounces at lists.open-bio.org [mailto:moby-dev-
> bounces at lists.open-bio.org] On Behalf Of Andreas Groscurth
> Sent: Tuesday, August 07, 2007 7:15 AM
> To: Core developer announcements
> Subject: [MOBY-dev] findService java api question
>
> Hi,
>
> I still dont get the findService api .... hope again, someone can help me
> out
>
> Central central = new CentralImpl();
> MobyService service = new MobyService();
> service.setCategory( "" );
>
> // create an input object... the service shall consume an AGI_LocusCode
> MobyDataObject inputObject = new MobyDataObject( "" );
> inputObject.setPrimaryNamespace( MobyNamespace.getNamespace(
> "AGI_LocusCode" ) );
> service.addInput( inputObject );
>
> // I want services which have a NucleotideSequence as output
> MobyDataObject dataObject = new MobyDataObject( "NucleotideSequence" );
> service.addOutput( dataObject );
>
> MobyService[] services = central.findService( service );
> for ( MobyService service2 : services ) {
> System.out.println(service2.getName());
> }
>
> System.out.println("-------------------------------");
>
> services = central.findService( service, null, false, false );
> for ( MobyService service2 : services ) {
> System.out.println(service2.getName());
> }
>
> System.out.println("-------------------------------");
>
> services = central.findService( service, null, true, false );
> for ( MobyService service2 : services ) {
> System.out.println(service2.getName());
> }
>
> System.out.println("-------------------------------");
>
> services = central.findService( service, null, false, true );
> for ( MobyService service2 : services ) {
> System.out.println(service2.getName());
> }
>
> Calling this I get
>
> getNASCinsertByAGI
> getNASCstockCodeByAGI
> getCorrelationByAGI
> getNASC_codebyAGI_locus
> getAthImageByAGI
> Locus2GeneAliases
> Echo3
> getNASCphenotypeByAGI
> NASCArraysGeneswingerByAGI
> getAGRISTFFamilyNameByAGI
> getNASCstockNameByAGI
>
> and also - what ever kind of true / false combination i use in
> findService...
> its always the same result.
>
> so 1. I dont understand the find service result at all
> and 2. why doesnt it matter to use different true / false values in the
> findservice call ?
>
> thanks
> Andreas
> _______________________________________________
> MOBY-dev mailing list
> MOBY-dev at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/moby-dev
More information about the MOBY-dev
mailing list