java.lang.Object
org.apache.jena.rdfpatch.changes.RDFChangesApply
- All Implemented Interfaces:
RDFChanges
Apply changes to a
DatasetGraph-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Notification that a quad or triple is added.voidAdd a prefix.voiddelete(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Notification that a quad or triple is deleted.voiddeletePrefix(org.apache.jena.graph.Node gn, String prefix) Delete a prefix.voidfinish()Finish processing.voidHeader field.voidsegment()Segment marker.voidstart()Start processing.voidtxnAbort()Indicator that a transaction abortsvoidtxnBegin()Indicator that a transaction begins, or becomes a write transaction.voidIndicator that a transaction commits.
-
Constructor Details
-
RDFChangesApply
public RDFChangesApply(org.apache.jena.sparql.core.DatasetGraph dsg)
-
-
Method Details
-
start
public void start()Description copied from interface:RDFChangesStart processing. The exact meaning is implementation dependent. This should be paired with aRDFChanges.finish().- Specified by:
startin interfaceRDFChanges
-
finish
public void finish()Description copied from interface:RDFChangesFinish processing. The exact meaning is implementation dependent. This should be paired with aRDFChanges.start().- Specified by:
finishin interfaceRDFChanges
-
segment
public void segment()Description copied from interface:RDFChangesSegment marker.A segment is a number of transactions; the grouping rationale is not defined by RDF Patch.
It might be used to indicate a logical collection of change transactions in a long stream of transactions.
There is no guarantee it will be used.
Segments must contain complete transactions.
Segments must not span start-finish pairs.- Specified by:
segmentin interfaceRDFChanges
-
header
Description copied from interface:RDFChangesHeader field. Headers are metadata about the changes being made.- Specified by:
headerin interfaceRDFChanges
-
add
public void add(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Description copied from interface:RDFChangesNotification that a quad or triple is added. A stream of Triples outside a dataset will have null for the graph name. Inside an RDF Dataset, it may be more natural to use "urn:x-arq:DefaultGraph" or "urn:x-arq:DefaultGraphNode" in which case test withQuad.isDefaultGraph(Node).It is not defined whether the add happens before or after this notification all.
- Specified by:
addin interfaceRDFChanges
-
delete
public void delete(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) Description copied from interface:RDFChangesNotification that a quad or triple is deleted. A stream of Triples outside a dataset will have null for the graph name. Inside an RDF Dataset, it may be more natural to use "urn:x-arq:DefaultGraph" or "urn:x-arq:DefaultGraphNode" in which case test withQuad.isDefaultGraph(Node).It is not defined whether the delete happens before or after this notification all.
- Specified by:
deletein interfaceRDFChanges
-
addPrefix
Description copied from interface:RDFChangesAdd a prefix. The graph name follows the same rules asRDFChanges.add(org.apache.jena.graph.Node, org.apache.jena.graph.Node, org.apache.jena.graph.Node, org.apache.jena.graph.Node).- Specified by:
addPrefixin interfaceRDFChanges
-
deletePrefix
Description copied from interface:RDFChangesDelete a prefix. The graph name follows the same rules asRDFChanges.add(org.apache.jena.graph.Node, org.apache.jena.graph.Node, org.apache.jena.graph.Node, org.apache.jena.graph.Node).- Specified by:
deletePrefixin interfaceRDFChanges
-
txnBegin
public void txnBegin()Description copied from interface:RDFChangesIndicator that a transaction begins, or becomes a write transaction.- Specified by:
txnBeginin interfaceRDFChanges
-
txnCommit
public void txnCommit()Description copied from interface:RDFChangesIndicator that a transaction commits. If this throws an exception, the transaction will be aborted locally and not commit after all.- Specified by:
txnCommitin interfaceRDFChanges
-
txnAbort
public void txnAbort()Description copied from interface:RDFChangesIndicator that a transaction aborts- Specified by:
txnAbortin interfaceRDFChanges
-