ServiceParser - An module for parsing the RDF that describes a SADI service in the mygrid service ontology
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 );
This module contains the methods required to download and parse service instance RDF into individual services
Do not attempt to parse service instance RDF containing more than a few hundred services because the RDF is parsed and held in memory.
Edward Kawas (edward.kawas [at] gmail [dot] com)
Contructs a new ServiceParser.
Input: none.
Example:
SADI::OWL::SADIServiceParser->new()
Downloads RDF from $url, parses it and returns an arrayref of SADI::Service::Instance.
SADI::Service::Instance
Input: a scalar URL
my $parser = SADI::OWL::SADIServiceParser->new(); my $service_arref = $parser->getServices( 'http://sadiframework.org/services/getMolecularInteractions' );
To install SADI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SADI
CPAN shell
perl -MCPAN -e shell install SADI
For more information on module installation, please visit the detailed CPAN module installation guide.