GraphStore`
GraphStore`

SPARQLUpdate

SPARQLUpdate[operator1/*operator2/*]

is an update operator that can be applied to an RDFStore.

SPARQLUpdate["update"]

uses a SPARQL update string.

Details and Options

  • SPARQLUpdate can be used in SPARQLExecute to update data in SPARQL endpoint.
  • When SPARQLUpdate is applied to an RDFStore an updated store is returned. The original store is not modified.
  • The following options can be given:
  • "Base"Nonebase IRI used to resolve relative IRIs
  • SPARQLUpdate[File[...]] and SPARQLQuery[URL[...]] are also supported.

Examples

Basic Examples  (1)

Start with an empty graph:

Insert data about strawberries:

Insert more data using a SPARQL update string:

Delete all data about red fruits:

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

Text

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

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2023_sparqlupdate, author="Wolfram Research", title="{SPARQLUpdate}", year="2019", howpublished="\url{https://reference.wolfram.com/language/GraphStore/ref/SPARQLUpdate.html}", note=[Accessed: 19-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_sparqlupdate, organization={Wolfram Research}, title={SPARQLUpdate}, year={2019}, url={https://reference.wolfram.com/language/GraphStore/ref/SPARQLUpdate.html}, note=[Accessed: 19-March-2024 ]}