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
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
Start either a READ or WRITE transaction.void
close()
Close the datasetorg.apache.jena.graph.Graph
Get the default graph as a Jena Graphorg.apache.jena.graph.Graph
getGraph
(org.apache.jena.graph.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, 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, stream, stream
Methods inherited from interface org.apache.jena.sparql.core.Transactional
calc, calculate, calculateRead, calculateWrite, exec, execute, executeRead, executeWrite
-
Constructor Details
-
DatasetGraphReadOnly
-
DatasetGraphReadOnly
-
-
Method Details
-
getDefaultGraph
public org.apache.jena.graph.Graph getDefaultGraph()Description copied from interface:DatasetGraph
Get the default graph as a Jena Graph- Specified by:
getDefaultGraph
in interfaceDatasetGraph
- Overrides:
getDefaultGraph
in classDatasetGraphWrapper
-
begin
Description copied from interface:Transactional
Start either a READ or WRITE transaction.- Specified by:
begin
in interfaceTransactional
- Overrides:
begin
in classDatasetGraphWrapper
-
getGraph
public org.apache.jena.graph.Graph getGraph(org.apache.jena.graph.Node graphNode) Description copied from interface:DatasetGraph
Get 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:
getGraph
in interfaceDatasetGraph
- Overrides:
getGraph
in classDatasetGraphWrapper
-
close
public void close()Description copied from interface:DatasetGraph
Close the dataset- Specified by:
close
in interfaceorg.apache.jena.atlas.lib.Closeable
- Specified by:
close
in interfaceDatasetGraph
- Overrides:
close
in classDatasetGraphWrapper
-