public class RepositoryUtil extends Object
Constructor and Description |
---|
RepositoryUtil() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.
Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.