Edward Kawas > MOBY > MOBY::RDF::Ontologies::ServiceTypes

Download:
MOBY-1.16.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  2
View/Report Bugs
Module Version: 1.04   Source  

NAME ^

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

SYNOPSIS ^

        use MOBY::RDF::Ontologies::ServiceTypes;
        # iustantiate
        my $x = MOBY::RDF::Ontologies::ServiceTypes->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 => 'Retrieval' });

DESCRIPTION ^

This module creates RDF XML for the Services ontology

AUTHORS ^

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

SUBROUTINES ^

createAll

Returns RDF XML for all nodes in the service type 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 Service Type 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'.

syntax highlighting: