SPARQLUpdate[operator1/*operator2/*…]
RDFStoreに適用可能な更新演算子である.
SPARQLUpdate["update"]
SPARQL更新文字列を使う.
SPARQLUpdate
SPARQLUpdate[operator1/*operator2/*…]
RDFStoreに適用可能な更新演算子である.
SPARQLUpdate["update"]
SPARQL更新文字列を使う.
詳細とオプション
- SPARQLExecuteでSPARQLUpdateを使ってSPARQL Endpointのデータを更新することができる.
- SPARQLUpdateがRDFStoreに適用されると,更新されたストアが返される.もとのストアは変更されない.
- 次は,使用可能なオプションである.
-
"Base" None 相対IRIを解決するために使われる基底IRI - SPARQLUpdate[File[...]]およびSPARQLQuery[URL[...]]もサポートされている.
例題
例 (1)
Needs["GraphStore`"]g = RDFStore[{}];rdfs[s_] := URL["http://www.w3.org/2000/01/rdf-schema#" <> s];
ex[s_] := URL["http://example.org/" <> s];g = SPARQLUpdate[
SPARQLInsertData[{
RDFTriple[ex["strawberry"], rdfs["label"], "strawberry"],
RDFTriple[ex["strawberry"], ex["color"], "red"]
}]
][g]g = SPARQLUpdate["
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix ex: <http://example.org/>
insert data {
ex:banana rdfs:label \"banana\" ;
ex:color \"yellow\" .
}
"][g]g = SPARQLUpdate[
SPARQLDelete[{
RDFTriple[SPARQLVariable["s"], ex["color"], "red"],
RDFTriple[SPARQLVariable["s"], SPARQLVariable["p"], SPARQLVariable["o"]]
} -> RDFTriple[SPARQLVariable["s"], SPARQLVariable["p"], SPARQLVariable["o"]]]
][g]関連するガイド
テキスト
Wolfram Research (2019), SPARQLUpdate, Wolfram言語関数, 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_2026_sparqlupdate, author="Wolfram Research", title="{SPARQLUpdate}", year="2019", howpublished="\url{https://reference.wolfram.com/language/GraphStore/ref/SPARQLUpdate.html}", note=[Accessed: 13-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_sparqlupdate, organization={Wolfram Research}, title={SPARQLUpdate}, year={2019}, url={https://reference.wolfram.com/language/GraphStore/ref/SPARQLUpdate.html}, note=[Accessed: 13-August-2026]}