[MOBY-guts] biomoby commit

Gary Schlitz gss at pub.open-bio.org
Sat Mar 27 01:17:45 UTC 2004


gss
Fri Mar 26 20:17:45 EST 2004
Update of /home/repository/moby/moby-live/S-MOBY/ref-impl/example-providers/acmepubs.com/src/com/acmepubs/servlets
In directory pub.open-bio.org:/tmp/cvs-serv2857/src/com/acmepubs/servlets

Modified Files:
	CitationSearchServlet.java 
Log Message:
More reorganization

moby-live/S-MOBY/ref-impl/example-providers/acmepubs.com/src/com/acmepubs/servlets CitationSearchServlet.java,1.2,1.3
===================================================================
RCS file: /home/repository/moby/moby-live/S-MOBY/ref-impl/example-providers/acmepubs.com/src/com/acmepubs/servlets/CitationSearchServlet.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/example-providers/acmepubs.com/src/com/acmepubs/servlets/CitationSearchServlet.java	2004/03/19 00:37:48	1.2
+++ /home/repository/moby/moby-live/S-MOBY/ref-impl/example-providers/acmepubs.com/src/com/acmepubs/servlets/CitationSearchServlet.java	2004/03/27 01:17:45	1.3
@@ -6,8 +6,13 @@
 import javax.servlet.*;
 import javax.servlet.http.*;
 
+import org.smoby.tools.common.graph.MOBYGraph;
 import org.smoby.tools.server.servlet.AbstractMobyServlet;
 
+import com.hp.hpl.jena.rdf.model.Model;
+import com.hp.hpl.jena.rdf.model.Resource;
+import com.hp.hpl.jena.rdf.model.StmtIterator;
+
 /**
  * This class is a concrete subclass of AbstractMobyServlet that illustrates
  * how to be an S-MOBY provider.
@@ -29,6 +34,21 @@
 	}
     
     /**
+     * Handle a request for a citation search by looking up
+     * a gene symbol and returning a list of publication
+     * abstracts.
+     */
+    protected void handleRequest(MOBYGraph graph)
+    {
+        Model model = graph.getModel();
+        Resource subject = graph.getMapsToStmt().getSubject();
+//        StmtIterator it = model.listStatements(subject, AcmePubs.geneID, null);
+//        
+//        while (it.hasNext())
+//        String geneID = graph.getMapsToStmt().getObject().toString();
+    }
+    
+    /**
      * Return the last modification date of the description graph file
      */
     public long getLastModified(HttpServletRequest request)




More information about the MOBY-guts mailing list