Perl x Open Food Facts Hackathon: Paris, France - May 24-25 Learn more

NAME

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

SYNOPSIS

# construct a parser for service instances
my $parser = MOBY::RDF::Parsers::ServiceParser->new();
# get all services from a URL
my $service_arrayref = $parser->getServices(
);
# 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();