[MOBY-guts] biomoby commit

Dennis Wang dwang at pub.open-bio.org
Thu Aug 4 02:12:52 UTC 2005


dwang
Wed Aug  3 22:12:52 EDT 2005
Update of /home/repository/moby/moby-live/Perl/MOBY/Adaptor/moby
In directory pub.open-bio.org:/tmp/cvs-serv5881/Perl/MOBY/Adaptor/moby

Modified Files:
	queryapi.pm 
Log Message:
queryapi documentation reviewed

moby-live/Perl/MOBY/Adaptor/moby queryapi.pm,1.26,1.27
===================================================================
RCS file: /home/repository/moby/moby-live/Perl/MOBY/Adaptor/moby/queryapi.pm,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- /home/repository/moby/moby-live/Perl/MOBY/Adaptor/moby/queryapi.pm	2005/08/03 00:28:20	1.26
+++ /home/repository/moby/moby-live/Perl/MOBY/Adaptor/moby/queryapi.pm	2005/08/04 02:12:52	1.27
@@ -276,7 +276,16 @@
 	
 }
 
+# this should replace all other delete_*_input
+# still incomplete
+sub delete_inputs{
+	die "delete_inputs not implemented in adaptor\n";
+}
 
+#still incomplete 
+sub delete_output {  # this should replace all other delete_*_output
+    die "delete_output not implemented in adaptor\n";
+}
 
 #
 # collection_input table functions
@@ -1026,7 +1035,18 @@
 	die "delete_namespace_term2term not implemented in adaptor\n";
 }
 
-# still incomplete...
+=head2 check_object_usage
+
+ Title     :	check_object_usage
+ Usage     :	my $un = $API->check_object_usage(%args)
+ Function  :	Execute a custom query for objects that are used by some service
+ Args      :   	type => String - either namespace_lsid or namespace_term 
+ Returns   :    a list:
+ 				($err, $errstr)
+ 				$err = 1 if namespace is used by a service, 0 otherwise
+ 				$errstr = contains the error message 
+ 
+=cut
 # custom query subroutine for Moby::Central.pm->deregisterObjectClass()
 sub check_object_usage{
 	die "check_object_usage not implemented in adaptor\n";
@@ -1037,8 +1057,7 @@
  Title     :	check_namespace_usage
  Usage     :	my $un = $API->check_namespace_usage(%args)
  Function  :	Execute a custom query for namespaces that are used by some service
- Args      :    namespace_type_uris => String - namespace_type_uris you are checking for
-				term => String - the type of the namespace
+ Args      :   	type => String - either namespace_lsid or namespace_term 
  Returns   :    a list:
  				($err, $errstr)
  				$err = 1 if namespace is used by a service, 0 otherwise
@@ -1071,7 +1090,7 @@
                 Each hash represents a service
  Notes     : 	the fact that it returns a service_instance_id is bad since this
              	is only useful to an SQL-based API...
-		Keywords are assumed to be joined by "OR" for the query 
+				Keywords are assumed to be joined by "OR" for the query 
 
 =cut
 # custom query routine for Moby::Central.pm -> findService()




More information about the MOBY-guts mailing list