SPARQLInsertData[data]
is an insert operator that can be applied to an RDFStore, which inserts the data data.
SPARQLInsertData
SPARQLInsertData[data]
is an insert operator that can be applied to an RDFStore, which inserts the data data.
Details and Options
- SPARQLInsertData can be used in SPARQLExecute to insert data into a SPARQL endpoint.
Examples
open all close allBasic Examples (1)
Needs["GraphStore`"]Create 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"]
}];fruitGraph = fruitGraph//SPARQLInsertData[{
RDFTriple[ex["kiwi"], ex["color"], "green"],
RDFTriple[ex["apricot"], ex["color"], "orange"]
}]Scope (1)
Needs["GraphStore`"]Create an RDFStore that contains current population data:
ex[s_] := URL["http://example.org/" <> s];store = RDFStore[{
RDFTriple[ex["Germany"], ex["population"], 80500000]
}]Insert historical data into a separate graph:
store = store//SPARQLInsertData[SPARQLGraph[ex["dataset/1986"], RDFTriple[ex["Germany"], ex["population"], 78000000]]]Related Guides
Text
Wolfram Research (2019), SPARQLInsertData, Wolfram Language function, https://reference.wolfram.com/language/GraphStore/ref/SPARQLInsertData.html.
CMS
Wolfram Language. 2019. "SPARQLInsertData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GraphStore/ref/SPARQLInsertData.html.
APA
Wolfram Language. (2019). SPARQLInsertData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GraphStore/ref/SPARQLInsertData.html
BibTeX
@misc{reference.wolfram_2026_sparqlinsertdata, author="Wolfram Research", title="{SPARQLInsertData}", year="2019", howpublished="\url{https://reference.wolfram.com/language/GraphStore/ref/SPARQLInsertData.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_sparqlinsertdata, organization={Wolfram Research}, title={SPARQLInsertData}, year={2019}, url={https://reference.wolfram.com/language/GraphStore/ref/SPARQLInsertData.html}, note=[Accessed: 13-June-2026]}