edu.cornell.mannlib.vitro.webapp.rdfservice
Interface ChangeListener


public interface ChangeListener

An interface for listening to triples that are added to or removed from the triple store, and other miscellaneous events.


Method Summary
 void addedStatement(java.lang.String serializedTriple, java.lang.String graphURI)
          Override this to listen to all statements added to the RDF store.
 void notifyEvent(java.lang.String graphURI, java.lang.Object event)
          Override this to listen to events pertaining to the given graphURI.
 void removedStatement(java.lang.String serializedTriple, java.lang.String graphURI)
          Override this to listen to all statements removed from the RDF store.
 

Method Detail

addedStatement

void addedStatement(java.lang.String serializedTriple,
                    java.lang.String graphURI)
Override this to listen to all statements added to the RDF store.

Parameters:
serializedTriple - - the added statement in n3 format
graphURI - - the graph to which the statement was added

removedStatement

void removedStatement(java.lang.String serializedTriple,
                      java.lang.String graphURI)
Override this to listen to all statements removed from the RDF store.

Parameters:
serializedTriple - - the removed statement in n3 format
graphURI - - the graph from which the statement was removed

notifyEvent

void notifyEvent(java.lang.String graphURI,
                 java.lang.Object event)
Override this to listen to events pertaining to the given graphURI.

Parameters:
graphURI - - the graph to which the event pertains
event - - the event that occurred.