|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.repository.util.RepositoryUtil
public class RepositoryUtil
Utility methods for comparing sets of statements (graphs) with each other. The supplied comparison operations map bnodes in the two supplied models on to each other and thus define a graph isomorphism.
| Constructor Summary | |
|---|---|
RepositoryUtil()
|
|
| Method Summary | |
|---|---|
static Collection<? extends Statement> |
difference(Collection<? extends Statement> model1,
Collection<? extends Statement> model2)
Compares two models, defined by two statement collections, and returns the difference between the first and the second model (that is, all statements that are present in model1 but not in model2). |
static Collection<? extends Statement> |
difference(Repository rep1,
Repository rep2)
Compares two models defined by the default context of two repositories and returns the difference between the first and the second model (that is, all statements that are present in rep1 but not in rep2). |
static boolean |
equals(Repository rep1,
Repository rep2)
Compares the models in the default contexts of the two supplied repositories and returns true if they are equal. |
static boolean |
isSubset(Repository rep1,
Repository rep2)
Compares the models of the default context of two repositories and returns true if rep1 is a subset of rep2. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RepositoryUtil()
| Method Detail |
|---|
public static boolean equals(Repository rep1,
Repository rep2)
throws RepositoryException
RepositoryException
public static boolean isSubset(Repository rep1,
Repository rep2)
throws RepositoryException
RepositoryException
public static Collection<? extends Statement> difference(Repository rep1,
Repository rep2)
throws RepositoryException
NOTE: this algorithm is currently broken; it doesn't actually map blank nodes between the two models.
RepositoryException
public static Collection<? extends Statement> difference(Collection<? extends Statement> model1,
Collection<? extends Statement> model2)
NOTE: this algorithm is currently broken; it doesn't actually map blank nodes between the two models.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||