SPARQLCopy[g1,g2]
g1で識別されたグラフのコンテンツを g2で識別されたグラフにコピーする,RDFStoreに適用可能な更新演算子である.
SPARQLCopy
SPARQLCopy[g1,g2]
g1で識別されたグラフのコンテンツを g2で識別されたグラフにコピーする,RDFStoreに適用可能な更新演算子である.
詳細とオプション
- SPARQLExecuteでSPARQLCopyを使ってSPARQL Endpointのグラフをコピーすることができる.
- 次は,giの取り得る値である.
-
URL["iri"] 指定された識別子によって識別されるグラフ "Default" デフォルトグラフ - g2で識別されるグラフは,データが挿入される前にクリアされる.
例題
例 (1)
Needs["GraphStore`"];catalogStore = ImportString["
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix schema: <http://schema.org/>
prefix ex: <http://example.org/>
ex:LandschaftMitOlivenbaumen
rdfs:label \"Landschaft mit Olivenb\\u00e4umen\"@de ;
schema:author ex:vanGogh .
ex:DerSamann
rdfs:label \"Der S\\u00e4mann\"@de ;
schema:author ex:vanGogh .
ex:backup\\/2018-07-26 {
ex:LandschaftMitOlivenbaumen
rdfs:label \"Landschaft mit Olivenb\\u00e4umen\"@de ;
schema:author ex:vanGogh .
ex:leMoulinDeLaGalette
rdfs:label \"Le Moulin de la Galette\"@fr ;
schema:author ex:vanGogh .
}
", "TriG"]名前付きグラフに保存されていたバックアップからデフォルトグラフを取り出す:
catalogStore = catalogStore//SPARQLCopy[URL["http://example.org/backup/2018-07-26"], "Default"]catalogStore//SPARQLSelect[RDFTriple[RDFBlankNode[], URL["http://www.w3.org/2000/01/rdf-schema#label"], SPARQLVariable["label"]]]関連するガイド
テキスト
Wolfram Research (2019), SPARQLCopy, Wolfram言語関数, https://reference.wolfram.com/language/GraphStore/ref/SPARQLCopy.html.
CMS
Wolfram Language. 2019. "SPARQLCopy." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GraphStore/ref/SPARQLCopy.html.
APA
Wolfram Language. (2019). SPARQLCopy. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GraphStore/ref/SPARQLCopy.html
BibTeX
@misc{reference.wolfram_2026_sparqlcopy, author="Wolfram Research", title="{SPARQLCopy}", year="2019", howpublished="\url{https://reference.wolfram.com/language/GraphStore/ref/SPARQLCopy.html}", note=[Accessed: 09-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_sparqlcopy, organization={Wolfram Research}, title={SPARQLCopy}, year={2019}, url={https://reference.wolfram.com/language/GraphStore/ref/SPARQLCopy.html}, note=[Accessed: 09-September-2026]}