SPARQLAdd[g1,g2]
is an update operator that can be applied to an RDFStore, which adds the data from the graph identified by g1 to the graph identified by g2.
SPARQLAdd
SPARQLAdd[g1,g2]
is an update operator that can be applied to an RDFStore, which adds the data from the graph identified by g1 to the graph identified by g2.
更多信息和选项
- SPARQLAdd can be used in SPARQLExecute to add graphs in a SPARQL endpoint.
- Possible values for the gi are:
-
URL["iri"] graph identified by the given identifier "Default" default graph
范例
基本范例 (1)
Needs["GraphStore`"];Import data about astronomical objects:
astroStore = ImportString["
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix unit: <http://qudt.org/vocab/unit#>
prefix ex: <http://example.org/>
ex:graph\\/planet {
ex:earth
rdfs:Label \"Earth\";
ex:mass \"5.9721986e+24\"^^unit:Kilogram .
}
ex:graph\\/star {
ex:sun
rdfs:label \"Sun\";
ex:mass \"1.988435e+30\"^^unit:Kilogram .
}
", "TriG"]Add planet data to the default graph:
astroStore = SPARQLAdd[URL["http://example.org/graph/planet"], "Default"][astroStore]文本
Wolfram Research (2019),SPARQLAdd,Wolfram 语言函数,https://reference.wolfram.com/language/GraphStore/ref/SPARQLAdd.html.
CMS
Wolfram 语言. 2019. "SPARQLAdd." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/GraphStore/ref/SPARQLAdd.html.
APA
Wolfram 语言. (2019). SPARQLAdd. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/GraphStore/ref/SPARQLAdd.html 年
BibTeX
@misc{reference.wolfram_2026_sparqladd, author="Wolfram Research", title="{SPARQLAdd}", year="2019", howpublished="\url{https://reference.wolfram.com/language/GraphStore/ref/SPARQLAdd.html}", note=[Accessed: 09-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_sparqladd, organization={Wolfram Research}, title={SPARQLAdd}, year={2019}, url={https://reference.wolfram.com/language/GraphStore/ref/SPARQLAdd.html}, note=[Accessed: 09-August-2026]}