Class UpdateExecutionUtils
java.lang.Object
org.aksw.jena_sparql_api.core.utils.UpdateExecutionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopyByConstruct(SparqlService target, SparqlService source, String constructQueryStr, int batchSize) Copy data from one sparql service to another based on a construct querystatic org.apache.jena.sparql.modify.request.UpdateDeleteInsertcreateUpdateRename(org.apache.jena.graph.Node g, org.apache.jena.graph.Node before, org.apache.jena.graph.Node after, int i) static org.apache.jena.update.UpdateRequestcreateUpdateRequestRename(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 }static org.apache.jena.update.UpdateProcessorexecuteDeleteQuads(UpdateExecutionFactory uef, Iterable<? extends org.apache.jena.sparql.core.Quad> quads) static org.apache.jena.update.UpdateProcessorexecuteDeleteTriples(UpdateExecutionFactory uef, Iterable<org.apache.jena.graph.Triple> triples) static org.apache.jena.update.UpdateProcessorexecuteInsert(UpdateExecutionFactory uef, org.apache.jena.graph.Graph graph) static org.apache.jena.update.UpdateProcessorexecuteInsert(UpdateExecutionFactory uef, org.apache.jena.rdf.model.Model model) static org.apache.jena.update.UpdateProcessorexecuteInsertQuads(UpdateExecutionFactory uef, Iterable<? extends org.apache.jena.sparql.core.Quad> quads) static org.apache.jena.update.UpdateProcessorexecuteInsertTriples(UpdateExecutionFactory uef, Iterable<org.apache.jena.graph.Triple> triples) static org.apache.jena.update.UpdateProcessorexecuteUnlessEmpty(UpdateExecutionFactory uef, org.apache.jena.update.UpdateRequest updateRequest) static voidexecuteUpdate(SparqlService sparqlService, String requestStr, int batchSize, QuadContainmentChecker containmentChecker, Iterable<DatasetListener> listeners) static voidexecuteUpdate(SparqlService sparqlService, org.apache.jena.update.UpdateRequest request, int batchSize, QuadContainmentChecker containmentChecker, Iterable<DatasetListener> listeners) static org.apache.jena.update.UpdateProcessorexecuteUpdate(UpdateExecutionFactory uef, org.aksw.commons.collections.diff.Diff<? extends Iterable<? extends org.apache.jena.sparql.core.Quad>> diff) static voidexecuteUpdateCore(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) static org.apache.jena.update.UpdateProcessorexecuteUpdateDatasetGraph(UpdateExecutionFactory uef, org.aksw.commons.collections.diff.Diff<? extends org.apache.jena.sparql.core.DatasetGraph> diff) static org.apache.jena.update.UpdateProcessorexecuteUpdateDelta(UpdateExecutionFactory uef, org.apache.jena.sparql.core.DatasetGraph after, org.apache.jena.sparql.core.DatasetGraph before) static org.apache.jena.update.UpdateProcessorexecuteUpdateQuads(UpdateExecutionFactory uef, Iterable<? extends org.apache.jena.sparql.core.Quad> quads, boolean isDelete) static org.apache.jena.update.UpdateProcessorexecuteUpdateRename(UpdateExecutionFactory uef, org.apache.jena.graph.Node graph, org.apache.jena.graph.Node before, org.apache.jena.graph.Node after) static StringextractWithIri(SparqlService sparqlService, org.apache.jena.update.Update update)
-
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)
-