[MOBY-guts] biomoby commit

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


gss
Thu Jul 29 19:44:37 EDT 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-serv21288/S-MOBY/ref-impl/example-providers/acmepubs.com/src/com/acmepubs/servlets

Modified Files:
	CitationSearchServlet.java 
Log Message:
Minor changes

moby-live/S-MOBY/ref-impl/example-providers/acmepubs.com/src/com/acmepubs/servlets CitationSearchServlet.java,1.11,1.12
===================================================================
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.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- /home/repository/moby/moby-live/S-MOBY/ref-impl/example-providers/acmepubs.com/src/com/acmepubs/servlets/CitationSearchServlet.java	2004/07/15 20:30:18	1.11
+++ /home/repository/moby/moby-live/S-MOBY/ref-impl/example-providers/acmepubs.com/src/com/acmepubs/servlets/CitationSearchServlet.java	2004/07/29 23:44:37	1.12
@@ -6,7 +6,6 @@
 import javax.servlet.http.*;
 import org.smoby.servlet.*;
 import org.smoby.graph.*;
-import org.smoby.graph.impl.MOBYObjectFactory;
 import org.smoby.vocabulary.*;
 import com.acmepubs.vocabulary.*;
 
@@ -54,7 +53,7 @@
                 
                 // The subject of the graph should be a MOBYSubject
                 //
-                MOBYSubject subject = (MOBYSubject) graph.gethasMapping();
+                MOBYSubject subject = (MOBYSubject) graph.getHasMapping();
                 
                 // That object should have a single subproperty of moby:Property,
                 // namely geneSymbol; its value should be a literal
@@ -77,8 +76,7 @@
                 // based on a base URI string and the geneSymbol that was passed
                 //
                 String baseURI = "http://db.yeastgenome.org/cgi-bin/SGD/reference/geneinfo.pl?locus=";
-                literal = MOBYObjectFactory.newLiteralValue(
-                        baseURI + geneSymbol);
+                literal = new MOBYLiteral(baseURI + geneSymbol);
                 stmt.setPropertyValue(literal);
             }
         }




More information about the MOBY-guts mailing list