WOLFRAM

GraphStore`
GraphStore`

SPARQLGraph

[Experimental]

SPARQLGraph[iri,expr]

represents expr in the context of the graph identified by the identifier iri.

Details and Options

  • SPARQLGraph[iri,patt] can be used in SPARQLSelect and related functions to match the graph pattern patt against the graph identified by the identifier iri.
  • SPARQLGraph[iri,data] can be used in SPARQLInsertData and related functions to insert data into the graph identified by the identifier iri.

Examples

Basic Examples  (1)Summary of the most common use cases

Current and historical data about countries:

Out[3]=3

Look up historical data for Spain:

Out[4]=4

The latest data:

Out[5]=5

Insert additional historical data:

Out[6]=6

An additional named graph has been added to the RDF dataset:

Out[7]=7
Wolfram Research (2019), SPARQLGraph, Wolfram Language function, https://reference.wolfram.com/language/GraphStore/ref/SPARQLGraph.html.
Wolfram Research (2019), SPARQLGraph, Wolfram Language function, https://reference.wolfram.com/language/GraphStore/ref/SPARQLGraph.html.

Text

Wolfram Research (2019), SPARQLGraph, Wolfram Language function, https://reference.wolfram.com/language/GraphStore/ref/SPARQLGraph.html.

Wolfram Research (2019), SPARQLGraph, Wolfram Language function, https://reference.wolfram.com/language/GraphStore/ref/SPARQLGraph.html.

CMS

Wolfram Language. 2019. "SPARQLGraph." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GraphStore/ref/SPARQLGraph.html.

Wolfram Language. 2019. "SPARQLGraph." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GraphStore/ref/SPARQLGraph.html.

APA

Wolfram Language. (2019). SPARQLGraph. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GraphStore/ref/SPARQLGraph.html

Wolfram Language. (2019). SPARQLGraph. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GraphStore/ref/SPARQLGraph.html

BibTeX

@misc{reference.wolfram_2025_sparqlgraph, author="Wolfram Research", title="{SPARQLGraph}", year="2019", howpublished="\url{https://reference.wolfram.com/language/GraphStore/ref/SPARQLGraph.html}", note=[Accessed: 03-June-2025 ]}

@misc{reference.wolfram_2025_sparqlgraph, author="Wolfram Research", title="{SPARQLGraph}", year="2019", howpublished="\url{https://reference.wolfram.com/language/GraphStore/ref/SPARQLGraph.html}", note=[Accessed: 03-June-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_sparqlgraph, organization={Wolfram Research}, title={SPARQLGraph}, year={2019}, url={https://reference.wolfram.com/language/GraphStore/ref/SPARQLGraph.html}, note=[Accessed: 03-June-2025 ]}

@online{reference.wolfram_2025_sparqlgraph, organization={Wolfram Research}, title={SPARQLGraph}, year={2019}, url={https://reference.wolfram.com/language/GraphStore/ref/SPARQLGraph.html}, note=[Accessed: 03-June-2025 ]}