[MOBY-guts] biomoby commit

Gary Schiltz gss at pub.open-bio.org
Thu Oct 6 17:58:10 UTC 2005


gss
Thu Oct  6 13:58:10 EDT 2005
Update of /home/repository/moby/moby-live/S-MOBY/ref-impl/core/src/org/semanticmoby/graph
In directory pub.open-bio.org:/tmp/cvs-serv9648/src/org/semanticmoby/graph

Modified Files:
	MOBYPropValStmt.java 
Log Message:
Added another constructor

moby-live/S-MOBY/ref-impl/core/src/org/semanticmoby/graph MOBYPropValStmt.java,1.1,1.2
===================================================================
RCS file: /home/repository/moby/moby-live/S-MOBY/ref-impl/core/src/org/semanticmoby/graph/MOBYPropValStmt.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/S-MOBY/ref-impl/core/src/org/semanticmoby/graph/MOBYPropValStmt.java	2005/09/14 22:06:10	1.1
+++ /home/repository/moby/moby-live/S-MOBY/ref-impl/core/src/org/semanticmoby/graph/MOBYPropValStmt.java	2005/10/06 17:58:10	1.2
@@ -7,7 +7,7 @@
  * of a property that is a subclass of moby:Property
  */
 public class MOBYPropValStmt extends MOBYGraphNode
-{
+{    
     /**
      * Constructs an instance from an existing model and statement; called
      * from parsing code
@@ -18,18 +18,26 @@
     }
     
     /**
+     * Creates an instance from scratch; the defining statement has
+     * the given resource as its subject, the given property as its
+     * predicate, and a blank node as its object.
+     */
+    public MOBYPropValStmt(Model jenaModel, Resource subject, Property property)
+    {
+        super(jenaModel,
+              jenaModel.createStatement(
+                  subject, property, jenaModel.createResource()));
+    }
+    
+    /**
      * Constructs an instance from scratch; the defining statement has
      * the given resource as its subject, a property with the given URI
      * as its predicate, and a blank node as its object.
      */
-    public MOBYPropValStmt(Model jenaModel, Resource resource,
-                                      String propertyURI)
+    public MOBYPropValStmt(Model jenaModel, Resource subject,
+                           String propertyURI)
     {
-        super(jenaModel,
-              jenaModel.createStatement(
-                  resource,
-                  jenaModel.createProperty(propertyURI),
-                  jenaModel.createResource()));
+        this(jenaModel, subject, jenaModel.createProperty(propertyURI));
     }
     
     /*




More information about the MOBY-guts mailing list