Class UpdateUtils

java.lang.Object
org.aksw.jenax.arq.util.update.UpdateUtils

public class UpdateUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    applyDatasetDescription(org.apache.jena.sparql.modify.request.UpdateWithUsing update, org.apache.jena.sparql.core.DatasetDescription dg)
     
    static boolean
    applyDatasetDescriptionIfApplicable(org.apache.jena.update.Update update, org.apache.jena.sparql.core.DatasetDescription dg)
     
    static org.apache.jena.update.Update
    applyElementTransform(org.apache.jena.update.Update update, Function<? super org.apache.jena.sparql.syntax.Element,? extends org.apache.jena.sparql.syntax.Element> transform)
     
    static org.apache.jena.update.Update
    applyNodeTransform(org.apache.jena.update.Update update, org.apache.jena.sparql.graph.NodeTransform nodeTransform)
     
    static org.apache.jena.update.Update
    applyOpTransform(org.apache.jena.update.Update update, Function<? super org.apache.jena.sparql.algebra.Op,? extends org.apache.jena.sparql.algebra.Op> transform)
     
    static void
    applyWithIriIfApplicable(org.apache.jena.update.Update update, String withIri)
     
    static void
    applyWithIriIfApplicable(org.apache.jena.update.Update update, org.apache.jena.graph.Node withIri)
     
    static org.apache.jena.sparql.modify.request.UpdateDataDelete
    clone(org.apache.jena.sparql.modify.request.UpdateDataDelete update)
     
    static org.apache.jena.sparql.modify.request.UpdateDataInsert
    clone(org.apache.jena.sparql.modify.request.UpdateDataInsert update)
     
    static org.apache.jena.sparql.modify.request.UpdateDeleteInsert
    clone(org.apache.jena.sparql.modify.request.UpdateModify update)
     
    static org.apache.jena.update.Update
    clone(org.apache.jena.update.Update update)
     
    static org.apache.jena.update.Update
    constructToInsert(org.apache.jena.query.Query query)
    Convert a construct query into an insert query
    static org.apache.jena.sparql.modify.request.UpdateDataDelete
    copyQuadTransform(org.apache.jena.sparql.modify.request.UpdateDataDelete update, Function<? super org.apache.jena.sparql.core.Quad,? extends org.apache.jena.sparql.core.Quad> quadTransform)
     
    static org.apache.jena.sparql.modify.request.UpdateData
    copyWithDefaultGraph(org.apache.jena.sparql.modify.request.UpdateData update, String newGStr)
     
    static org.apache.jena.sparql.modify.request.UpdateData
    copyWithDefaultGraph(org.apache.jena.sparql.modify.request.UpdateData update, org.apache.jena.graph.Node newG)
     
    static org.apache.jena.update.Update
    copyWithIri(org.apache.jena.update.Update update, String withIriStr, boolean substituteDefaultGraph)
     
    static org.apache.jena.update.Update
    copyWithIri(org.apache.jena.update.Update update, org.apache.jena.graph.Node withIri, boolean substituteDefaultGraph)
     
    static org.apache.jena.sparql.modify.request.UpdateDataInsert
    copyWithQuadTransform(org.apache.jena.sparql.modify.request.UpdateDataInsert update, Function<? super org.apache.jena.sparql.core.Quad,? extends org.apache.jena.sparql.core.Quad> quadTransform)
     
    static org.apache.jena.sparql.modify.request.UpdateData
    copyWithQuadTransform(org.apache.jena.sparql.modify.request.UpdateData update, Function<? super org.apache.jena.sparql.core.Quad,? extends org.apache.jena.sparql.core.Quad> quadTransform)
     
    static void
    execRename(org.apache.jena.graph.Graph graph, org.apache.jena.update.UpdateRequest template, org.apache.jena.graph.Node from, org.apache.jena.graph.Node to)
     
    static String
    getWithIri(org.apache.jena.update.Update update)
     
    static boolean
    hasDatasetDescription(org.apache.jena.sparql.modify.request.UpdateWithUsing update)
     
    static org.apache.jena.sparql.modify.request.UpdateDataInsert
    materialize(org.apache.jena.sparql.modify.request.UpdateLoad update)
    Turn a LOAD statement into an INSERT one.
    static boolean
    overwriteDatasetDescription(org.apache.jena.sparql.modify.request.UpdateWithUsing update, org.apache.jena.sparql.core.DatasetDescription dd)
     
    static boolean
    overwriteDatasetDescriptionIfApplicable(org.apache.jena.update.Update update, org.apache.jena.sparql.core.DatasetDescription dg)
     
    static void
    renameNamespace(org.apache.jena.graph.Graph graph, String from, String to)
     
    static void
    renameProperty(org.apache.jena.graph.Graph graph, String from, String to)
    Rename a property in a graph (via SPARQL Update)

    Methods inherited from class java.lang.Object

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

    • UpdateUtils

      public UpdateUtils()
  • Method Details

    • renameProperty

      public static void renameProperty(org.apache.jena.graph.Graph graph, String from, String to)
      Rename a property in a graph (via SPARQL Update)
      Parameters:
      graph -
      from -
      to -
    • renameNamespace

      public static void renameNamespace(org.apache.jena.graph.Graph graph, String from, String to)
    • execRename

      public static void execRename(org.apache.jena.graph.Graph graph, org.apache.jena.update.UpdateRequest template, org.apache.jena.graph.Node from, org.apache.jena.graph.Node to)
    • applyOpTransform

      public static org.apache.jena.update.Update applyOpTransform(org.apache.jena.update.Update update, Function<? super org.apache.jena.sparql.algebra.Op,? extends org.apache.jena.sparql.algebra.Op> transform)
    • applyNodeTransform

      public static org.apache.jena.update.Update applyNodeTransform(org.apache.jena.update.Update update, org.apache.jena.sparql.graph.NodeTransform nodeTransform)
    • applyElementTransform

      public static org.apache.jena.update.Update applyElementTransform(org.apache.jena.update.Update update, Function<? super org.apache.jena.sparql.syntax.Element,? extends org.apache.jena.sparql.syntax.Element> transform)
    • clone

      public static org.apache.jena.update.Update clone(org.apache.jena.update.Update update)
    • clone

      public static org.apache.jena.sparql.modify.request.UpdateDataInsert clone(org.apache.jena.sparql.modify.request.UpdateDataInsert update)
    • clone

      public static org.apache.jena.sparql.modify.request.UpdateDataDelete clone(org.apache.jena.sparql.modify.request.UpdateDataDelete update)
    • clone

      public static org.apache.jena.sparql.modify.request.UpdateDeleteInsert clone(org.apache.jena.sparql.modify.request.UpdateModify update)
    • getWithIri

      public static String getWithIri(org.apache.jena.update.Update update)
    • applyWithIriIfApplicable

      public static void applyWithIriIfApplicable(org.apache.jena.update.Update update, String withIri)
    • applyWithIriIfApplicable

      public static void applyWithIriIfApplicable(org.apache.jena.update.Update update, org.apache.jena.graph.Node withIri)
    • applyDatasetDescriptionIfApplicable

      public static boolean applyDatasetDescriptionIfApplicable(org.apache.jena.update.Update update, org.apache.jena.sparql.core.DatasetDescription dg)
    • hasDatasetDescription

      public static boolean hasDatasetDescription(org.apache.jena.sparql.modify.request.UpdateWithUsing update)
    • applyDatasetDescription

      public static void applyDatasetDescription(org.apache.jena.sparql.modify.request.UpdateWithUsing update, org.apache.jena.sparql.core.DatasetDescription dg)
    • overwriteDatasetDescription

      public static boolean overwriteDatasetDescription(org.apache.jena.sparql.modify.request.UpdateWithUsing update, org.apache.jena.sparql.core.DatasetDescription dd)
    • overwriteDatasetDescriptionIfApplicable

      public static boolean overwriteDatasetDescriptionIfApplicable(org.apache.jena.update.Update update, org.apache.jena.sparql.core.DatasetDescription dg)
    • copyWithIri

      public static org.apache.jena.update.Update copyWithIri(org.apache.jena.update.Update update, String withIriStr, boolean substituteDefaultGraph)
    • copyWithIri

      public static org.apache.jena.update.Update copyWithIri(org.apache.jena.update.Update update, org.apache.jena.graph.Node withIri, boolean substituteDefaultGraph)
    • copyWithDefaultGraph

      public static org.apache.jena.sparql.modify.request.UpdateData copyWithDefaultGraph(org.apache.jena.sparql.modify.request.UpdateData update, String newGStr)
    • copyWithDefaultGraph

      public static org.apache.jena.sparql.modify.request.UpdateData copyWithDefaultGraph(org.apache.jena.sparql.modify.request.UpdateData update, org.apache.jena.graph.Node newG)
    • copyWithQuadTransform

      public static org.apache.jena.sparql.modify.request.UpdateData copyWithQuadTransform(org.apache.jena.sparql.modify.request.UpdateData update, Function<? super org.apache.jena.sparql.core.Quad,? extends org.apache.jena.sparql.core.Quad> quadTransform)
    • copyWithQuadTransform

      public static org.apache.jena.sparql.modify.request.UpdateDataInsert copyWithQuadTransform(org.apache.jena.sparql.modify.request.UpdateDataInsert update, Function<? super org.apache.jena.sparql.core.Quad,? extends org.apache.jena.sparql.core.Quad> quadTransform)
    • copyQuadTransform

      public static org.apache.jena.sparql.modify.request.UpdateDataDelete copyQuadTransform(org.apache.jena.sparql.modify.request.UpdateDataDelete update, Function<? super org.apache.jena.sparql.core.Quad,? extends org.apache.jena.sparql.core.Quad> quadTransform)
    • constructToInsert

      public static org.apache.jena.update.Update constructToInsert(org.apache.jena.query.Query query)
      Convert a construct query into an insert query
    • materialize

      public static org.apache.jena.sparql.modify.request.UpdateDataInsert materialize(org.apache.jena.sparql.modify.request.UpdateLoad update)
      Turn a LOAD statement into an INSERT one.