[MOBY-guts] biomoby commit

Gary Schlitz gss at pub.open-bio.org
Thu Jul 29 23:38:40 UTC 2004


gss
Thu Jul 29 19:38:40 EDT 2004
Update of /home/repository/moby/moby-live/S-MOBY/ref-impl/semanticmoby.org/src/org/smoby/ref/servlets/example
In directory pub.open-bio.org:/tmp/cvs-serv21064/src/org/smoby/ref/servlets/example

Modified Files:
	HelloWorldServlet.java 
Log Message:
Remove use of MOBYObjectFactory

moby-live/S-MOBY/ref-impl/semanticmoby.org/src/org/smoby/ref/servlets/example HelloWorldServlet.java,1.2,1.3
===================================================================
RCS file: /home/repository/moby/moby-live/S-MOBY/ref-impl/semanticmoby.org/src/org/smoby/ref/servlets/example/HelloWorldServlet.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/S-MOBY/ref-impl/semanticmoby.org/src/org/smoby/ref/servlets/example/HelloWorldServlet.java	2004/07/21 22:01:19	1.2
+++ /home/repository/moby/moby-live/S-MOBY/ref-impl/semanticmoby.org/src/org/smoby/ref/servlets/example/HelloWorldServlet.java	2004/07/29 23:38:40	1.3
@@ -6,7 +6,6 @@
 import javax.servlet.http.*;
 
 import org.smoby.graph.*;
-import org.smoby.graph.impl.MOBYObjectFactory;
 import org.smoby.ref.servlets.*;
 import org.smoby.servlet.*;
 
@@ -34,7 +33,7 @@
 	    	MOBYGraph graph = (MOBYGraph)
 				provider.getOperatesOn().iterator().next();
     	
-	    	MOBYSubject subject = (MOBYSubject) graph.gethasMapping();
+	    	MOBYSubject subject = (MOBYSubject) graph.getHasMapping();
     	
 	    	MOBYObject object = (MOBYObject)
 				subject.getDirectMappings().iterator().next();
@@ -43,7 +42,7 @@
 	    		object.getPropertyValueStatements().iterator().next();
 	    	
 			stmt.setPropertyValue(
-				MOBYObjectFactory.newLiteralValue("Hello, world!"));
+				new MOBYLiteral("Hello, world!"));
 			
 		}
 		// Silently ignore graphs without the required form




More information about the MOBY-guts mailing list