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.
更多信息和选项
- SPARQLInsertData can be used in SPARQLExecute to insert data into a SPARQL endpoint.
范例
打开所有单元 关闭所有单元基本范例 (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]]]文本
Wolfram Research (2019),SPARQLInsertData,Wolfram 语言函数,https://reference.wolfram.com/language/GraphStore/ref/SPARQLInsertData.html.
CMS
Wolfram 语言. 2019. "SPARQLInsertData." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/GraphStore/ref/SPARQLInsertData.html.
APA
Wolfram 语言. (2019). SPARQLInsertData. Wolfram 语言与系统参考资料中心. 追溯自 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]}