if (obj.getClass() != this.getClass())
return false;
PropertyChange c = (PropertyChange)obj;
- return pair.equals(c.pair);
+ if (!leftSubject.equals(c.leftSubject))
+ return false;
+ if (!rightSubject.equals(c.rightSubject))
+ return false;
+ if (pair.first != null && pair.first.equals(c.pair.first))
+ return true;
+ if (pair.second != null && pair.second.equals(c.pair.second))
+ return true;
+ return false;
}
public void apply(WriteGraph graph) throws DatabaseException {
value = graph.getValue(pair.second.getObject());
}
Resource pred = pair.second.getPredicate();
+ if (getChanges().getComparable().containsRight(pred))
+ pred = getChanges().getComparable().getLeft(pred);
+
if (value != null) {
graph.deny(s, pred);
graph.claimLiteral(s, pred, value);