NAME

NamespaceParser - An module for obtaining namespaces from the RDF Namespace ontology


SYNOPSIS

        use MOBY::RDF::Parsers::NamespaceParser;
        use Data::Dumper;
        # construct a parser for namespaces
        my $parser = MOBY::RDF::Parsers::NamespaceParser->new();
        # get all namespaces from a URL
        my $namespace_href = $parser->getNamespaces('http://biomoby.org/RESOURCES/MOBY-S/Namespaces');
        # print out details regarding 'NCBI_gi'
        print Dumper($namespace_href->{'NCBI_gi'});


DESCRIPTION

This module contains the methods required to download and parse Namespace RDF into individual namespaces


AUTHORS

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


SUBROUTINES

new

Contructs a new NamespaceParser.

Input: none.

Example:

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

getNamespaces

Downloads RDF from $url, parses it and returns a hashref of hash. The key into the hashref is a namespace name and the hash value contains information on that namespace. The keys for the inner hash are:

        definintion
        authURI
        email
        lsid

Input: a scalar URL

Example:

        my $parser = MOBY::RDF::Parsers::NamespaceParser->new();
        my $namespace_href = $parser->getNamespaces('http://biomoby.org/RESOURCES/MOBY-S/Namespaces');