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
DatasetGraph framework.
This class contains a convenience implementation of find that maps to a split between
defaultGraph/named graphs.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional
Transactional.Promote
-
Method Summary
Modifier and TypeMethodDescriptionImplementation of find based on splitting into triples (default graph) and quads (named graph)findInUnionGraph
(Node s, Node p, Node o) Find matches in the notional union of all named graphs - return as triples.Find matching quads in the dataset in named graphs only - may include wildcards, Node.ANY or nullfindQuadsInUnionGraph
(Node s, Node p, Node o) Find matches in the notional union of all named graphs - return as quads.Methods inherited from class org.apache.jena.sparql.core.DatasetGraphBase
add, add, addGraph, clear, close, contains, contains, containsGraph, delete, delete, deleteAny, deleteAny, find, find, getContext, getDefaultGraph, getGraph, getLock, getUnionGraph, isEmpty, removeGraph, setDefaultGraph, size, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.jena.sparql.core.DatasetGraph
addAll, listGraphNodes, prefixes, stream, stream, supportsTransactionAbort, supportsTransactions
Methods inherited from interface org.apache.jena.sparql.core.Transactional
abort, begin, begin, begin, calc, calculate, calculateRead, calculateWrite, commit, end, exec, execute, executeRead, executeWrite, isInTransaction, promote, promote, transactionMode, transactionType
-
Method Details
-
find
Implementation of find based on splitting into triples (default graph) and quads (named graph)- See Also:
-
findNG
Description copied from interface:DatasetGraph
Find matching quads in the dataset in named graphs only - may include wildcards, Node.ANY or null- See Also:
-
findInUnionGraph
Find matches in the notional union of all named graphs - return as triples. No duplicates - the union graph is a set of triples. SeefindInAnyNamedGraphs(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
Find matches in the notional union of all named graphs - return as quads. No duplicates - the union graph is a set of triples. SeefindInAnyNamedGraphs(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".
-