WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center

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
Details and Options Details and Options
Examples  
Basic Examples  
See Also
Related Guides
Cite this Page

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)

Wolfram Language code: Needs["GraphStore`"]

Specify a graph with data about fruits:

Wolfram Language code: ex[s_] := URL["http://example.org/" <> s];
Wolfram Language code: fruitGraph = RDFStore[{ RDFTriple[ex["banana"], ex["color"], "yellow"], RDFTriple[ex["strawberry"], ex["color"], "red"], RDFTriple[ex["cherry"], ex["color"], "red"] }]

Remove all red fruits:

Wolfram Language code: fruitGraph = fruitGraph//SPARQLDelete[RDFTriple[SPARQLVariable["fruit"], ex["color"], "red"]]
Wolfram Research (2019), SPARQLDelete, Wolfram Language function, https://reference.wolfram.com/language/GraphStore/ref/SPARQLDelete.html.

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: 21-August-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: 21-August-2026]}

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /