NAME

MOBY::Client::OntologyServer - A client interface to the Ontology Server at MOBY Central

SYNOPSIS

use MOBY::Client::OntologyServer;
my $OS = MOBY::Client::OntologyServer->new();

my ($success, $message, $existingURI) = $OS->objectExists(term => "Object");
my ($success, $message, $existingURI) = $OS->serviceExists(term => "Retrieval");
my ($success, $message, $existingURI) = $OS->namespaceExists(term => "NCBI_gi");
my ($success, $message, $existingURI) = $OS->relationshipExists(term => "ISA");

if ($success){
    print "object exists and it has the LSID $existingURI\n";
} else {
   print "object does not exist; additional message from server: $message\n";
}

DESCRIPTION

This module is used primarily as a way of dealing with the flexibility MOBY allows in the use of "common" names versus LSID's. Calling the ontology server using this module will return the LSID of whatever it is you send it, even if you send the LSID itself. As such, you can now simply filter your terms through the ontologyserver and know that what is returned will be an LSID, and skip the checking step yourself.

PROXY SERVERS

If your site uses a proxy server, simply set the environment variable MOBY_PROXY=http://your.proxy.server/address

AUTHORS

Mark Wilkinson (markw at illuminae.com) Nina Opushneva (opushneva at yahoo.ca)

BioMOBY Project: http://www.biomoby.org

METHODS

new

Title     :	new
Usage     :	my $OS = MOBY::OntologyServer->new(%args)
Function  :	
Returns   :	MOBY::OntologyServer object
Args      :    host =>  URL to ontolgy_server script (default http://mobycentral.cbr.nrc.ca/cgi-bin/OntologyServer.cgi)
               proxy => URL to an HTTP proxy server if necessarray (optional)

objectExists

serviceExists

namespaceExists

relationshipExists