WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center

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
Details and Options Details and Options
Examples  
Basic Examples  
See Also
Related Guides
Cite this Page

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)

Wolfram Language code: Needs["GraphStore`"];

Import data about astronomical objects:

Wolfram Language code: 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:

Wolfram Language code: astroStore = SPARQLAdd[URL["http://example.org/graph/planet"], "Default"][astroStore]
Wolfram Research (2019), SPARQLAdd, Wolfram Language function, https://reference.wolfram.com/language/GraphStore/ref/SPARQLAdd.html.

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: 16-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: 16-August-2026]}

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /