NAME
ServiceTypeParser - An module for obtaining services from the RDF Service Type ontology
SYNOPSIS
use MOBY::RDF::Parsers::ServiceTypeParser;
use Data::Dumper;
# construct a parser for service types
my $parser = MOBY::RDF::Parsers::ServiceTypeParser->new();
# get all service types from a URL
my $services_href = $parser->getNamespaces('http://biomoby.org/RESOURCES/MOBY-S/Services');
# print out details regarding 'Analysis'
print Dumper($services_href->{'Analysis'});
DESCRIPTION
This module contains the methods required to download and parse Service Type RDF into individual service types
AUTHORS
Edward Kawas (edward.kawas [at] gmail [dot] com)
SUBROUTINES
new
Contructs a new ServiceTypeParser.
Input: none.
Example:
MOBY::RDF::Parsers::ServiceTypeParser->new()
getServiceTypes
Downloads RDF from $url, parses it and returns a hashref of hash. The key into the hashref is a service type name and the hash value contains information on that service type. The keys for the inner hash are:
definintion
authURI
email
lsid
Input: a scalar URL
Example:
my $parser = MOBY::RDF::Parsers::ServiceTypeParser->new();
my $namespace_href = $parser->getServiceTypes('http://biomoby.org/RESOURCES/MOBY-S/Services');