
org.ontoware.rdf2go.model.NotifyingModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rdf2go.api Show documentation
Show all versions of rdf2go.api Show documentation
RDF2go is an implementation-independent Java API with the design
goals: portability (hence the name), performance and ease of
implementation.
This project was started at FZI Forschungszentrum Informatik Karlsruhe, Germany - www.fzi.de
The newest version!
/**
* LICENSE INFORMATION
*
* Copyright 2005-2008 by FZI (http://www.fzi.de). Licensed under a BSD license
* (http://www.opensource.org/licenses/bsd-license.php) = Max Völkel
* = FZI Forschungszentrum Informatik Karlsruhe, Karlsruhe,
* Germany = 2010
*
* Further project information at http://semanticweb.org/wiki/RDF2Go
*/
/**
* BSD Licensed.
*/
package org.ontoware.rdf2go.model;
/**
* A Model that can notify listeners when triples are added or removed from the
* model.
*
* Note that not all models support listening, for example a model hosted on a
* remote server may not support notifications of operations done on the model
* to remote clients.
*
* Reads from streams and readers are not detectable.
*
* @author sauermann
* @author voelkel
*/
public interface NotifyingModel {
/**
*
* @param listener must not be null; gets notified on model change events
* @param pattern all add or remove statement events matching the pattern
* will be send to the listener. Updates are always send.
*/
public void addModelChangedListener(ModelChangedListener listener, TriplePattern pattern);
public void addModelChangedListener(ModelChangedListener listener);
public void removeModelChangedListener(ModelChangedListener listener);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy