The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

MOSES::MOBY::Def::Namespace - a definition of a BioMoby Namespace

SYNOPSIS

use MOSES::MOBY::Def::Namespace;

# create a new BioMoby namespace definition
my $namespace = new MOSES::MOBY::Def::Namespace
   ( name         => 'NCGR',
     authority    => 'generationcp.org',
     email        => 'yes@no',
     description  => 'This is a namespace that...',
   );

# get an LSID of a namespace
print $namespace->lsid;

# get the namespace details as a string
print $namespace->toString;
	
# get the namespace as a string of XML
# (same format used to register the namespace)
my $xml = $namespace->toXML->toString (1);

DESCRIPTION

This module contains a definition of a BioMoby Namespace. With this module, you can create a namespace, set its details and then use the output from toXML to register this namespace 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
authority
email
description
lsid

SUBROUTINES