| com.hp.hpl.jena.rdf.model.impl.ModelCom com.hp.hpl.jena.util.MonitorModel
MonitorModel | public class MonitorModel extends ModelCom (Code) | | Model wrapper which provides normal access to an underlying model but
also maintains a snapshot of the triples it was last known to contain.
A snapshot action
causes the set of changes between this and the previous snapshot to
be calculated and the cache updated. The snapshot process will also
fire change notification.
author: Dave Reynolds version: $Revision: 1.4 $ |
Constructor Summary | |
public | MonitorModel(Model base) Create a monitor over the given underlying base model. |
Method Summary | |
public void | snapshot(List additions, List deletions) Compute the differences between the current monitored graph and the last
snapshot. | public void | snapshot() Compute the differences between the current monitored graph and the last
snapshot, forward any changes to registered listeners, then take a new snapshot. |
MonitorModel | public MonitorModel(Model base)(Code) | | Create a monitor over the given underlying base model.
|
snapshot | public void snapshot(List additions, List deletions)(Code) | | Compute the differences between the current monitored graph and the last
snapshot. The changes will also be forwarded to any listeners.
Then take a new snapshot.
Parameters: additions - a place in which the set of newly added statements should be noted, can be null Parameters: deletions - a place in which the set of newly deleted statements should be noted, can be null |
snapshot | public void snapshot()(Code) | | Compute the differences between the current monitored graph and the last
snapshot, forward any changes to registered listeners, then take a new snapshot.
|
Methods inherited from com.hp.hpl.jena.rdf.model.impl.ModelCom | public Model abort()(Code)(Java Doc) public GraphListener adapt(ModelChangedListener L)(Code)(Java Doc) public Model add(Resource s, Property p, String o)(Code)(Java Doc) public Model add(Resource s, Property p, String o, boolean wellFormed)(Code)(Java Doc) public Model add(Resource s, Property p, String o, String lang, boolean wellFormed)(Code)(Java Doc) public Model add(Resource s, Property p, String lex, RDFDatatype datatype)(Code)(Java Doc) public Model add(Resource s, Property p, String o, String l)(Code)(Java Doc) public Model add(StmtIterator iter)(Code)(Java Doc) public Model add(Model m)(Code)(Java Doc) public Model add(Model m, boolean suppressReifications)(Code)(Java Doc) public Model add(Statement s)(Code)(Java Doc) public Model add(Statement[] statements)(Code)(Java Doc) public Model add(List statements)(Code)(Java Doc) public Model add(Resource s, Property p, RDFNode o)(Code)(Java Doc) protected static Model addCommon(Model result, StmtIterator it, Model other)(Code)(Java Doc) public Model addLiteral(Resource s, Property p, boolean o)(Code)(Java Doc) public Model addLiteral(Resource s, Property p, long o)(Code)(Java Doc) public Model addLiteral(Resource s, Property p, int o)(Code)(Java Doc) public Model addLiteral(Resource s, Property p, char o)(Code)(Java Doc) public Model addLiteral(Resource s, Property p, float o)(Code)(Java Doc) public Model addLiteral(Resource s, Property p, double o)(Code)(Java Doc) public Model addLiteral(Resource s, Property p, Object o)(Code)(Java Doc) public static void addNamespaces(Model m, Map ns)(Code)(Java Doc) public Model addTyped(Resource s, Property p, boolean o)(Code)(Java Doc) public Filter asFilter(Selector s)(Code)(Java Doc) public Model asModel(Graph g)(Code)(Java Doc) public static Node asNode(RDFNode x)(Code)(Java Doc) public RDFNode asRDFNode(Node n)(Code)(Java Doc) public Statement asStatement(Triple t)(Code)(Java Doc) public Statement[] asStatements(Triple[] triples)(Code)(Java Doc) public List asStatements(List triples)(Code)(Java Doc) public StmtIterator asStatements(Iterator it)(Code)(Java Doc) public Model begin()(Code)(Java Doc) public void close()(Code)(Java Doc) public Model commit()(Code)(Java Doc) public boolean contains(Resource s, Property p, String o)(Code)(Java Doc) public boolean contains(Resource s, Property p, String o, String l)(Code)(Java Doc) public boolean contains(Statement s)(Code)(Java Doc) public boolean contains(Resource s, Property p)(Code)(Java Doc) public boolean contains(Resource s, Property p, RDFNode o)(Code)(Java Doc) public boolean containsAll(Model model)(Code)(Java Doc) public boolean containsAll(StmtIterator iter)(Code)(Java Doc) protected boolean containsAllThenClose(StmtIterator iter)(Code)(Java Doc) public boolean containsAny(Model model)(Code)(Java Doc) public boolean containsAny(StmtIterator iter)(Code)(Java Doc) protected boolean containsAnyThenClose(StmtIterator iter)(Code)(Java Doc) public boolean containsLiteral(Resource s, Property p, boolean o)(Code)(Java Doc) public boolean containsLiteral(Resource s, Property p, long o)(Code)(Java Doc) public boolean containsLiteral(Resource s, Property p, int o)(Code)(Java Doc) public boolean containsLiteral(Resource s, Property p, char o)(Code)(Java Doc) public boolean containsLiteral(Resource s, Property p, float o)(Code)(Java Doc) public boolean containsLiteral(Resource s, Property p, double o)(Code)(Java Doc) public boolean containsLiteral(Resource s, Property p, Object o)(Code)(Java Doc) public boolean containsResource(RDFNode r)(Code)(Java Doc) public boolean containsTyped(Resource s, Property p, boolean o)(Code)(Java Doc) public Alt createAlt()(Code)(Java Doc) public Alt createAlt(String uri)(Code)(Java Doc) public Bag createBag()(Code)(Java Doc) public Bag createBag(String uri)(Code)(Java Doc) public RDFList createList()(Code)(Java Doc) public RDFList createList(Iterator members)(Code)(Java Doc) public RDFList createList(RDFNode[] members)(Code)(Java Doc) public Literal createLiteral(String v)(Code)(Java Doc) public Literal createLiteral(String v, String l)(Code)(Java Doc) public Literal createLiteral(String v, boolean wellFormed)(Code)(Java Doc) public Literal createLiteral(String v, String l, boolean wellFormed)(Code)(Java Doc) public Statement createLiteralStatement(Resource r, Property p, boolean o)(Code)(Java Doc) public Statement createLiteralStatement(Resource r, Property p, long o)(Code)(Java Doc) public Statement createLiteralStatement(Resource r, Property p, int o)(Code)(Java Doc) public Statement createLiteralStatement(Resource r, Property p, char o)(Code)(Java Doc) public Statement createLiteralStatement(Resource r, Property p, float o)(Code)(Java Doc) public Statement createLiteralStatement(Resource r, Property p, double o)(Code)(Java Doc) public Statement createLiteralStatement(Resource r, Property p, Object o)(Code)(Java Doc) public Property createProperty(String uri)(Code)(Java Doc) public Property createProperty(String nameSpace, String localName)(Code)(Java Doc) public ReifiedStatement createReifiedStatement(Statement s)(Code)(Java Doc) public ReifiedStatement createReifiedStatement(String uri, Statement s)(Code)(Java Doc) public Resource createResource(Resource type)(Code)(Java Doc) public Resource createResource(String uri, Resource type)(Code)(Java Doc) public Resource createResource(ResourceF f)(Code)(Java Doc) public Resource createResource(AnonId id)(Code)(Java Doc) public Resource createResource(String uri, ResourceF f)(Code)(Java Doc) public Resource createResource()(Code)(Java Doc) public Resource createResource(String uri)(Code)(Java Doc) public Seq createSeq()(Code)(Java Doc) public Seq createSeq(String uri)(Code)(Java Doc) public Statement createStatement(Resource r, Property p, String o)(Code)(Java Doc) public Statement createStatement(Resource r, Property p, String o, boolean wellFormed)(Code)(Java Doc) public Statement createStatement(Resource r, Property p, String o, String l)(Code)(Java Doc) public Statement createStatement(Resource r, Property p, String o, String l, boolean wellFormed)(Code)(Java Doc) public Statement createStatement(Resource r, Property p, RDFNode o)(Code)(Java Doc) public Literal createTypedLiteral(boolean v)(Code)(Java Doc) public Literal createTypedLiteral(int v)(Code)(Java Doc) public Literal createTypedLiteral(long v)(Code)(Java Doc) public Literal createTypedLiteral(char v)(Code)(Java Doc) public Literal createTypedLiteral(float v)(Code)(Java Doc) public Literal createTypedLiteral(double v)(Code)(Java Doc) public Literal createTypedLiteral(String v)(Code)(Java Doc) public Literal createTypedLiteral(Calendar cal)(Code)(Java Doc) public Literal createTypedLiteral(String lex, RDFDatatype dtype) throws DatatypeFormatException(Code)(Java Doc) public Literal createTypedLiteral(Object value, RDFDatatype dtype)(Code)(Java Doc) public Literal createTypedLiteral(String lex, String typeURI)(Code)(Java Doc) public Literal createTypedLiteral(Object value, String typeURI)(Code)(Java Doc) public Literal createTypedLiteral(Object value)(Code)(Java Doc) protected static Model createWorkModel()(Code)(Java Doc) public Model difference(Model model)(Code)(Java Doc) public void enterCriticalSection(boolean requestReadLock)(Code)(Java Doc) public Object executeInTransaction(Command cmd)(Code)(Java Doc) public String expandPrefix(String prefixed)(Code)(Java Doc) public ExtendedIterator findTriplesFrom(Selector s)(Code)(Java Doc) public Alt getAlt(String uri)(Code)(Java Doc) public Alt getAlt(Resource r)(Code)(Java Doc) public Resource getAnyReifiedStatement(Statement s)(Code)(Java Doc) public Bag getBag(String uri)(Code)(Java Doc) public Bag getBag(Resource r)(Code)(Java Doc) protected BulkUpdateHandler getBulkUpdateHandler()(Code)(Java Doc) public static PrefixMapping getDefaultModelPrefixes()(Code)(Java Doc) public Graph getGraph()(Code)(Java Doc) public Model getHiddenStatements()(Code)(Java Doc) public synchronized Lock getLock()(Code)(Java Doc) public synchronized ModelLock getModelLock()(Code)(Java Doc) public Map getNsPrefixMap()(Code)(Java Doc) public String getNsPrefixURI(String prefix)(Code)(Java Doc) public String getNsURIPrefix(String uri)(Code)(Java Doc) public Property getProperty(String uri)(Code)(Java Doc) public Property getProperty(String nameSpace, String localName)(Code)(Java Doc) public Statement getProperty(Resource s, Property p)(Code)(Java Doc) public RDFNode getRDFNode(Node n)(Code)(Java Doc) public RDFReader getReader()(Code)(Java Doc) public RDFReader getReader(String lang)(Code)(Java Doc) public ReificationStyle getReificationStyle()(Code)(Java Doc) public Statement getRequiredProperty(Resource s, Property p)(Code)(Java Doc) public Resource getResource(String uri, ResourceF f)(Code)(Java Doc) public Resource getResource(String uri)(Code)(Java Doc) public Seq getSeq(String uri)(Code)(Java Doc) public Seq getSeq(Resource r)(Code)(Java Doc) public RDFWriter getWriter()(Code)(Java Doc) public RDFWriter getWriter(String lang)(Code)(Java Doc) public boolean independent()(Code)(Java Doc) public static Model intersect(Model smaller, Model larger)(Code)(Java Doc) public Model intersection(Model other)(Code)(Java Doc) public boolean isClosed()(Code)(Java Doc) public boolean isEmpty()(Code)(Java Doc) public boolean isIsomorphicWith(Model m)(Code)(Java Doc) public boolean isReified(Statement s)(Code)(Java Doc) public void leaveCriticalSection()(Code)(Java Doc) public StmtIterator listBySubject(Container cont)(Code)(Java Doc) public StmtIterator listLiteralStatements(Resource S, Property P, boolean O)(Code)(Java Doc) public StmtIterator listLiteralStatements(Resource S, Property P, long O)(Code)(Java Doc) public StmtIterator listLiteralStatements(Resource S, Property P, char O)(Code)(Java Doc) public StmtIterator listLiteralStatements(Resource S, Property P, double O)(Code)(Java Doc) public NsIterator listNameSpaces()(Code)(Java Doc) public NodeIterator listObjects()(Code)(Java Doc) public NodeIterator listObjectsOfProperty(Property p)(Code)(Java Doc) public NodeIterator listObjectsOfProperty(Resource s, Property p)(Code)(Java Doc) public RSIterator listReifiedStatements()(Code)(Java Doc) public RSIterator listReifiedStatements(Statement st)(Code)(Java Doc) public ResIterator listResourcesWithProperty(Property p, boolean o)(Code)(Java Doc) public ResIterator listResourcesWithProperty(Property p, char o)(Code)(Java Doc) public ResIterator listResourcesWithProperty(Property p, long o)(Code)(Java Doc) public ResIterator listResourcesWithProperty(Property p, float o)(Code)(Java Doc) public ResIterator listResourcesWithProperty(Property p, double o)(Code)(Java Doc) public ResIterator listResourcesWithProperty(Property p, Object o)(Code)(Java Doc) public ResIterator listResourcesWithProperty(Property p)(Code)(Java Doc) public ResIterator listResourcesWithProperty(Property p, RDFNode o)(Code)(Java Doc) protected StmtIterator listStatements(Resource S, Property P, Node O)(Code)(Java Doc) public StmtIterator listStatements(Resource S, Property P, RDFNode O)(Code)(Java Doc) public StmtIterator listStatements(Resource S, Property P, String O)(Code)(Java Doc) public StmtIterator listStatements(Resource S, Property P, String O, String L)(Code)(Java Doc) public StmtIterator listStatements()(Code)(Java Doc) public StmtIterator listStatements(Selector selector)(Code)(Java Doc) public ResIterator listSubjects()(Code)(Java Doc) public ResIterator listSubjectsWithProperty(Property p, RDFNode o)(Code)(Java Doc) public ResIterator listSubjectsWithProperty(Property p, String o)(Code)(Java Doc) public ResIterator listSubjectsWithProperty(Property p, String o, String l)(Code)(Java Doc) public ResIterator listSubjectsWithProperty(Property p)(Code)(Java Doc) public StmtIterator listlLiteralStatements(Resource S, Property P, float O)(Code)(Java Doc) public PrefixMapping lock()(Code)(Java Doc) public Model notifyEvent(Object e)(Code)(Java Doc) public String qnameFor(String uri)(Code)(Java Doc) public Model query(Selector selector)(Code)(Java Doc) public QueryHandler queryHandler()(Code)(Java Doc) public Model read(String url)(Code)(Java Doc) public Model read(Reader reader, String base)(Code)(Java Doc) public Model read(InputStream reader, String base)(Code)(Java Doc) public Model read(String url, String lang)(Code)(Java Doc) public Model read(String url, String base, String lang)(Code)(Java Doc) public Model read(Reader reader, String base, String lang)(Code)(Java Doc) public Model read(InputStream reader, String base, String lang)(Code)(Java Doc) public Model register(ModelChangedListener listener)(Code)(Java Doc) public String reifiedToString()(Code)(Java Doc) public Model remove(Statement s)(Code)(Java Doc) public Model remove(Resource s, Property p, RDFNode o)(Code)(Java Doc) public Model remove(StmtIterator iter)(Code)(Java Doc) public Model remove(Model m)(Code)(Java Doc) public Model remove(Model m, boolean suppressReifications)(Code)(Java Doc) public Model remove(Statement[] statements)(Code)(Java Doc) public Model remove(List statements)(Code)(Java Doc) public Model removeAll()(Code)(Java Doc) public Model removeAll(Resource s, Property p, RDFNode o)(Code)(Java Doc) public void removeAllReifications(Statement s)(Code)(Java Doc) public PrefixMapping removeNsPrefix(String prefix)(Code)(Java Doc) public void removeReification(ReifiedStatement rs)(Code)(Java Doc) public boolean samePrefixMappingAs(PrefixMapping other)(Code)(Java Doc) public static PrefixMapping setDefaultModelPrefixes(PrefixMapping pm)(Code)(Java Doc) public PrefixMapping setNsPrefix(String prefix, String uri)(Code)(Java Doc) public PrefixMapping setNsPrefixes(PrefixMapping pm)(Code)(Java Doc) public PrefixMapping setNsPrefixes(Map map)(Code)(Java Doc) public String setReaderClassName(String lang, String className)(Code)(Java Doc) public String setWriterClassName(String lang, String className)(Code)(Java Doc) public String shortForm(String uri)(Code)(Java Doc) public long size()(Code)(Java Doc) protected String statementsToString(StmtIterator it)(Code)(Java Doc) public boolean supportsSetOperations()(Code)(Java Doc) public boolean supportsTransactions()(Code)(Java Doc) public String toString()(Code)(Java Doc) public Model union(Model model)(Code)(Java Doc) public Model unregister(ModelChangedListener listener)(Code)(Java Doc) public PrefixMapping withDefaultMappings(PrefixMapping other)(Code)(Java Doc) public Model write(Writer writer)(Code)(Java Doc) public Model write(Writer writer, String lang)(Code)(Java Doc) public Model write(Writer writer, String lang, String base)(Code)(Java Doc) public Model write(OutputStream writer)(Code)(Java Doc) public Model write(OutputStream writer, String lang)(Code)(Java Doc) public Model write(OutputStream writer, String lang, String base)(Code)(Java Doc)
|
|
|