The notifications are, in general, given before further changes to the graph are made. Listeners are discouraged from making further modifications to the same graph since that will invalidate this property for other listeners.
Some modifications may result in multiple notifications in some cases. For example, a bulk notification with {@link #notifyAddArray(Graph,Triple[])}, may, or may not, be accompanied by several {@link #notifyAddTriple(Graph,Triple)}notifications, one for each triple. If possible, Graph implementations should avoid such duplicate notifications and only give the bulk notifications, see {@link com.hp.hpl.jena.graph.impl.GraphWithPerform}. When these duplicate notifications occur, each should happen immediately after the change it signifies is complete. Thus, in the previous example, if the array has two triples, the pattern is:
To track all changes to a graph it is necessary to consider all the methods in this interface, including {@link #notifyEvent(Graph,Object)}.
|
|