Package org.apache.jena.sparql.core
Class DatasetGraphViewGraphs
- java.lang.Object
-
- org.apache.jena.sparql.core.DatasetGraphWrapper
-
- org.apache.jena.sparql.core.DatasetGraphViewGraphs
-
- All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable,org.apache.jena.atlas.lib.Sync,DatasetGraph,Transactional
public class DatasetGraphViewGraphs extends DatasetGraphWrapper
Wrap a DatasetGraph with implementations ofDatasetGraph.getDefaultGraph()andDatasetGraph.getGraph(org.apache.jena.graph.Node)that use the view graph mechanism.- See Also:
GraphView
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional
Transactional.Promote
-
-
Constructor Summary
Constructors Constructor Description DatasetGraphViewGraphs(DatasetGraph dsg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.-
Methods inherited from class org.apache.jena.sparql.core.DatasetGraphWrapper
abort, add, add, addGraph, begin, begin, begin, clear, close, commit, contains, contains, containsGraph, delete, delete, deleteAny, end, find, find, find, findNG, getBase, getBaseForQuery, getContext, getLock, getUnionGraph, getWrapped, isEmpty, isInTransaction, listGraphNodes, prefixes, promote, promote, removeGraph, setDefaultGraph, size, supportsTransactionAbort, supportsTransactions, sync, toString, transactionMode, transactionType, unwrap
-
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
-
Methods inherited from interface org.apache.jena.sparql.core.Transactional
calc, calculate, calculateRead, calculateWrite, exec, execute, executeRead, executeWrite
-
-
-
-
Constructor Detail
-
DatasetGraphViewGraphs
public DatasetGraphViewGraphs(DatasetGraph dsg)
-
-
Method Detail
-
getDefaultGraph
public Graph getDefaultGraph()
Description copied from interface:DatasetGraphGet the default graph as a Jena Graph- Specified by:
getDefaultGraphin interfaceDatasetGraph- Overrides:
getDefaultGraphin classDatasetGraphWrapper
-
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.- Specified by:
getGraphin interfaceDatasetGraph- Overrides:
getGraphin classDatasetGraphWrapper
-
-