[MOBY-guts] biomoby commit

Gary Schlitz gss at pub.open-bio.org
Thu Jun 10 23:24:16 UTC 2004


gss
Thu Jun 10 19:24:16 EDT 2004
Update of /home/repository/moby/moby-live/S-MOBY/ref-impl/server/src/org/smoby/ref/tools
In directory pub.open-bio.org:/tmp/cvs-serv18720/ref-impl/server/src/org/smoby/ref/tools

Modified Files:
	DiscoveryQuery.java 
Log Message:
Commented out most functionality until I figure out the new
ResultBindingIterator protocol...

moby-live/S-MOBY/ref-impl/server/src/org/smoby/ref/tools DiscoveryQuery.java,1.4,1.5
===================================================================
RCS file: /home/repository/moby/moby-live/S-MOBY/ref-impl/server/src/org/smoby/ref/tools/DiscoveryQuery.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- /home/repository/moby/moby-live/S-MOBY/ref-impl/server/src/org/smoby/ref/tools/DiscoveryQuery.java	2004/05/19 18:26:40	1.4
+++ /home/repository/moby/moby-live/S-MOBY/ref-impl/server/src/org/smoby/ref/tools/DiscoveryQuery.java	2004/06/10 23:24:16	1.5
@@ -4,11 +4,10 @@
 import java.text.*;
 import java.util.*;
 
-import org.smoby.parser.Parser;
+import org.smoby.parser.*;
 import org.smoby.ref.tools.db.*;
 import org.smoby.graph.*;
-import org.smoby.graph.impl.MOBYObjectFactory;
-import org.smoby.graph.impl.MOBYProviderImpl;
+import org.smoby.graph.impl.*;
 import org.smoby.vocabulary.*;
 
 import com.hp.hpl.jena.db.*;
@@ -257,22 +256,23 @@
 		if (! node.asNode().isBlank()) {
 			return node;
 		}
-		
-		ResultBinding.ResultBindingIterator results = binding.iterator();
+		//ResultBinding
+		ResultBindingIterator results = binding.iterator();
 		
 		while (results.hasNext())
 		{
-			results.next();
+			Object object = results.next();
+			Value value = (Value) object;
 			String varName = results.varName();
-			Value value = results.value();
+//			Value value = results.value();
 			Object cachedName = varNames.get(node.toString());
 			if (varName.equals(cachedName))
 			{
-				if (value.isRDFLiteral()) {
-					return value.getRDFLiteral();
-				} else if (value.isRDFResource()) {
-					return value.getRDFResource();
-				}
+//				if (value.isRDFLiteral()) {
+//					return value.getRDFLiteral();
+//				} else if (value.isRDFResource()) {
+//					return value.getRDFResource();
+//				}
 			}
 		}
 		return node;




More information about the MOBY-guts mailing list