The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MOSES::MOBY::Def::Service - a BioMoby service definition

SYNOPSIS

 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);

DESCRIPTION

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.

AUTHORS

 Edward Kawas (edward.kawas [at] gmail [dot] com)
 Martin Senger (martin.senger [at] gmail [dot] com)

ACCESSIBLE ATTRIBUTES

Details are in MOSES::MOBY::Base. Here just a list of them:

name

A name of this service.

authority
email
description
type
url
signatureURL
category

The category of service. Must be one of moby, cgi, or wsdl.

inputs

A list of inputs for this service. Must be of type MOSES::MOBY::Def::PrimaryData.

outputs

A list of outputs for this service. Must be of type MOSES::MOBY::Def::PrimaryData.

secondarys

A list of secondary parameters for this service. Must be of type MOSES::MOBY::Def::SecondaryData.

lsid

SUBROUTINES