[MOBY-guts] biomoby commit

Gary Schiltz gss at pub.open-bio.org
Wed Sep 14 22:06:56 UTC 2005


gss
Wed Sep 14 18:06:56 EDT 2005
Update of /home/repository/moby/moby-live/S-MOBY/ref-impl/semanticmoby.org/src/org/semanticmoby/ref/servlets/example
In directory pub.open-bio.org:/tmp/cvs-serv17172/src/org/semanticmoby/ref/servlets/example

Modified Files:
	HelloWorldServlet.java 
Log Message:
Changed to work after major API overhaul

moby-live/S-MOBY/ref-impl/semanticmoby.org/src/org/semanticmoby/ref/servlets/example HelloWorldServlet.java,1.1,1.2
===================================================================
RCS file: /home/repository/moby/moby-live/S-MOBY/ref-impl/semanticmoby.org/src/org/semanticmoby/ref/servlets/example/HelloWorldServlet.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/S-MOBY/ref-impl/semanticmoby.org/src/org/semanticmoby/ref/servlets/example/HelloWorldServlet.java	2004/11/22 22:58:40	1.1
+++ /home/repository/moby/moby-live/S-MOBY/ref-impl/semanticmoby.org/src/org/semanticmoby/ref/servlets/example/HelloWorldServlet.java	2005/09/14 22:06:56	1.2
@@ -26,24 +26,21 @@
 		return getFileReader(DESCRIPTION_GRAPH_FILE);
 	}
 	
-    protected void handleRequest(MOBYProvider provider)
+    protected void handleRequest(MOBYService service)
     {
     	try
 		{
-	    	MOBYGraph graph = (MOBYGraph)
-				provider.getOperatesOn().iterator().next();
+	    	MOBYGraph graph = (MOBYGraph) service.getOperatesOn().next();
     	
 	    	MOBYSubject subject = (MOBYSubject) graph.getHasMapping();
     	
 	    	MOBYObject object = (MOBYObject)
-				subject.getDirectMappings().iterator().next();
+				subject.getDirectMappings().next();
     	
-	    	MOBYPropertyValueStatement stmt = (MOBYPropertyValueStatement)
-	    		object.getPropertyValueStatements().iterator().next();
+	    	MOBYPropValStmt stmt = (MOBYPropValStmt)
+	    		object.getPropValStmts().iterator().next();
 	    	
-			stmt.setPropertyValue(
-				new MOBYLiteral("Hello, world!"));
-			
+			stmt.getDefiningStmt().changeObject("Hello, world!");
 		}
 		// Silently ignore graphs without the required form
     	catch (Throwable t) {}




More information about the MOBY-guts mailing list