[MOBY-guts] biomoby commit

Gary Schlitz gss at pub.open-bio.org
Wed Jun 16 23:30:44 UTC 2004


gss
Wed Jun 16 19:30:44 EDT 2004
Update of /home/repository/moby/moby-live/S-MOBY/ref-impl/server/src/org/smoby/ref/servlets/dev
In directory pub.open-bio.org:/tmp/cvs-serv22689/S-MOBY/ref-impl/server/src/org/smoby/ref/servlets/dev

Modified Files:
	RepositoryPrintServlet.java 
Log Message:
Print individual statements as N-triples

moby-live/S-MOBY/ref-impl/server/src/org/smoby/ref/servlets/dev RepositoryPrintServlet.java,1.2,1.3
===================================================================
RCS file: /home/repository/moby/moby-live/S-MOBY/ref-impl/server/src/org/smoby/ref/servlets/dev/RepositoryPrintServlet.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/server/src/org/smoby/ref/servlets/dev/RepositoryPrintServlet.java	2004/06/14 20:59:36	1.2
+++ /home/repository/moby/moby-live/S-MOBY/ref-impl/server/src/org/smoby/ref/servlets/dev/RepositoryPrintServlet.java	2004/06/16 23:30:44	1.3
@@ -22,7 +22,10 @@
             if (model.isEmpty()) {
             	out.println("The repository is empty");
             } else {
-            	model.write(out, "RDF/XML-ABBREV");
+            	StmtIterator it = model.listStatements();
+            	while (it.hasNext()) {
+            		out.println(it.nextStatement());
+            	}
             }
             model.close();
         } catch (StorageException e) {




More information about the MOBY-guts mailing list