NAME

MOSES::MOBY::Data::Xref - a Moby cross-reference

SYNOPSIS

use MOSES::MOBY::Data::Xref;

# create a simple cross-reference
my $simple_xref = new MOSES::MOBY::Data::Xref
   ( id        => 'At263644',
     namespace => 'TIGR'
   );

# create an advanced cross-reference
my $advanced_xref = new MOSES::MOBY::Data::Xref
   ( id           => 'X112345',
     namespace    => 'EMBL',
     service      => 'getEMBLRecord',
     authority    => 'www.illuminae.com',
     evidenceCode => 'IEA',
     xrefType     => 'transform'
   );

DESCRIPTION

An object representing a cross reference. A cross reference is an optional component of any Moby object. It can be of a simple or of an advanced version.

A simple cross reference is a base Moby object (named 'Object') that can have only attributes 'namespace' and 'id' (no value, no article name, no children). In XML, it look like this:

<Object namespace="TAIR" id="TG1989"/>

An advanced cross reference additionally includes a reference to a Biomoby service that a creator of this cross reference (which is a Biomoby service provider) suggests to execute in order to get more about the cross-referenced data. Again, in XML it may look like this:

<moby:Xref moby:namespace="EMBL" moby:id="X112345" 
    authURI="www.illuminae.com" serviceName="getEMBLRecord" 
    evidenceCode="IEA" xrefType="transform"/>

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. All of them are of type string.

authority
service
evidenceCode
xrefType
description