SPARQLDelete[patterntemplate]
is an update operator that can be applied to an RDFStore, which deletes data generated from template, based on solutions of matching pattern.
SPARQLDelete[pattern]
uses pattern as template.
SPARQLDelete
SPARQLDelete[patterntemplate]
is an update operator that can be applied to an RDFStore, which deletes data generated from template, based on solutions of matching pattern.
SPARQLDelete[pattern]
uses pattern as template.
Details and Options
- SPARQLDelete can be used in SPARQLExecute to delete data from a SPARQL endpoint.
- In SPARQLDelete[patterntemplate], template corresponds to the DELETE clause, and pattern corresponds to the WHERE clause of a SPARQL update request.
- In SPARQLDelete[pattern], pattern corresponds to the DELETE WHERE clause of a SPARQL update request.
Examples
Basic Examples (1)
Needs["GraphStore`"]Specify a graph with data about fruits:
ex[s_] := URL["http://example.org/" <> s];fruitGraph = RDFStore[{
RDFTriple[ex["banana"], ex["color"], "yellow"],
RDFTriple[ex["strawberry"], ex["color"], "red"],
RDFTriple[ex["cherry"], ex["color"], "red"]
}]fruitGraph = fruitGraph//SPARQLDelete[RDFTriple[SPARQLVariable["fruit"], ex["color"], "red"]]Related Guides
Text
Wolfram Research (2019), SPARQLDelete, Wolfram Language function, https://reference.wolfram.com/language/GraphStore/ref/SPARQLDelete.html.
CMS
Wolfram Language. 2019. "SPARQLDelete." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GraphStore/ref/SPARQLDelete.html.
APA
Wolfram Language. (2019). SPARQLDelete. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GraphStore/ref/SPARQLDelete.html
BibTeX
@misc{reference.wolfram_2026_sparqldelete, author="Wolfram Research", title="{SPARQLDelete}", year="2019", howpublished="\url{https://reference.wolfram.com/language/GraphStore/ref/SPARQLDelete.html}", note=[Accessed: 15-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_sparqldelete, organization={Wolfram Research}, title={SPARQLDelete}, year={2019}, url={https://reference.wolfram.com/language/GraphStore/ref/SPARQLDelete.html}, note=[Accessed: 15-June-2026]}