Class ParsedUpdate

java.lang.Object
org.eclipse.rdf4j.query.parser.ParsedOperation
org.eclipse.rdf4j.query.parser.ParsedUpdate
Direct Known Subclasses:
ParsedUpdateTemplate

public class ParsedUpdate extends ParsedOperation
A parsed update sequence formulated in the OpenRDF query algebra.
Author:
Jeen Broekstra
  • Constructor Details

    • ParsedUpdate

      public ParsedUpdate()
      Creates a new update sequence. To complete this update sequence, one or more update expressions need to be supplied to it using addUpdateExpr(UpdateExpr).
    • ParsedUpdate

      public ParsedUpdate(String sourceString)
    • ParsedUpdate

      public ParsedUpdate(String sourceString, Map<String,String> namespaces)
    • ParsedUpdate

      public ParsedUpdate(Map<String,String> namespaces)
      Creates a new update sequence. To complete this update sequence, one or update expressions need to be supplied to it using addUpdateExpr(UpdateExpr).
      Parameters:
      namespaces - A mapping of namespace prefixes to namespace names representing the namespaces that are used in the update.
  • Method Details

    • getNamespaces

      public Map<String,String> getNamespaces()
    • addUpdateExpr

      public void addUpdateExpr(UpdateExpr updateExpr)
    • getUpdateExprs

      public List<UpdateExpr> getUpdateExprs()
    • map

      public void map(UpdateExpr updateExpr, Dataset dataset)
      Parameters:
      updateExpr - The updateExpr to map to a dataset.
      dataset - the dataset that applies to the updateExpr. May be null.
    • getDatasetMapping

      public Map<UpdateExpr,Dataset> getDatasetMapping()
      Returns:
      Returns the map of update expressions and associated datasets.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object