MOSES::MOBY::Def::Service - a BioMoby service definition
use MOSES::MOBY::Def::MobyService; # create a new BioMoby service definition my $service = new MOSES::MOBY::Def::Service ( name => 'myService', authority => 'www.tulsoft.org', email => 'george.bush@shame.gov', description => 'Hello world service!', url => 'http://my.service.com/endpoint', signatureURL=> 'http://my.service.com/path/to/rdf,' category => 'moby', type => 'retrival', inputs => ( {memberName => 'annotation', datatype => 'Feature'} ), outputs => ( {memberName => 'annotation', datatype => 'Feature'} ), secondarys => ( {memberName => 'annotation', datatype => 'Feature'} ), ); # get the LSID of this service print $service->lsid; # get the service details as a string print $service->toString; # get the service as a string of XML # (same format used to register the service) my $xml = $service->toXML->toString (1);
This module contains a definition of a BioMoby Service. With this module, you can create a service definition, set its details and then use the output from toXML to register this service with a mobycentral registry.
Edward Kawas (edward.kawas [at] gmail [dot] com) Martin Senger (martin.senger [at] gmail [dot] com)
Details are in MOSES::MOBY::Base. Here just a list of them:
A name of this service.
The category of service. Must be one of moby, cgi, or wsdl.
A list of inputs for this service. Must be of type MOSES::MOBY::Def::PrimaryData.
MOSES::MOBY::Def::PrimaryData
A list of outputs for this service. Must be of type MOSES::MOBY::Def::PrimaryData.
A list of secondary parameters for this service. Must be of type MOSES::MOBY::Def::SecondaryData.
MOSES::MOBY::Def::SecondaryData
To install MOSES::MOBY, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MOSES::MOBY
CPAN shell
perl -MCPAN -e shell install MOSES::MOBY
For more information on module installation, please visit the detailed CPAN module installation guide.