WOLFRAM

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

SPARQLDeleteInsert[del,ins,pattern]

is an update operator that can be applied to an RDFStore , which deletes and inserts data generated from templates del and ins, based on solutions of matching pattern.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
See Also
Related Guides
Cite this Page

SPARQLDeleteInsert[del,ins,pattern]

is an update operator that can be applied to an RDFStore , which deletes and inserts data generated from templates del and ins, based on solutions of matching pattern.

Details and Options

  • SPARQLDeleteInsert can be used in SPARQLExecute to update data in a SPARQL endpoint.

Examples

Basic Examples  (1)

Wolfram Language code: Needs["GraphStore`"]

Specify a graph of data about people:

Wolfram Language code: foaf[s_] := URL["http://xmlns.com/foaf/0.1/" <> s]; ex[s_] := URL["http://example.org/" <> s];
Wolfram Language code: personGraph = RDFStore[{ RDFTriple[ex["person1"], foaf["givenName"], "Tony"], RDFTriple[ex["person1"], foaf["familyName"], "Schindler"], RDFTriple[ex["person2"], foaf["givenName"], "Alex"], RDFTriple[ex["person2"], foaf["familyName"], "Hartich"] }];

Change all given names from "Tony" to "Toni":

Wolfram Language code: personGraph = personGraph//SPARQLDeleteInsert[ RDFTriple[SPARQLVariable["person"], foaf["givenName"], "Tony"], RDFTriple[SPARQLVariable["person"], foaf["givenName"], "Toni"], RDFTriple[SPARQLVariable["person"], foaf["givenName"], "Tony"] ]

Retrieve all given names:

Wolfram Language code: personGraph//SPARQLSelect[RDFTriple[SPARQLVariable["person"], foaf["givenName"], SPARQLVariable["givenName"]] -> "givenName"]
Wolfram Research (2019), SPARQLDeleteInsert, Wolfram Language function, https://reference.wolfram.com/language/GraphStore/ref/SPARQLDeleteInsert.html.

Text

Wolfram Research (2019), SPARQLDeleteInsert, Wolfram Language function, https://reference.wolfram.com/language/GraphStore/ref/SPARQLDeleteInsert.html.

CMS

Wolfram Language. 2019. "SPARQLDeleteInsert." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GraphStore/ref/SPARQLDeleteInsert.html.

APA

Wolfram Language. (2019). SPARQLDeleteInsert. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GraphStore/ref/SPARQLDeleteInsert.html

BibTeX

@misc{reference.wolfram_2026_sparqldeleteinsert, author="Wolfram Research", title="{SPARQLDeleteInsert}", year="2019", howpublished="\url{https://reference.wolfram.com/language/GraphStore/ref/SPARQLDeleteInsert.html}", note=[Accessed: 17-August-2026]}

BibLaTeX

@online{reference.wolfram_2026_sparqldeleteinsert, organization={Wolfram Research}, title={SPARQLDeleteInsert}, year={2019}, url={https://reference.wolfram.com/language/GraphStore/ref/SPARQLDeleteInsert.html}, note=[Accessed: 17-August-2026]}

Top [フレーム]

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