Class UpdateExecutionUtils

java.lang.Object
org.aksw.jena_sparql_api.core.utils.UpdateExecutionUtils

public class UpdateExecutionUtils extends Object
  • Constructor Details

    • UpdateExecutionUtils

      public UpdateExecutionUtils()
  • Method Details

    • copyByConstruct

      public static void copyByConstruct(SparqlService target, SparqlService source, String constructQueryStr, int batchSize)
      Copy data from one sparql service to another based on a construct query
      Parameters:
      target -
      source -
      constructQueryStr -
      batchSize -
    • executeInsert

      public static org.apache.jena.update.UpdateProcessor executeInsert(UpdateExecutionFactory uef, org.apache.jena.rdf.model.Model model)
    • executeInsert

      public static org.apache.jena.update.UpdateProcessor executeInsert(UpdateExecutionFactory uef, org.apache.jena.graph.Graph graph)
    • executeUpdate

      public static void executeUpdate(SparqlService sparqlService, String requestStr, int batchSize, QuadContainmentChecker containmentChecker, Iterable<DatasetListener> listeners)
    • executeUpdate

      public static void executeUpdate(SparqlService sparqlService, org.apache.jena.update.UpdateRequest request, int batchSize, QuadContainmentChecker containmentChecker, Iterable<DatasetListener> listeners)
    • extractWithIri

      public static String extractWithIri(SparqlService sparqlService, org.apache.jena.update.Update update)
    • executeUpdateCore

      public static void executeUpdateCore(SparqlService sparqlService, org.apache.jena.update.Update update, com.google.common.base.Function<org.aksw.commons.collections.diff.Diff<? extends Iterable<org.apache.jena.sparql.core.Quad>>,org.aksw.commons.collections.diff.Diff<Set<org.apache.jena.sparql.core.Quad>>> filter, int batchSize, Iterable<DatasetListener> listeners)
    • executeInsertTriples

      public static org.apache.jena.update.UpdateProcessor executeInsertTriples(UpdateExecutionFactory uef, Iterable<org.apache.jena.graph.Triple> triples)
    • executeDeleteTriples

      public static org.apache.jena.update.UpdateProcessor executeDeleteTriples(UpdateExecutionFactory uef, Iterable<org.apache.jena.graph.Triple> triples)
    • executeUpdateQuads

      public static org.apache.jena.update.UpdateProcessor executeUpdateQuads(UpdateExecutionFactory uef, Iterable<? extends org.apache.jena.sparql.core.Quad> quads, boolean isDelete)
    • executeInsertQuads

      public static org.apache.jena.update.UpdateProcessor executeInsertQuads(UpdateExecutionFactory uef, Iterable<? extends org.apache.jena.sparql.core.Quad> quads)
    • executeDeleteQuads

      public static org.apache.jena.update.UpdateProcessor executeDeleteQuads(UpdateExecutionFactory uef, Iterable<? extends org.apache.jena.sparql.core.Quad> quads)
    • executeUpdate

      public static org.apache.jena.update.UpdateProcessor executeUpdate(UpdateExecutionFactory uef, org.aksw.commons.collections.diff.Diff<? extends Iterable<? extends org.apache.jena.sparql.core.Quad>> diff)
    • executeUpdateDatasetGraph

      public static org.apache.jena.update.UpdateProcessor executeUpdateDatasetGraph(UpdateExecutionFactory uef, org.aksw.commons.collections.diff.Diff<? extends org.apache.jena.sparql.core.DatasetGraph> diff)
    • executeUnlessEmpty

      public static org.apache.jena.update.UpdateProcessor executeUnlessEmpty(UpdateExecutionFactory uef, org.apache.jena.update.UpdateRequest updateRequest)
    • executeUpdateDelta

      public static org.apache.jena.update.UpdateProcessor executeUpdateDelta(UpdateExecutionFactory uef, org.apache.jena.sparql.core.DatasetGraph after, org.apache.jena.sparql.core.DatasetGraph before)
    • createUpdateRename

      public static org.apache.jena.sparql.modify.request.UpdateDeleteInsert createUpdateRename(org.apache.jena.graph.Node g, org.apache.jena.graph.Node before, org.apache.jena.graph.Node after, int i)
    • createUpdateRequestRename

      public static org.apache.jena.update.UpdateRequest createUpdateRequestRename(org.apache.jena.graph.Node graph, org.apache.jena.graph.Node before, org.apache.jena.graph.Node after)
      DELETE { <s> ?p ?o } INSERT { <x> ?p ?o} WHERE { <s> ?p ?o }
      Parameters:
      uef -
      before -
      after -
      Returns:
    • executeUpdateRename

      public static org.apache.jena.update.UpdateProcessor executeUpdateRename(UpdateExecutionFactory uef, org.apache.jena.graph.Node graph, org.apache.jena.graph.Node before, org.apache.jena.graph.Node after)