[MOBY-guts] biomoby commit

Eddie Kawas kawas at pub.open-bio.org
Tue Jul 26 14:53:12 UTC 2005


kawas
Tue Jul 26 10:53:12 EDT 2005
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/rdf/vocabulary
In directory pub.open-bio.org:/tmp/cvs-serv24455/org/biomoby/client/rdf/vocabulary

Modified Files:
	Predicates.java 
Log Message:
*removed the ability to modify the domain of a URI.
*added 3 predicates that were added to biomoby.org/RESOURCES/MOBY-S/Predicates.
*removed any MobyResources.java references that existed directly or indirectly.

moby-live/Java/src/main/org/biomoby/client/rdf/vocabulary Predicates.java,1.4,1.5
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/rdf/vocabulary/Predicates.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/rdf/vocabulary/Predicates.java	2005/07/20 17:42:31	1.4
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/rdf/vocabulary/Predicates.java	2005/07/26 14:53:12	1.5
@@ -14,46 +14,50 @@
 
 /**
  * @author Eddie Kawas
- * <p>Created for
- * <p>This class was created to ...
+ * <p>Created for the BioMoby project.
+ * <p>This class was created to represent the RDF predicate vocabulary in BioMoby under the namespace mobyPred. 
  * <p>For questions, comments, or bugs
  * <p>email me at edward.kawas at gmail.com
  */
 public class Predicates {
     private final static Properties properties = MobyProperties.PROPERTIES();
     
-    protected final static String uri = "http://" + properties.getProperty("resources_script_domain") + "/RESOURCES/MOBY-S/Predicates#";
+    protected final static String uri = "http://biomoby.org/RESOURCES/MOBY-S/Predicates#";
     private final static Model _model = ModelFactory.createDefaultModel();;
-    public static final Property category = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#category");
-    public static final Property isa = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#isa");
-    public static final Property has = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#has");
-    public static final Property hasa = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#hasa");
-    public static final Property articleName = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#articleName");
-    public static final Property article_name = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#article_name");
-    public static final Property namespace_type = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#namespace_type");
-    public static final Property object_type = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#object_type");
-    public static final Property input = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#input");
-    public static final Property output = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#output");
-    public static final Property consumes = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#consumes");
-    public static final Property produces = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#produces");
-    public static final Property performs_task = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#performs_task");
-    public static final Property comment = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#comment");
-    public static final Property label = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#label");
-    public static final Property default_value = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#default_value");
-    public static final Property datatype = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#datatype");
-    public static final Property max = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#max");
-    public static final Property min = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#min");
-    public static final Property enumeration = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#enum");
-    public static final Property SimpleArticle = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#SimpleArticle");
-    public static final Property CollectionArticle = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#CollectionArticle");
-    public static final Property SecondaryArticle = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#SecondaryArticle");
-    public static final Property SignatureURL = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#SignatureURL");
-    public static final Property authoritative = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#authoritative");
-    public static final Property ofType = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/Predicates#ofType");
+    public static final Property category = _model.getProperty(uri + "category");
+    public static final Property isa = _model.getProperty(uri + "isa");
+    public static final Property has = _model.getProperty(uri + "has");
+    public static final Property hasa = _model.getProperty(uri + "hasa");
+    public static final Property articleName = _model.getProperty(uri + "articleName");
+    public static final Property article_name = _model.getProperty(uri + "article_name");
+    public static final Property namespace_type = _model.getProperty(uri + "namespace_type");
+    public static final Property object_type = _model.getProperty(uri + "object_type");
+    public static final Property input = _model.getProperty(uri + "input");
+    public static final Property output = _model.getProperty(uri + "output");
+    public static final Property consumes = _model.getProperty(uri + "consumes");
+    public static final Property produces = _model.getProperty(uri + "produces");
+    public static final Property performs_task = _model.getProperty(uri + "performs_task");
+    public static final Property comment = _model.getProperty(uri + "comment");
+    public static final Property label = _model.getProperty(uri + "label");
+    public static final Property default_value = _model.getProperty(uri + "default_value");
+    public static final Property datatype = _model.getProperty(uri + "datatype");
+    public static final Property max = _model.getProperty(uri + "max");
+    public static final Property min = _model.getProperty(uri + "min");
+    public static final Property enumeration = _model.getProperty(uri + "enum");
+    public static final Property SimpleArticle = _model.getProperty(uri + "SimpleArticle");
+    public static final Property CollectionArticle = _model.getProperty(uri + "CollectionArticle");
+    public static final Property SecondaryArticle = _model.getProperty(uri + "SecondaryArticle");
+    public static final Property SignatureURL = _model.getProperty(uri + "SignatureURL");
+    public static final Property authoritative = _model.getProperty(uri + "authoritative");
+    public static final Property ofType = _model.getProperty(uri + "ofType");
     /* moved from MobyResources.java */
-    public static final Property Simple = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/MOBYResources#Simple");
-    public static final Property Secondary = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/MOBYResources#Secondary");
-    public static final Property Collection = _model.getProperty("http://" + properties.getProperty("resources_script_domain")  + "/RESOURCES/MOBY-S/MOBYResources#Collection");
+    public static final Property Simple = _model.getProperty(uri + "Simple");
+    public static final Property Secondary = _model.getProperty(uri + "Secondary");
+    public static final Property Collection = _model.getProperty(uri + "Collection");
+    /* new predicates */
+    public static final Property sampleInputData = _model.getProperty(uri + "sampleInputData");
+    public static final Property sampleOutputData = _model.getProperty(uri + "sampleOutputData");
+    public static final Property approvedBy = _model.getProperty(uri + "approvedBy");
     
     public final static String getURI() {
         return uri;




More information about the MOBY-guts mailing list