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

NAME

MOSES::MOBY::Def::DataType - a definition of BioMoby data type

SYNOPSIS

 use MOSES::MOBY::Def::DataType;

 # create a new data type
 my $datatype = new MOSES::MOBY::Def::DataType
    ( name        => 'MySequence',
      authority   => 'www.tulsoft.org',
      email       => 'george.bush@shame.gov',
      description => 'Good moooorning, sequence!',
      parent      => 'DNASequence',
      children    => ( {memberName => 'annotation', datatype => 'Feature'} ),
    );

 # get the name of this data type
 print $datatype->name;

 # set new authority
 $datatype->authority ('www.biomoby.org');
        
 # get this data type in XML
 my $xml = $datatype->toXML;
 print $xml->toString (2);

DESCRIPTION

A container representing a data type used in the Moby registry (in the BioMoby speak it is called Object Class). The Moby data types are used to specify what types of inputs and outputs are needed or produced by Moby services.

This object does not carry real data but rather a definition (metadata) of one of the most important BioMoby entities - a data type.

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 data type. For example: DNASequence.

authority
email
description
parent

A name of a parent data type.

children

A list of relationships to the children data types. Must be of type MOSES::MOBY::Def::Relationship.

lsid

SUBROUTINES