[MOBY-guts] biomoby commit
Eddie Kawas
kawas at dev.open-bio.org
Thu Feb 28 16:27:26 UTC 2008
kawas
Thu Feb 28 11:27:26 EST 2008
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/extended
In directory dev.open-bio.org:/tmp/cvs-serv22056/Java/src/main/org/biomoby/shared/extended
Modified Files:
ServiceInstanceParser.java ServiceTypeParser.java
NamespaceParser.java DataTypeParser.java
Removed Files:
Utils.java
Log Message:
Updated the parsers to use CentralImpl.getResource(URL) rather than Utils. Removing the Utils class.
moby-live/Java/src/main/org/biomoby/shared/extended ServiceInstanceParser.java,1.22,1.23 ServiceTypeParser.java,1.10,1.11 NamespaceParser.java,1.9,1.10 DataTypeParser.java,1.11,1.12 Utils.java,1.1,NONE
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/extended/ServiceInstanceParser.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/extended/ServiceInstanceParser.java 2008/02/27 19:18:23 1.22
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/extended/ServiceInstanceParser.java 2008/02/28 16:27:25 1.23
@@ -8,6 +8,7 @@
import java.util.HashMap;
import java.util.Map;
+import org.biomoby.client.CentralImpl;
import org.biomoby.client.rdf.vocabulary.DC_PROTEGE;
import org.biomoby.client.rdf.vocabulary.FetaVocabulary;
import org.biomoby.shared.MobyDataType;
@@ -153,7 +154,7 @@
Model model = ModelFactory.createDefaultModel();
RDFReader reader = model.getReader();
try {
- reader.read(model, org.biomoby.shared.extended.Utils.getBufferedInputStream(getUrl()), null);
+ reader.read(model, new CentralImpl().getResource(getUrl()), null);
} catch (JenaException e) {
throw new MobyException(e.getLocalizedMessage());
} catch (MobyException e) {
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/extended/ServiceTypeParser.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/extended/ServiceTypeParser.java 2008/02/27 19:18:23 1.10
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/extended/ServiceTypeParser.java 2008/02/28 16:27:25 1.11
@@ -4,6 +4,7 @@
import java.net.URL;
import java.util.ArrayList;
+import org.biomoby.client.CentralImpl;
import org.biomoby.client.rdf.vocabulary.DC_PROTEGE;
import org.biomoby.shared.MobyException;
import org.biomoby.shared.MobyServiceType;
@@ -147,7 +148,7 @@
// create the model
Model model = ModelFactory.createDefaultModel();
RDFReader reader = model.getReader();
- reader.read(model, Utils.getBufferedInputStream(getUrl()), null);
+ reader.read(model, new CentralImpl().getResource(getUrl()), null);
// start querying the model and creating Service Type objects
ResIterator iterator = model.listSubjects();
while (iterator.hasNext()) {
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/extended/NamespaceParser.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/extended/NamespaceParser.java 2008/02/27 19:18:23 1.9
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/extended/NamespaceParser.java 2008/02/28 16:27:25 1.10
@@ -4,6 +4,7 @@
import java.net.URL;
import java.util.ArrayList;
+import org.biomoby.client.CentralImpl;
import org.biomoby.client.rdf.vocabulary.DC_PROTEGE;
import org.biomoby.shared.MobyException;
import org.biomoby.shared.MobyNamespace;
@@ -149,7 +150,7 @@
// create the model
Model model = ModelFactory.createDefaultModel();
RDFReader reader = model.getReader();
- reader.read(model, Utils.getBufferedInputStream(getUrl()), null);
+ reader.read(model, new CentralImpl().getResource(getUrl()), null);
// get all subjects in the document
ResIterator iterator = model.listSubjects();
while (iterator.hasNext()) {
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/extended/DataTypeParser.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/extended/DataTypeParser.java 2008/02/27 19:18:48 1.11
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/extended/DataTypeParser.java 2008/02/28 16:27:25 1.12
@@ -4,6 +4,7 @@
import java.net.URL;
import java.util.ArrayList;
+import org.biomoby.client.CentralImpl;
import org.biomoby.client.rdf.vocabulary.DC_PROTEGE;
import org.biomoby.client.rdf.vocabulary.Predicates;
import org.biomoby.shared.Central;
@@ -154,7 +155,7 @@
// create the model
Model model = ModelFactory.createDefaultModel();
RDFReader reader = model.getReader();
- reader.read(model, Utils.getBufferedInputStream(getUrl()), null);
+ reader.read(model, new CentralImpl().getResource(getUrl()), null);
ResIterator iterator = model.listSubjects();
while (iterator.hasNext()) {
Resource resource = iterator.nextResource();
rcsdiff: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/extended/RCS/Utils.java,v: No such file or directory
More information about the MOBY-guts
mailing list