public class UnionDatasetGraph extends DyadicDatasetGraph
Transactional.Promote| Constructor and Description |
|---|
UnionDatasetGraph(DatasetGraph left,
DatasetGraph right,
Context c) |
| 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 |
containsGraph(Node graphNode)
Does the DatasetGraph contain a specific named graph?
Whether a dataset contains a graph if there are no triples is
not defined - see the specific implementation.
|
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> |
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
|
abort, add, add, addGraph, begin, begin, begin, clear, close, commit, contains, delete, delete, deleteAny, end, find, find, getContext, getLock, isInTransaction, promote, removeGraph, setContext, setDefaultGraph, size, supportsTransactionAbort, supportsTransactions, transactionMode, transactionTypeapply, both, either, forEachcar, cdr, create, equals, getLeft, getRight, hashCode, toStringpromotepublic UnionDatasetGraph(DatasetGraph left, DatasetGraph right, Context c)
public Graph getDefaultGraph()
DatasetGraphpublic Graph getGraph(Node graphNode)
DatasetGraphpublic 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 DyadicDatasetGraphpublic boolean containsGraph(Node graphNode)
DatasetGraphpublic Iterator<Node> listGraphNodes()
DatasetGraphpublic Iterator<Quad> find(Node g, Node s, Node p, Node o)
DatasetGraphfind in interface DatasetGraphfind in class DyadicDatasetGraphGraph.find(Node,Node,Node)public Iterator<Quad> findNG(Node g, Node s, Node p, Node o)
DatasetGraphfindNG in interface DatasetGraphfindNG in class DyadicDatasetGraphGraph.find(Node,Node,Node)public boolean contains(Node g, Node s, Node p, Node o)
DatasetGraphpublic boolean isEmpty()
DatasetGraphisEmpty in interface DatasetGraphisEmpty in class DyadicDatasetGraphLicenced under the Apache License, Version 2.0