Package org.apache.jena.sparql.util
Class DifferenceDatasetGraph
- java.lang.Object
-
- org.apache.jena.atlas.lib.Pair<T,T>
-
- org.apache.jena.atlas.lib.PairOfSameType<DatasetGraph>
-
- org.apache.jena.sparql.util.DyadicDatasetGraph
-
- org.apache.jena.sparql.util.DifferenceDatasetGraph
-
- All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable,DatasetGraph,Transactional
public class DifferenceDatasetGraph extends DyadicDatasetGraph
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional
Transactional.Promote
-
-
Constructor Summary
Constructors Constructor Description DifferenceDatasetGraph(DatasetGraph left, DatasetGraph right, Context c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(Node g, Node s, Node p, Node o)Test whether the dataset (including default graph) contains a quad - may include wildcards, Node.ANY or nullbooleancontainsGraph(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.GraphgetDefaultGraph()Get the default graph as a Jena GraphGraphgetGraph(Node graphNode)Get the graph named by graphNode : returns null when there is no such graph.booleanisEmpty()Test whether the dataset is emptyjava.util.Iterator<Node>listGraphNodes()Iterate over all names of named graphslongsize()Get the size (number of named graphs) - may be -1 for unknown-
Methods inherited from class org.apache.jena.sparql.util.DyadicDatasetGraph
abort, add, add, addGraph, begin, begin, begin, clear, close, commit, contains, delete, delete, deleteAny, end, find, find, find, findNG, getContext, getLock, getUnionGraph, isInTransaction, prefixes, promote, removeGraph, setContext, setDefaultGraph, supportsTransactionAbort, supportsTransactions, transactionMode, transactionType
-
Methods inherited from class org.apache.jena.atlas.lib.Pair
car, cdr, create, equals, getLeft, getRight, hashCode, toString
-
Methods inherited from interface org.apache.jena.sparql.core.DatasetGraph
addAll
-
Methods inherited from interface org.apache.jena.sparql.core.Transactional
calc, calculate, calculateRead, calculateWrite, exec, execute, executeRead, executeWrite, promote
-
-
-
-
Constructor Detail
-
DifferenceDatasetGraph
public DifferenceDatasetGraph(DatasetGraph left, DatasetGraph right, Context c)
-
-
Method Detail
-
getDefaultGraph
public Graph getDefaultGraph()
Description copied from interface:DatasetGraphGet the default graph as a Jena Graph
-
getGraph
public Graph getGraph(Node graphNode)
Description copied from interface:DatasetGraphGet the graph named by graphNode : returns null when there is no such graph. NB Whether a dataset contains a graph if there are no triples is not defined - see the specific implementation. Some datasets are "open" - they have all graphs even if no triples.
-
containsGraph
public boolean containsGraph(Node graphNode)
Description copied from interface:DatasetGraphDoes 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. Some datasets are "open" - they have all graphs even if no triples and this returns true always.- Returns:
- boolean
-
listGraphNodes
public java.util.Iterator<Node> listGraphNodes()
Description copied from interface:DatasetGraphIterate over all names of named graphs
-
contains
public boolean contains(Node g, Node s, Node p, Node o)
Description copied from interface:DatasetGraphTest whether the dataset (including default graph) contains a quad - may include wildcards, Node.ANY or null
-
isEmpty
public boolean isEmpty()
Description copied from interface:DatasetGraphTest whether the dataset is empty- Specified by:
isEmptyin interfaceDatasetGraph- Overrides:
isEmptyin classDyadicDatasetGraph
-
size
public long size()
Description copied from interface:DatasetGraphGet the size (number of named graphs) - may be -1 for unknown- Specified by:
sizein interfaceDatasetGraph- Overrides:
sizein classDyadicDatasetGraph
-
-