NAME

MOBY::RDF::Ontologies::Objects - Create RDF/OWL for Moby datatypes


SYNOPSIS

        use MOBY::RDF::Ontologies::Objects;
        my $x = MOBY::RDF::Ontologies::Objects->new;
        # get RDF for all datatypes in unformatted XML
        my $rdf_all = $x->createAll({ prettyPrint => 'no' });
        # get RDF for a specific datatype as formatted XML
        my $rdf = $x->createByName( { term => 'DNASequence' });


DESCRIPTION

This module creates RDF/XML for the Objects ontology.


AUTHORS

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


SUBROUTINES

createAll

Return a string of RDF in XML that represents all of the datatypes in the objects ontology.

 This routine consumes a hash as input with keys:
        prettyPrint: whether (yes) or not (no) to output 'pretty print' formatted XML. Defaults to 'yes'.

createByName

Return a string of RDF in XML that represents a specific datatype in the Objects ontology. This sub routine takes one argument, 'term', that represents the ontology term that you would like to create RDF for. For example, the term 'DNASequence' would return RDF describing DNASequence and all of its parents and container relationships.

 This routine consumes a hash as input with keys:
        term: the node to retrieve B<required>
        prettyPrint: whether (yes) or not (no) to output 'pretty print' formatted XML. Defaults to 'yes'.