Class DatasetGraphBaseFind

java.lang.Object
org.apache.jena.sparql.core.DatasetGraphBase
org.apache.jena.sparql.core.DatasetGraphBaseFind
All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable, DatasetGraph, Transactional
Direct Known Subclasses:
DatasetGraphCollection, DatasetGraphNull, DatasetGraphOne, DatasetGraphTriplesQuads

public abstract class DatasetGraphBaseFind extends DatasetGraphBase
DatasetGraph framework. This class contains a convenience implementation of find that maps to a split between defaultGraph/named graphs.
See Also:
  • Method Details

    • find

      public Iterator<Quad> find(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
      Implementation of find based on splitting into triples (default graph) and quads (named graph)
      See Also:
      • Graph.find(Node,Node,Node)
    • findNG

      public Iterator<Quad> findNG(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
      Description copied from interface: DatasetGraph
      Find matching quads in the dataset in named graphs only - may include wildcards, Node.ANY or null
      See Also:
      • Graph.find(Node,Node,Node)
    • findInUnionGraph

      public Iterator<org.apache.jena.graph.Triple> findInUnionGraph(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
      Find matches in the notional union of all named graphs - return as triples. No duplicates - the union graph is a set of triples. See findInAnyNamedGraphs(org.apache.jena.graph.Node, org.apache.jena.graph.Node, org.apache.jena.graph.Node), where there may be duplicates.

      Implementations are encouraged to override this method. For example, it may be possible to avoid "distinct".

    • findQuadsInUnionGraph

      public Iterator<Quad> findQuadsInUnionGraph(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
      Find matches in the notional union of all named graphs - return as quads. No duplicates - the union graph is a set of triples. See findInAnyNamedGraphs(org.apache.jena.graph.Node, org.apache.jena.graph.Node, org.apache.jena.graph.Node), where there may be duplicates.

      Implementations are encouraged to override this method or findUnionGraphTriples(org.apache.jena.graph.Node, org.apache.jena.graph.Node, org.apache.jena.graph.Node). For example, it may be possible to avoid "distinct".