NAME

ServiceParser - An module for parsing the RDF that describes a SADI service in the mygrid service ontology

SYNOPSIS

use SADI::OWL::SADIServiceParser;
use Data::Dumper;

# construct a parser for service instances
my $parser = SADI::OWL::SADIServiceParser->new();

# get all services from a URL
my $service_arref = $parser->getServices(
   'http://sadiframework.org/services/getMolecularInteractions'
);

# print out details regarding 'getMolecularInteractions'
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:

SADI::OWL::SADIServiceParser->new()

getServices

Downloads RDF from $url, parses it and returns an arrayref of SADI::Service::Instance.

Input: a scalar URL

Example:

my $parser = SADI::OWL::SADIServiceParser->new();
my $service_arref = $parser->getServices(
   'http://sadiframework.org/services/getMolecularInteractions'
);