Package org.apache.jena.sparql.core
Class DatasetGraphSink
- java.lang.Object
-
- org.apache.jena.sparql.core.DatasetGraphBase
-
- org.apache.jena.sparql.core.DatasetGraphBaseFind
-
- org.apache.jena.sparql.core.DatasetGraphNull
-
- org.apache.jena.sparql.core.DatasetGraphSink
-
- All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable,DatasetGraph,Transactional
public class DatasetGraphSink extends DatasetGraphNull
An always emptyDatasetGraphthat accepts changes but ignores them.- See Also:
- a DSG that does not allow changes.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional
Transactional.Promote
-
-
Constructor Summary
Constructors Constructor Description DatasetGraphSink()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Quad quad)Add a quadvoidaddGraph(Node graphName, Graph graph)Add the given graph to the dataset.static DatasetGraphcreate()voiddelete(Quad quad)Delete a quadvoiddeleteAny(Node g, Node s, Node p, Node o)Delete any quads matching the patternPrefixMapprefixes()Prefixes for this DatasetGraphvoidremoveGraph(Node graphName)Remove all data associated with the named graph.voidsetDefaultGraph(Graph g)Set the default graph.-
Methods inherited from class org.apache.jena.sparql.core.DatasetGraphNull
abort, begin, begin, begin, commit, end, getDefaultGraph, getGraph, getUnionGraph, isInTransaction, listGraphNodes, promote, supportsTransactionAbort, supportsTransactions, transactionMode, transactionType
-
Methods inherited from class org.apache.jena.sparql.core.DatasetGraphBaseFind
find, findInUnionGraph, findNG, findQuadsInUnionGraph
-
Methods inherited from class org.apache.jena.sparql.core.DatasetGraphBase
add, clear, close, contains, contains, containsGraph, delete, deleteAny, find, find, getContext, getLock, 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
-
Methods inherited from interface org.apache.jena.sparql.core.Transactional
calc, calculate, calculateRead, calculateWrite, exec, execute, executeRead, executeWrite, promote
-
-
-
-
Method Detail
-
create
public static DatasetGraph create()
-
add
public void add(Quad quad)
Description copied from interface:DatasetGraphAdd a quad- Specified by:
addin interfaceDatasetGraph- Overrides:
addin classDatasetGraphNull
-
delete
public void delete(Quad quad)
Description copied from interface:DatasetGraphDelete a quad- Specified by:
deletein interfaceDatasetGraph- Overrides:
deletein classDatasetGraphNull
-
deleteAny
public void deleteAny(Node g, Node s, Node p, Node o)
Description copied from interface:DatasetGraphDelete any quads matching the pattern- Specified by:
deleteAnyin interfaceDatasetGraph- Overrides:
deleteAnyin classDatasetGraphNull
-
setDefaultGraph
public void setDefaultGraph(Graph g)
Description copied from interface:DatasetGraphSet the default graph. Set the active graph if it was null. This replaces the contents default graph, not merge data into it. Do not assume that the same object is returned byDatasetGraph.getDefaultGraph()- Specified by:
setDefaultGraphin interfaceDatasetGraph- Overrides:
setDefaultGraphin classDatasetGraphNull
-
addGraph
public void addGraph(Node graphName, Graph graph)
Description copied from interface:DatasetGraphAdd 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:
addGraphin interfaceDatasetGraph- Overrides:
addGraphin classDatasetGraphNull
-
removeGraph
public void removeGraph(Node graphName)
Description copied from interface:DatasetGraphRemove all data associated with the named graph. This will include prefixes associated with the graph.- Specified by:
removeGraphin interfaceDatasetGraph- Overrides:
removeGraphin classDatasetGraphNull
-
prefixes
public PrefixMap prefixes()
Description copied from interface:DatasetGraphPrefixes for this DatasetGraph
-
-