You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@clerezza.apache.org by re...@apache.org on 2010/06/15 15:01:55 UTC
svn commit: r954859 -
/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.utils/src/main/java/org/apache/clerezza/rdf/utils/UnionMGraph.java
Author: reto
Date: Tue Jun 15 13:01:54 2010
New Revision: 954859
URL: http://svn.apache.org/viewvc?rev=954859&view=rev
Log:
added comment
Modified:
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.utils/src/main/java/org/apache/clerezza/rdf/utils/UnionMGraph.java
Modified: incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.utils/src/main/java/org/apache/clerezza/rdf/utils/UnionMGraph.java
URL: http://svn.apache.org/viewvc/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.utils/src/main/java/org/apache/clerezza/rdf/utils/UnionMGraph.java?rev=954859&r1=954858&r2=954859&view=diff
==============================================================================
--- incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.utils/src/main/java/org/apache/clerezza/rdf/utils/UnionMGraph.java (original)
+++ incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.utils/src/main/java/org/apache/clerezza/rdf/utils/UnionMGraph.java Tue Jun 15 13:01:54 2010
@@ -39,6 +39,10 @@ import org.apache.clerezza.rdf.core.impl
/**
*
+ * This class represents the union of multiple triple collections. A
+ * UnionGraph appears like a merge of the different graphs (see.
+ * http://www.w3.org/TR/rdf-mt/#graphdefs).
+ *
* @author hasan
*/
public class UnionMGraph extends AbstractMGraph implements LockableMGraph {
@@ -47,6 +51,12 @@ public class UnionMGraph extends Abstrac
private Lock readLock;
private Lock writeLock;
+ /**
+ * Constructs a UnionMGraph over the specified baseTripleCollections. Write
+ * and delete operations are forwarded to the first baseTripleCollections.
+ *
+ * @param baseTripleCollections the baseTripleCollections
+ */
public UnionMGraph(TripleCollection... baseTripleCollections) {
this.baseTripleCollections = baseTripleCollections;
readLock = getPartialReadLock(0);