MOBY::OntologyServer - A way for MOBY Central to query the object, service, namespace, and relationship ontologies
use MOBY::OntologyServer; my $OS = MOBY::OntologyServer->new(ontology => "object");
my ($success, $message, $existingURI) = $OS->objectExists(term => "Object");
if ($success){ print "object exists and it has the LSID $existingURI\n"; } else { print "object does not exist; additional message from server: $message\n"; }
Swappable interface to ontologies. It should deal with LSID's 100% of the time, and also deal with MOBY-specific common names for objects, services, namespaces, and relationship types.
Mark Wilkinson (markw@illuminae.com)
BioMOBY Project: http://www.biomoby.org
Title : new Usage : my $OS = MOBY::OntologyServer->new(%args) Function : Returns : MOBY::OntologyServer object Args : ontology => [object || service || namespace || relationship] database => mysql databasename that holds the ontologies host => mysql hostname username => mysql username password => mysql password port => mysql port dbh => pre-existing database handle to a mysql database
moby:newterm will return (0, $message, $MOBYLSID) newterm will return (0, $message, $MOBYLSID oldterm will return (1, $message, undef) newLSID will return (0, $desc, $lsid)
consumes ontology (object/service) consumes relationship term as term or LSID