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 TypeMethodDescriptionvoidStart either a READ or WRITE transaction.voidclose()Close the datasetorg.apache.jena.graph.GraphGet the default graph as a Jena Graphorg.apache.jena.graph.GraphgetGraph(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, unwrapMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.jena.sparql.core.DatasetGraph
addAll, stream, streamMethods 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:DatasetGraphGet the default graph as a Jena Graph- Specified by:
getDefaultGraphin interfaceDatasetGraph- Overrides:
getDefaultGraphin classDatasetGraphWrapper
-
begin
Description copied from interface:TransactionalStart either a READ or WRITE transaction.- Specified by:
beginin interfaceTransactional- Overrides:
beginin classDatasetGraphWrapper
-
getGraph
public org.apache.jena.graph.Graph getGraph(org.apache.jena.graph.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
-