Package org.aksw.jenax.arq.util.update
Class UpdateUtils
java.lang.Object
org.aksw.jenax.arq.util.update.UpdateUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyDatasetDescription(org.apache.jena.sparql.modify.request.UpdateWithUsing update, org.apache.jena.sparql.core.DatasetDescription dg) static booleanapplyDatasetDescriptionIfApplicable(org.apache.jena.update.Update update, org.apache.jena.sparql.core.DatasetDescription dg) static org.apache.jena.update.UpdateapplyElementTransform(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.UpdateapplyNodeTransform(org.apache.jena.update.Update update, org.apache.jena.sparql.graph.NodeTransform nodeTransform) static org.apache.jena.update.UpdateapplyOpTransform(org.apache.jena.update.Update update, Function<? super org.apache.jena.sparql.algebra.Op, ? extends org.apache.jena.sparql.algebra.Op> transform) static voidapplyWithIriIfApplicable(org.apache.jena.update.Update update, String withIri) static voidapplyWithIriIfApplicable(org.apache.jena.update.Update update, org.apache.jena.graph.Node withIri) static org.apache.jena.sparql.modify.request.UpdateDataDeleteclone(org.apache.jena.sparql.modify.request.UpdateDataDelete update) static org.apache.jena.sparql.modify.request.UpdateDataInsertclone(org.apache.jena.sparql.modify.request.UpdateDataInsert update) static org.apache.jena.sparql.modify.request.UpdateDeleteInsertclone(org.apache.jena.sparql.modify.request.UpdateModify update) static org.apache.jena.update.Updateclone(org.apache.jena.update.Update update) static org.apache.jena.update.UpdateconstructToInsert(org.apache.jena.query.Query query) Convert a construct query into an insert querystatic org.apache.jena.sparql.modify.request.UpdateDataDeletecopyQuadTransform(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.UpdateDatacopyWithDefaultGraph(org.apache.jena.sparql.modify.request.UpdateData update, String newGStr) static org.apache.jena.sparql.modify.request.UpdateDatacopyWithDefaultGraph(org.apache.jena.sparql.modify.request.UpdateData update, org.apache.jena.graph.Node newG) static org.apache.jena.update.UpdatecopyWithIri(org.apache.jena.update.Update update, String withIriStr, boolean substituteDefaultGraph) static org.apache.jena.update.UpdatecopyWithIri(org.apache.jena.update.Update update, org.apache.jena.graph.Node withIri, boolean substituteDefaultGraph) static org.apache.jena.sparql.modify.request.UpdateDataInsertcopyWithQuadTransform(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.UpdateDatacopyWithQuadTransform(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 voidexecRename(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 StringgetWithIri(org.apache.jena.update.Update update) static booleanhasDatasetDescription(org.apache.jena.sparql.modify.request.UpdateWithUsing update) static org.apache.jena.sparql.modify.request.UpdateDataInsertmaterialize(org.apache.jena.sparql.modify.request.UpdateLoad update) Turn a LOAD statement into an INSERT one.static booleanoverwriteDatasetDescription(org.apache.jena.sparql.modify.request.UpdateWithUsing update, org.apache.jena.sparql.core.DatasetDescription dd) static booleanoverwriteDatasetDescriptionIfApplicable(org.apache.jena.update.Update update, org.apache.jena.sparql.core.DatasetDescription dg) static voidrenameNamespace(org.apache.jena.graph.Graph graph, String from, String to) static voidrenameProperty(org.apache.jena.graph.Graph graph, String from, String to) Rename a property in a graph (via SPARQL Update)
-
Constructor Details
-
UpdateUtils
public UpdateUtils()
-
-
Method Details
-
renameProperty
Rename a property in a graph (via SPARQL Update)- Parameters:
graph-from-to-
-
renameNamespace
-
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
-
applyWithIriIfApplicable
-
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.
-