Class GraphFilter<X>

java.lang.Object
org.apache.jena.fuseki.access.GraphFilter<X>
All Implemented Interfaces:
Predicate<org.apache.jena.atlas.lib.tuple.Tuple<X>>

public abstract class GraphFilter<X> extends Object implements Predicate<org.apache.jena.atlas.lib.tuple.Tuple<X>>
A graph filter for TDB1 and TDB2 (by generic type).

This filter takes a collection of graph names and returns true from test(Tuple) if the tuple graph slot is in the collection of graph names or matchDefaultGraph is true. It can be used as an "allow" filter; it can be negated to become a "deny" filter.

See Also:
  • GraphFilterTDB1.graphFilter(org.apache.jena.sparql.core.DatasetGraph, java.util.Collection<org.apache.jena.graph.Node>, boolean)
  • GraphFilterTDB2.graphFilter(org.apache.jena.sparql.core.DatasetGraph, java.util.Collection<org.apache.jena.graph.Node>, boolean)
  • Method Details

    • getContextKey

      public static org.apache.jena.sparql.util.Symbol getContextKey(org.apache.jena.sparql.core.DatasetGraph dsg)
    • getContextKey

      public abstract org.apache.jena.sparql.util.Symbol getContextKey()
    • test

      public boolean test(org.apache.jena.atlas.lib.tuple.Tuple<X> t)
      Specified by:
      test in interface Predicate<X>