[MOBY-guts] biomoby commit

Eddie Kawas kawas at dev.open-bio.org
Thu Oct 12 16:57:14 UTC 2006


kawas
Thu Oct 12 12:57:14 EDT 2006
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/rdf/builder
In directory dev.open-bio.org:/tmp/cvs-serv9593/Java/src/main/org/biomoby/client/rdf/builder

Modified Files:
	ServiceInstanceRDF.java 
Log Message:
update that sets isAlive to true if information is not available at the time of RDF creation
moby-live/Java/src/main/org/biomoby/client/rdf/builder ServiceInstanceRDF.java,1.31,1.32
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/rdf/builder/ServiceInstanceRDF.java,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/rdf/builder/ServiceInstanceRDF.java	2006/10/11 01:54:51	1.31
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/rdf/builder/ServiceInstanceRDF.java	2006/10/12 16:57:14	1.32
@@ -639,13 +639,22 @@
 					in.close();
 					if (inputLine != null) {
 						inputLine = inputLine.trim();
-						if (!inputLine.equals("")) {
+						if (!inputLine.equals("") && (inputLine.equals("true") || inputLine.equals("false"))) {
 							subject.addProperty(model.createProperty(FetaVocabulary.getURI()
 									+ "isAlive"), Boolean.valueOf(inputLine));
+						} else {
+							// defaults to true
+							subject.addProperty(model.createProperty(FetaVocabulary.getURI()
+									+ "isAlive"), true);
 						}
+					} else {
+						subject.addProperty(model.createProperty(FetaVocabulary.getURI()
+								+ "isAlive"), true);
 					}
 
 				} catch (Exception e) {
+					subject.addProperty(model.createProperty(FetaVocabulary.getURI()
+							+ "isAlive"), true);
 				}
 			}
 			// create the organization node




More information about the MOBY-guts mailing list