[MOBY-guts] biomoby commit

Eddie Kawas kawas at dev.open-bio.org
Sat Jan 27 00:14:55 UTC 2007


kawas
Fri Jan 26 19:14:55 EST 2007
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/rdf/builder
In directory dev.open-bio.org:/tmp/cvs-serv2362/Java/src/main/org/biomoby/client/rdf/builder

Modified Files:
	ServiceInstanceRDF.java 
Log Message:
when doing findservice, i set the category to ""
moby-live/Java/src/main/org/biomoby/client/rdf/builder ServiceInstanceRDF.java,1.33,1.34
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/rdf/builder/ServiceInstanceRDF.java,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/rdf/builder/ServiceInstanceRDF.java	2006/10/25 02:33:23	1.33
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/rdf/builder/ServiceInstanceRDF.java	2007/01/27 00:14:55	1.34
@@ -2,10 +2,7 @@
 
 import java.io.BufferedReader;
 import java.io.ByteArrayOutputStream;
-import java.io.FilterOutputStream;
-import java.io.IOException;
 import java.io.InputStreamReader;
-import java.io.OutputStream;
 import java.net.URL;
 import java.util.HashMap;
 import java.util.Map;
@@ -34,7 +31,6 @@
 import com.hp.hpl.jena.rdf.model.Resource;
 import com.hp.hpl.jena.vocabulary.RDF;
 import com.ibm.lsid.LSID;
-import com.ibm.lsid.LSIDException;
 import com.ibm.lsid.MalformedLSIDException;
 
 /*
@@ -223,6 +219,7 @@
 			}
 			// set up the query service
 			service = new MobyService(serviceName);
+			service.setCategory("");
 			service.setAuthority(domain);
 			// query for the service
 			try {
@@ -254,6 +251,7 @@
 			// set up the query service
 			service = new MobyService();
 			service.setAuthority(domain);
+			service.setCategory("");
 			// query for the service
 			try {
 				services = central.findService(service);
@@ -308,6 +306,7 @@
 			// set up the query service
 			service = new MobyService(serviceName);
 			service.setAuthority(domain);
+			service.setCategory("");
 			// query for the service
 			try {
 				services = central.findService(service);
@@ -338,6 +337,7 @@
 			// set up the query service
 			service = new MobyService();
 			service.setAuthority(domain);
+			service.setCategory("");
 			// query for the service
 			try {
 				services = central.findService(service);
@@ -376,6 +376,7 @@
 		}
 		// set up the query service
 		service = new MobyService("");
+		service.setCategory("");
 		service.setAuthority(URI);
 		// query for the service
 		try {
@@ -454,6 +455,7 @@
 		}
 		// set up the query service
 		service = new MobyService("");
+		service.setCategory("");
 		service.setAuthority(URI);
 		// query for the service
 		try {
@@ -495,6 +497,7 @@
 		}
 		// set up the query service
 		service = new MobyService(name);
+		service.setCategory("");
 		service.setAuthority(URI);
 		// query for the service
 		try {
@@ -537,6 +540,7 @@
 		}
 		// set up the query service
 		service = new MobyService(name);
+		service.setCategory("");
 		service.setAuthority(URI);
 		// query for the service
 		try {
@@ -1018,6 +1022,7 @@
 		}
 		// set up the query service
 		service = new MobyService(name);
+		service.setCategory("");
 		service.setAuthority(uri);
 		// query for the service
 		try {
@@ -1040,6 +1045,7 @@
 		}
 		// set up the query service
 		service = new MobyService(name);
+		service.setCategory("");
 		service.setAuthority(uri);
 		// service.setLSID(lsid);
 		// query for the service
@@ -1068,6 +1074,7 @@
 		}
 		// set up the query service
 		service = new MobyService(name);
+		service.setCategory("");
 		service.setAuthority(uri);
 		// query for the service
 		try {
@@ -1081,25 +1088,4 @@
 		}
 		return "";
 	}
-
-	/**
-	 * 
-	 * Usage: ServiceInstanceRDF <i>authorityURI </i> <i>[serviceName] </i>
-	 * <p>
-	 * <b>authorityURI: </b> is the authortitys' domain to query
-	 * <p>
-	 * <b>serviceName: </b>optional argument that identifies a specific service
-	 * instance
-	 * <p>
-	 * 
-	 * @throws LSIDException
-	 */
-	public final static void main(String[] args) throws Exception {
-		// log.info(findService("bioinfo.inibap.org","Get_TropGENE_Distance_Matrix",
-		// false));
-		// log.info(findService("bioinfo.icapture.ubc.ca","MOBYSHoundGetGenBankGFF",
-		// false));
-		log.info(findService("blah.blah.blah", "Echo_test", "http://bioinfo.icapture.ubc.ca/cgi-bin/mobycentral/MOBY-Central.pl", "http://bioinfo.icapture.ubc.ca/MOBY/Central", false));
-		// log.info(findService("", "", false));
-	}
 }




More information about the MOBY-guts mailing list