Class ObservableSubGraph

java.lang.Object
org.apache.jena.graph.impl.GraphBase
org.aksw.jena_sparql_api.collection.observable.GraphWithFilter
org.aksw.jena_sparql_api.collection.observable.ObservableSubGraph
All Implemented Interfaces:
ObservableGraph, org.apache.jena.graph.Graph, org.apache.jena.graph.impl.GraphWithPerform

public class ObservableSubGraph extends GraphWithFilter implements ObservableGraph
This is a mutable graph view based on filtering a delegate ObservableGraph's triples. Listeners registered on this class are wrapped with a filtering listener that gets registered on the delegate. All access and modification methods (add/delete/remove/find/clear) only affect the set of triples that match the given TripleConstraint. Addition of triples for which the predicate tests to false are silently discarded.
Author:
raven
  • Field Summary

    Fields inherited from class org.aksw.jena_sparql_api.collection.observable.GraphWithFilter

    delegate, predicate

    Fields inherited from class org.apache.jena.graph.impl.GraphBase

    closed, gem, pm, TOSTRING_TRIPLE_BASE, TOSTRING_TRIPLE_LIMIT

    Fields inherited from interface org.apache.jena.graph.Graph

    emptyGraph
  • Constructor Summary

    Constructors
    Constructor
    Description
    ObservableSubGraph(ObservableGraph graph, org.aksw.jenax.arq.util.triple.TripleConstraint predicate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.aksw.commons.collection.observable.Registration
     
     
    decorate(ObservableGraph graph, org.aksw.jenax.arq.util.triple.TripleConstraint predicate)
     
    boolean
    delta(Collection<? extends org.apache.jena.graph.Triple> rawAdditions, Collection<?> rawDeletions)
     
    static org.aksw.commons.collection.observable.CollectionChangedEvent<org.apache.jena.graph.Triple>
    filter(Object self, org.aksw.commons.collection.observable.CollectionChangedEvent<org.apache.jena.graph.Triple> ev, org.aksw.jenax.arq.util.triple.TripleConstraint tripleConstraint)
     
    static <T> Set<T>
    filterSet(Set<T> set, Predicate<? super T> predicate)
     
    get()
     

    Methods inherited from class org.aksw.jena_sparql_api.collection.observable.GraphWithFilter

    createCombinedPattern, graphBaseFind, performAdd, performDelete, remove

    Methods inherited from class org.apache.jena.graph.impl.GraphBase

    add, checkOpen, clear, close, contains, contains, containsByFind, createPrefixMapping, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getCapabilities, getEventManager, getPrefixMapping, getTransactionHandler, graphBaseContains, graphBaseFind, graphBaseSize, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, size, toString, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.jena.graph.Graph

    add, add, clear, close, contains, contains, delete, delete, dependsOn, find, find, find, getCapabilities, getEventManager, getPrefixMapping, getTransactionHandler, isClosed, isEmpty, isIsomorphicWith, remove, size, sizeLong, stream, stream

    Methods inherited from interface org.aksw.jena_sparql_api.collection.observable.ObservableGraph

    asSet, createSetField, createSetField, createValueField, createValueField