Package org.aksw.jenax.arq.util.triple
Class ModelDiff
java.lang.Object
org.aksw.commons.collections.diff.Diff<org.apache.jena.rdf.model.Model>
org.aksw.jenax.arq.util.triple.ModelDiff
- All Implemented Interfaces:
org.aksw.commons.collections.diff.IDiff<org.apache.jena.rdf.model.Model>
public class ModelDiff
extends org.aksw.commons.collections.diff.Diff<org.apache.jena.rdf.model.Model>
- Author:
- Claus Stadler Date: 7/12/11 Time: 10:54 PM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(org.apache.jena.rdf.model.Model model) voidadd(org.apache.jena.rdf.model.Statement stmt) Basically adds a statement to the set of added items.voidclear()static ModelDiffcreate(org.apache.jena.rdf.model.Model a, org.apache.jena.rdf.model.Model b) booleanisEmpty()voidremove(org.apache.jena.rdf.model.Model model) voidremove(org.apache.jena.rdf.model.Statement stmt) Adds an item to the set of removed items, unless an equal statement is contained in the added-set.Methods inherited from class org.aksw.commons.collections.diff.Diff
create, equals, getAdded, getRemoved, getRetained, hashCode, toString
-
Constructor Details
-
ModelDiff
public ModelDiff() -
ModelDiff
public ModelDiff(org.apache.jena.rdf.model.Model added, org.apache.jena.rdf.model.Model removed, org.apache.jena.rdf.model.Model retained)
-
-
Method Details
-
add
public void add(org.apache.jena.rdf.model.Statement stmt) Basically adds a statement to the set of added items. However, if the statement is marked as removed, it is removed from the removal-set, but not added to added-set.- Parameters:
stmt-
-
remove
public void remove(org.apache.jena.rdf.model.Statement stmt) Adds an item to the set of removed items, unless an equal statement is contained in the added-set. In this case the statement is removed from the added set.- Parameters:
stmt-
-
add
public void add(org.apache.jena.rdf.model.Model model) -
remove
public void remove(org.apache.jena.rdf.model.Model model) -
clear
public void clear() -
isEmpty
public boolean isEmpty() -
create
public static ModelDiff create(org.apache.jena.rdf.model.Model a, org.apache.jena.rdf.model.Model b)
-