Class RDFChangesWriteUpdate

java.lang.Object
org.apache.jena.rdfpatch.changes.RDFChangesWriteUpdate
All Implemented Interfaces:
RDFChanges

public class RDFChangesWriteUpdate extends Object implements RDFChanges
Write data changes as SPARQL Update. This is just data - no prefixes.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RDFChangesWriteUpdate(org.apache.jena.atlas.io.AWriter out)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
    Notification that a quad or triple is added.
    void
    addPrefix(org.apache.jena.graph.Node gn, String prefix, String uriStr)
    Add a prefix.
    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)
    Notification that a quad or triple is deleted.
    void
    deletePrefix(org.apache.jena.graph.Node gn, String prefix)
    Delete a prefix.
    void
    Finish processing.
    void
    header(String field, org.apache.jena.graph.Node value)
    Header field.
    void
    Segment marker.
    void
    Start processing.
    void
    Indicator that a transaction aborts
    void
    Indicator that a transaction begins, or becomes a write transaction.
    void
    Indicator that a transaction commits.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RDFChangesWriteUpdate

      public RDFChangesWriteUpdate(org.apache.jena.atlas.io.AWriter out)
  • Method Details

    • start

      public void start()
      Description copied from interface: RDFChanges
      Start processing. The exact meaning is implementation dependent. This should be paired with a RDFChanges.finish().
      Specified by:
      start in interface RDFChanges
    • finish

      public void finish()
      Description copied from interface: RDFChanges
      Finish processing. The exact meaning is implementation dependent. This should be paired with a RDFChanges.start().
      Specified by:
      finish in interface RDFChanges
    • header

      public void header(String field, org.apache.jena.graph.Node value)
      Description copied from interface: RDFChanges
      Header field. Headers are metadata about the changes being made.
      Specified by:
      header in interface RDFChanges
    • 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: RDFChanges
      Notification 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 with Quad.isDefaultGraph(Node).

      It is not defined whether the add happens before or after this notification all.

      Specified by:
      add in interface RDFChanges
    • 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: RDFChanges
      Notification 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 with Quad.isDefaultGraph(Node).

      It is not defined whether the delete happens before or after this notification all.

      Specified by:
      delete in interface RDFChanges
    • addPrefix

      public void addPrefix(org.apache.jena.graph.Node gn, String prefix, String uriStr)
      Description copied from interface: RDFChanges
      Specified by:
      addPrefix in interface RDFChanges
    • deletePrefix

      public void deletePrefix(org.apache.jena.graph.Node gn, String prefix)
      Description copied from interface: RDFChanges
      Specified by:
      deletePrefix in interface RDFChanges
    • txnBegin

      public void txnBegin()
      Description copied from interface: RDFChanges
      Indicator that a transaction begins, or becomes a write transaction.
      Specified by:
      txnBegin in interface RDFChanges
    • txnCommit

      public void txnCommit()
      Description copied from interface: RDFChanges
      Indicator that a transaction commits. If this throws an exception, the transaction will be aborted locally and not commit after all.
      Specified by:
      txnCommit in interface RDFChanges
    • txnAbort

      public void txnAbort()
      Description copied from interface: RDFChanges
      Indicator that a transaction aborts
      Specified by:
      txnAbort in interface RDFChanges
    • segment

      public void segment()
      Description copied from interface: RDFChanges
      Segment 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:
      segment in interface RDFChanges