WOLFRAM

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

SPARQLInsertData[data]

is an insert operator that can be applied to an RDFStore , which inserts the data data.

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

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 all

Basic Examples  (1)

Wolfram Language code: Needs["GraphStore`"]

Create 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"] }];

Insert additional data:

Wolfram Language code: fruitGraph = fruitGraph//SPARQLInsertData[{ RDFTriple[ex["kiwi"], ex["color"], "green"], RDFTriple[ex["apricot"], ex["color"], "orange"] }]

Scope  (1)

Wolfram Language code: Needs["GraphStore`"]

Create an RDFStore that contains current population data:

Wolfram Language code: ex[s_] := URL["http://example.org/" <> s];
Wolfram Language code: store = RDFStore[{ RDFTriple[ex["Germany"], ex["population"], 80500000] }]

Insert historical data into a separate graph:

Wolfram Language code: store = store//SPARQLInsertData[SPARQLGraph[ex["dataset/1986"], RDFTriple[ex["Germany"], ex["population"], 78000000]]]
Wolfram Research (2019), SPARQLInsertData, Wolfram Language function, https://reference.wolfram.com/language/GraphStore/ref/SPARQLInsertData.html.

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

Top [フレーム]

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