public class DatasetGraphFilteredView extends DatasetGraphReadOnly implements DatasetGraphWrapperView
DatasetGraph that applies a filter testing all triples and quads
returned by accessing the data. Only quads where the filter tests for "true" are exposed.Transactional.Promote| Constructor and Description |
|---|
DatasetGraphFilteredView(DatasetGraph dsg,
Predicate<Quad> filter,
Collection<Node> visibleGraphs) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Node g,
Node s,
Node p,
Node o)
Test whether the dataset (including default graph) contains a quad - may include wildcards, Node.ANY or null
|
boolean |
contains(Quad quad)
Test whether the dataset contains a quad (including default graph)- may include wildcards, Node.ANY or null
|
Iterator<Quad> |
find()
Iterate over all quads in the dataset graph
|
Iterator<Quad> |
find(Node g,
Node s,
Node p,
Node o)
Find matching quads in the dataset (including default graph) - may include wildcards, Node.ANY or null
|
Iterator<Quad> |
find(Quad quad)
Find matching quads in the dataset - may include wildcards, Node.ANY or null
|
Iterator<Quad> |
findNG(Node g,
Node s,
Node p,
Node o)
Find matching quads in the dataset in named graphs only - may include wildcards, Node.ANY or null
|
Graph |
getDefaultGraph()
Get the default graph as a Jena Graph
|
Graph |
getGraph(Node graphNode)
Get the graph named by graphNode : returns null when there is no such graph.
|
Graph |
getUnionGraph()
Return a
Graph that is the union of all named graphs in this dataset. |
boolean |
isEmpty()
Test whether the dataset is empty
|
Iterator<Node> |
listGraphNodes()
Iterate over all names of named graphs
|
long |
size()
Get the size (number of named graphs) - may be -1 for unknown
|
String |
toString() |
begin, closeabort, add, add, addGraph, begin, begin, clear, commit, containsGraph, delete, delete, deleteAny, end, getBase, getBaseForQuery, getContext, getLock, getWrapped, isInTransaction, promote, promote, removeGraph, setDefaultGraph, supportsTransactionAbort, supportsTransactions, sync, transactionMode, transactionTypeequals, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, add, addGraph, clear, close, containsGraph, delete, delete, deleteAny, getContext, getLock, removeGraph, setDefaultGraph, supportsTransactionAbort, supportsTransactionsabort, begin, begin, begin, commit, end, isInTransaction, promote, promote, transactionMode, transactionTypepublic DatasetGraphFilteredView(DatasetGraph dsg, Predicate<Quad> filter, Collection<Node> visibleGraphs)
public Graph getDefaultGraph()
DatasetGraphgetDefaultGraph in interface DatasetGraphgetDefaultGraph in class DatasetGraphReadOnlypublic Graph getGraph(Node graphNode)
DatasetGraphgetGraph in interface DatasetGraphgetGraph in class DatasetGraphReadOnlypublic Iterator<Node> listGraphNodes()
DatasetGraphlistGraphNodes in interface DatasetGraphlistGraphNodes in class DatasetGraphWrapperpublic long size()
DatasetGraphsize in interface DatasetGraphsize in class DatasetGraphWrapperpublic Graph getUnionGraph()
DatasetGraphGraph that is the union of all named graphs in this dataset. This
union graph is read-only (its prefix mapping in the current JVM may be changed but
that may not persist).getUnionGraph in interface DatasetGraphgetUnionGraph in class DatasetGraphWrapperpublic Iterator<Quad> find()
DatasetGraphfind in interface DatasetGraphfind in class DatasetGraphWrapperpublic Iterator<Quad> find(Node g, Node s, Node p, Node o)
DatasetGraphfind in interface DatasetGraphfind in class DatasetGraphWrapperGraph.find(Node,Node,Node)public Iterator<Quad> find(Quad quad)
DatasetGraphfind in interface DatasetGraphfind in class DatasetGraphWrapperGraph.find(Triple)public Iterator<Quad> findNG(Node g, Node s, Node p, Node o)
DatasetGraphfindNG in interface DatasetGraphfindNG in class DatasetGraphWrapperGraph.find(Node,Node,Node)public boolean contains(Node g, Node s, Node p, Node o)
DatasetGraphcontains in interface DatasetGraphcontains in class DatasetGraphWrapperpublic boolean contains(Quad quad)
DatasetGraphcontains in interface DatasetGraphcontains in class DatasetGraphWrapperpublic boolean isEmpty()
DatasetGraphisEmpty in interface DatasetGraphisEmpty in class DatasetGraphWrapperpublic String toString()
toString in class DatasetGraphWrapperLicenced under the Apache License, Version 2.0