- protected static Statement getInverse(ReadGraph g, Statement otherComponentInv) throws DatabaseException{
- Statement otherComponent = null;
- for (Statement s : g.getStatements(otherComponentInv.getObject(), g.getInverse(otherComponentInv.getPredicate()))) {
- if (s.getObject().equals(otherComponentInv.getSubject()))
- otherComponent = s;
+ protected void replaceOp(Resource r, UpdateOp op) {
+ UpdateOp oldOp = resourceMap.remove(r);
+ if (oldOp != null) {
+ operations.remove(oldOp);