[MOBY-guts] biomoby commit

Dennis Wang dwang at pub.open-bio.org
Mon Jul 25 21:30:12 UTC 2005


dwang
Mon Jul 25 17:30:12 EDT 2005
Update of /home/repository/moby/moby-live/Perl/MOBY/Adaptor/moby
In directory pub.open-bio.org:/tmp/cvs-serv21692/Perl/MOBY/Adaptor/moby

Modified Files:
	queryapi.pm 
Log Message:
documentation added for getServiceNames() and getParentTerms()

moby-live/Perl/MOBY/Adaptor/moby queryapi.pm,1.9,1.10
===================================================================
RCS file: /home/repository/moby/moby-live/Perl/MOBY/Adaptor/moby/queryapi.pm,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- /home/repository/moby/moby-live/Perl/MOBY/Adaptor/moby/queryapi.pm	2005/07/25 20:43:49	1.9
+++ /home/repository/moby/moby-live/Perl/MOBY/Adaptor/moby/queryapi.pm	2005/07/25 21:30:12	1.10
@@ -579,11 +579,35 @@
 	die "getFromCollection not implemented in adaptor\n";
 }
 
+=head2 getServiceNames
+
+ Title     :	getServiceNames
+ Usage     :	my $un = $API->getServiceNames(%args)
+ Function  :	Execute a query for all service names
+ Args      :    no inputs needed
+ Returns   :    listref of hashrefs:
+                [{authority_uri => String,
+                servicename     => String}, ...]
+				one hashref for each service
+ 
+=cut
 # custom query subroutine for Moby::Central.pm->RetrieveServiceNames
 sub getServiceNames{	
 	die "getServiceNames not implemented in adaptor\n";
 }
 
+=head2 getParentTerms
+
+ Title     :	getParentTerms
+ Usage     :	my $un = $API->getParentTerms(%args)
+ Function  :	From a given term, traverse the ontology and get all parent terms
+ Args      :    relationship_type_id => Integer - a bind value for relationship_type_id on an underlying SQL-based data source
+ 				term => String - bindvalue for OntologyEntry.term
+ Returns   :    listref of hashrefs:
+                [{term => String}, ...]
+				one hashref for each parent
+ 
+=cut
 # custom query for Moby::Central.pm->_flatten
 sub getParentTerms{
 	die "getParentTerms not implemented in adaptor\n";




More information about the MOBY-guts mailing list