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.
Details and Options
- 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
Examples
Basic Examples (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]Related Guides
Text
Wolfram Research (2019), SPARQLAdd, Wolfram Language function, https://reference.wolfram.com/language/GraphStore/ref/SPARQLAdd.html.
CMS
Wolfram Language. 2019. "SPARQLAdd." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GraphStore/ref/SPARQLAdd.html.
APA
Wolfram Language. (2019). SPARQLAdd. Wolfram Language & System Documentation Center. Retrieved from 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: 13-June-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: 13-June-2026]}