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
    Constructor
    Description
     
    ModelDiff(org.apache.jena.rdf.model.Model added, org.apache.jena.rdf.model.Model removed, org.apache.jena.rdf.model.Model retained)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(org.apache.jena.rdf.model.Model model)
     
    void
    add(org.apache.jena.rdf.model.Statement stmt)
    Basically adds a statement to the set of added items.
    void
     
    static ModelDiff
    create(org.apache.jena.rdf.model.Model a, org.apache.jena.rdf.model.Model b)
     
    boolean
     
    void
    remove(org.apache.jena.rdf.model.Model model)
     
    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.

    Methods inherited from class org.aksw.commons.collections.diff.Diff

    create, equals, getAdded, getRemoved, getRetained, hashCode, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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)