Package org.apache.jena.sparql.core
Class DatasetGraphReadOnly
- java.lang.Object
-
- org.apache.jena.sparql.core.DatasetGraphWrapper
-
- org.apache.jena.sparql.core.DatasetGraphReadOnly
-
- All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable,org.apache.jena.atlas.lib.Sync,DatasetGraph,Transactional
- Direct Known Subclasses:
DatasetGraphFilteredView,DynamicDatasets.DynamicDatasetGraph
public class DatasetGraphReadOnly extends DatasetGraphWrapper
Read-only view of a DatasetGraph. Assumes the dataset underneath isn't changing.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional
Transactional.Promote
-
-
Constructor Summary
Constructors Constructor Description DatasetGraphReadOnly(DatasetGraph dsg)DatasetGraphReadOnly(DatasetGraph dsg, Context cxt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbegin(ReadWrite mode)Start either a READ or WRITE transaction.voidclose()Close the datasetGraphgetDefaultGraph()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, clear, 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
-
DatasetGraphReadOnly
public DatasetGraphReadOnly(DatasetGraph dsg)
-
DatasetGraphReadOnly
public DatasetGraphReadOnly(DatasetGraph dsg, Context cxt)
-
-
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
-
begin
public void begin(ReadWrite mode)
Description copied from interface:TransactionalStart either a READ or WRITE transaction.- Specified by:
beginin interfaceTransactional- Overrides:
beginin 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
-
close
public void close()
Description copied from interface:DatasetGraphClose the dataset- Specified by:
closein interfaceorg.apache.jena.atlas.lib.Closeable- Specified by:
closein interfaceDatasetGraph- Overrides:
closein classDatasetGraphWrapper
-
-