java.lang.Object
org.apache.jena.sparql.core.DatasetGraphBase
org.apache.jena.sparql.core.DatasetGraphBaseFind
org.apache.jena.sparql.core.DatasetGraphTriplesQuads
- All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable
,DatasetGraph
,Transactional
- Direct Known Subclasses:
BufferingDatasetGraph
,DatasetGraphInMemory
,DatasetGraphMap
A DatasetGraph base class for triples+quads storage.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional
Transactional.Promote
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
Add a quadfinal void
Add a quadvoid
Add the given graph to the dataset.final void
Delete a quadfinal void
Delete a quadvoid
removeGraph
(Node graphName) Remove all data associated with the named graph.void
setDefaultGraph
(Graph graph) Deprecated.Methods inherited from class org.apache.jena.sparql.core.DatasetGraphBaseFind
find, findInUnionGraph, findNG, findQuadsInUnionGraph
Methods inherited from class org.apache.jena.sparql.core.DatasetGraphBase
clear, close, contains, contains, containsGraph, deleteAny, deleteAny, find, find, getContext, getDefaultGraph, getGraph, getLock, getUnionGraph, isEmpty, size, toString
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, listGraphNodes, prefixes, stream, stream, supportsTransactionAbort, supportsTransactions
Methods inherited from interface org.apache.jena.sparql.core.Transactional
abort, begin, begin, begin, calc, calculate, calculateRead, calculateWrite, commit, end, exec, execute, executeRead, executeWrite, isInTransaction, promote, promote, transactionMode, transactionType
-
Constructor Details
-
DatasetGraphTriplesQuads
public DatasetGraphTriplesQuads()
-
-
Method Details
-
add
Description copied from interface:DatasetGraph
Add a quad- Specified by:
add
in interfaceDatasetGraph
- Overrides:
add
in classDatasetGraphBase
-
delete
Description copied from interface:DatasetGraph
Delete a quad- Specified by:
delete
in interfaceDatasetGraph
- Overrides:
delete
in classDatasetGraphBase
-
add
Description copied from interface:DatasetGraph
Add a quad- Specified by:
add
in interfaceDatasetGraph
- Overrides:
add
in classDatasetGraphBase
-
delete
Description copied from interface:DatasetGraph
Delete a quad- Specified by:
delete
in interfaceDatasetGraph
- Overrides:
delete
in classDatasetGraphBase
-
setDefaultGraph
Deprecated.Description copied from interface:DatasetGraph
Set the default graph. This replaces the contents default graph, not merge data into it. Do not assume that the same object is returned byDatasetGraph.getDefaultGraph()
- Specified by:
setDefaultGraph
in interfaceDatasetGraph
- Overrides:
setDefaultGraph
in classDatasetGraphBase
-
addGraph
Description copied from interface:DatasetGraph
Add the given graph to the dataset. Replaces any existing data for the named graph; to add data, get the graph and add triples to it, or add quads to the dataset. Do not assume that the same Java object is returned byDatasetGraph.getGraph(org.apache.jena.graph.Node)
- Specified by:
addGraph
in interfaceDatasetGraph
- Specified by:
addGraph
in classDatasetGraphBase
-
removeGraph
Description copied from interface:DatasetGraph
Remove all data associated with the named graph. This will include prefixes associated with the graph.- Specified by:
removeGraph
in interfaceDatasetGraph
- Specified by:
removeGraph
in classDatasetGraphBase
-