The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

SYNOPSIS

        use MOBY::RDF::Ontologies::Services;

        my $x = MOBY::RDF::Ontologies::Services->new;

        # get pretty printed RDF/XML for one service
        print $x->findService({ 
                serviceName => 'MOBYSHoundGiFromGOIDListAndECode',
                authURI => 'bioinfo.icapture.ubc.ca' 
        });

        # get unformatted RDF/XML for a bunch of services from a single provider
        print $x->findService({ 
                prettyPrint => 'no',
                authURI => 'bioinfo.icapture.ubc.ca' 
        });

        # get unformatted RDF/XML for a bunch of services from a single provider without isAlive info
        print $x->findService({ 
                prettyPrint => 'no',
                authURI => 'bioinfo.icapture.ubc.ca',
                isAlive => 'no' 
        });

        # get unformatted RDF/XML for all services
        print $x->findService({ 
                prettyPrint => 'no' 
        });

DESCRIPTION

        This module aids in the creation of RDF/XML for service instances in the BioMOBY world.

AUTHORS

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

SUBROUTINES

new

Instantiate a Services object.

Parameters: * A Hash with keys: -> endpoint => the BioMOBY registry endpoint to use <optional> -> namespace => the BioMOBY registry namespace to use <optional>

findService

Return a string of RDF in XML service instances in the service ontology. This routine consumes a hash as input with keys: authURI: the service provider URI <optional> serviceName: the name of a particular service <optional> isAlive : whether (yes) or not (no) to add isAlive information. Defaults to 'yes'. prettyPrint: whether (yes) or not (no) to output 'pretty print' formatted XML. Defaults to 'yes'.

#TODO should i add all parameters from findService here?

_createRDFModel

this routine takes an array of MOBY::Client::ServiceInstance objects and creates and RDF model for them all.