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

NAME

ServiceParser - An module for parsing the RDF that describes a biomoby service in the service instance ontology

SYNOPSIS

        use MOBY::RDF::Parsers::ServiceParser;
        use Data::Dumper;

        # construct a parser for service instances
        my $parser = MOBY::RDF::Parsers::ServiceParser->new();

        # get all services from a URL
        my $service_arrayref = $parser->getServices(
            'http://biomoby.org/RESOURCES/MOBY-S/ServiceInstances/bioinfo.icapture.ubc.ca/getGoTerm'
        );

        # print out details regarding 'bioinfo.icapture.ubc.ca/getGoTerm'
        print Dumper( $service_arrayref );

DESCRIPTION

This module contains the methods required to download and parse service instance RDF into individual services

WARNING

Do not attempt to parse service instance RDF containing more than a few hundred services because the RDF is parsed and held in memory.

AUTHORS

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

SUBROUTINES

new

Contructs a new ServiceParser.

Input: none.

Example:

        MOBY::RDF::Parsers::ServiceParser->new()

getServices

Downloads RDF from $url, parses it and returns an arrayref of MOBY::Client::ServiceInstance.

Input: a scalar URL

Example:

        my $parser = MOBY::RDF::Parsers::ServiceParser->new();
        my $service_arref = $parser->getServices('http://biomoby.org/RESOURCES/MOBY-S/ServiceInstances/bioinfo.icapture.ubc.ca/getGoTerm');