Edward Kawas
and 1 contributors

NAME

MOBY::RDF::Ontologies::Namespaces - Create RDF/OWL for Moby

SYNOPSIS

        use MOBY::RDF::Ontologies::Namespaces;
        # iustantiate
        my $x = MOBY::RDF::Ontologies::Namespaces->new;

        # get all ontology terms in unformatted XML
        print $x->createAll({ prettyPrint => 'no' });

        # get a specific ontology term in 'pretty print XML'
        print $x->createByName({term => 'NCBI_gi' });

DESCRIPTION

This module creates RDF XML for the Namespace ontology

AUTHORS

 Edward Kawas (edward.kawas [at] gmail [dot] com)

SUBROUTINES

createAll

Returns RDF XML for all nodes in the Namespace ontology as a pretty printed String of XML. This routine consumes a hash as input with keys: prettyPrint: whether (yes) or not (no) to output formatted XML. Defaults to 'yes'.

createByName

Returns RDF XML for a specific node in the Namespace ontology as a pretty printed String of XML. This routine consumes a hash as input with keys: term: the node to retrieve required prettyPrint: whether (yes) or not (no) to output formatted XML. Defaults to 'yes'.