[moby] [MOBY-l] Dynamically discovering service parameters
Mark Wilkinson
markw at illuminae.com
Fri Jul 22 22:56:58 UTC 2005
Doh!
I meant $ServiceInstance->secondary, not $ServiceInstance->output
Sorry about that!
M
On Fri, 2005-07-22 at 12:37 -0700, Mark Wilkinson wrote:
> Hmmm... it *should* return secondary articles as, but there may be a
> bug. You might want to try the new release of the codebase and see if
> that solves your problems.
>
> M
>
> On Fri, 2005-07-22 at 13:47 -0500, bgulden at purdue.edu wrote:
> > According to the API, the function $ServiceInstance->input/output will only
> > return SimpleArticles or a CollectionArticles. I have tried using these
> > functions on services where I know there are secondary inputs and the only
> > articles that appear are Simple or Collection. If this was recently changed
> > in the MOBY code, that would explain my problems (I have an older release of
> > the code Sept '04 I believe).
> >
> > Thanks again,
> > -Brian
> >
> > Quoting Mark Wilkinson <markw at illuminae.com>:
> >
> > > Hi Brian,
> > >
> > > Thanks for the heads-up! The documentation for
> > > MOBY::Client::ServiceInstance hasn't been updated properly.
> > >
> > > You should be able to get what you want as follows:
> > >
> > > my $outputs $ServiceInstance->output;
> > > # returns MOBY::Cient::SimpleArticle, CollectionArticle,
> > > # and/or SecondaryArticle objects
> > >
> > > foreach (@$outputs){
> > > if ($_->isSecondary){
> > > print $_->articleName;
> > > print $_->min;
> > > print $_->max;
> > > print $_->default;
> > > print $_->datatype;
> > > }
> > > }
> > >
> > >
> > > Hope that helps!
> > >
> > > M
> > >
> > >
> > > On Fri, 2005-07-22 at 11:20 -0500, bgulden at purdue.edu wrote:
> > > > Is there any way to dynamically discover the secondary input for each
> > > > service? Perhaps something akin to $ServiceInstance->input?
> > > >
> > > > Thanks
> > > > -Brian Gulden
> > > >
> > > >
> > > > _______________________________________________
> > > > moby-l mailing list
> > > > moby-l at biomoby.org
> > > > http://biomoby.org/mailman/listinfo/moby-l
> > > --
> > > "Ontologists do it with the edges!"
> > >
> > > Mark Wilkinson
> > > Asst. Professor
> > > Dept. of Medical Genetics
> > > University of British Columbia
> > > PI in Bioinformatics
> > > iCAPTURE Centre
> > > St. Paul's Hospital
> > > Rm. 166, 1081 Burrard St.
> > > Vancouver, BC, V6Z 1Y6
> > > tel: 604 682 2344 x62129
> > > fax: 604 806 9274
> > >
> > >
> >
> >
> >
--
"Ontologists do it with the edges!"
Mark Wilkinson
Asst. Professor
Dept. of Medical Genetics
University of British Columbia
PI in Bioinformatics
iCAPTURE Centre
St. Paul's Hospital
Rm. 166, 1081 Burrard St.
Vancouver, BC, V6Z 1Y6
tel: 604 682 2344 x62129
fax: 604 806 9274
More information about the moby-l
mailing list