java.lang.Object
org.apache.jena.sparql.graph.GraphWrapper
org.apache.jena.rdfpatch.system.GraphChanges
- All Implemented Interfaces:
Graph
- Direct Known Subclasses:
GraphRealChanges
Connect a
Graph with RDFChanges. All operations on the Graph
that cause changes have the change sent to the RDFChanges.
Use GraphRealChanges to get a graph that logs only changes that have a real
effect - that makes the changes log reversible (play delete for each add) to undo a
sequence of changes.
The graph name is settable; it is arbitrary, or null, and not deduced from the graph.
If the graph is a graph from a dataset and the same graph name is to be used, then
instead of this class, get a graph from DatasetGraphChanges.
- See Also:
-
Field Summary
Fields inherited from interface org.apache.jena.graph.Graph
emptyGraph -
Constructor Summary
ConstructorsConstructorDescriptionGraphChanges(Graph graph, Node graphName, RDFChanges changes) Send changes to a graph to aRDFChangeswith the specified graph name.GraphChanges(Graph graph, RDFChanges changes) Send changes to a graph to aRDFChangeswith null for the graph name. -
Method Summary
Methods inherited from class org.apache.jena.sparql.graph.GraphWrapper
close, contains, contains, dependsOn, find, find, get, getCapabilities, getEventManager, isClosed, isEmpty, isIsomorphicWith, size
-
Constructor Details
-
GraphChanges
Send changes to a graph to aRDFChangeswith null for the graph name. -
GraphChanges
Send changes to a graph to aRDFChangeswith the specified graph name. The graph name may be null for "no name".
-
-
Method Details
-
add
- Specified by:
addin interfaceGraph- Overrides:
addin classGraphWrapper
-
delete
- Specified by:
deletein interfaceGraph- Overrides:
deletein classGraphWrapper
-
clear
public void clear()- Specified by:
clearin interfaceGraph- Overrides:
clearin classGraphWrapper
-
getPrefixMapping
- Specified by:
getPrefixMappingin interfaceGraph- Overrides:
getPrefixMappingin classGraphWrapper
-
remove
- Specified by:
removein interfaceGraph- Overrides:
removein classGraphWrapper
-
getTransactionHandler
- Specified by:
getTransactionHandlerin interfaceGraph- Overrides:
getTransactionHandlerin classGraphWrapper
-