We deliver solutions for the AI eraâcombining symbolic computation, data-driven insights and deep technology expertise.
SPARQLSelect[pattern]
is a query operator that can be applied to an RDFStore, which returns a list of associations of variables to corresponding values in subgraphs that match pattern.
SPARQLSelect[patternvars]
returns values only for the variables vars.
Details and OptionsFind the color and the shape of fruits:
Find formulas (P274) and the Japanese name of chemicals (Q11173) containing (P527) calcium (Q706) in Wikidata:
Scope (9) Triple Pattern (1)A triple pattern is a triple that can contain variables:
Variables can appear in any position:
A triple pattern does not need to contain any variables:
Basic Graph Pattern (1)A basic graph pattern is a list of triple patterns. Retrieve "title" and "created" of all articles:
Variables and literals can appear in any position. Find authors of articles created in 2018:
Different triple patterns in a basic graph pattern are not required to match different triples in a graph. The following contains solutions binding "art1" and "art2" to the same article:
To find authors that have published more than one article filter the solution by requiring "art1" and "art2" to be different:
Filter (1) Optional (1)Find the name and optionally the e-mail address of all people:
When the SPARQLOptional wrapper is omitted the solution for "Bob" is missing:
Union (1)Data about things, using different "name" properties:
Find the "name" of all things:
The same query using a property path:
Negation (1)Find people without e-mail address:
In this case a query based on NOT EXISTS gives the same result:
Property Paths (1) Assignment (1)Look up the price including delivery fee:
The same query using a "select expression":
Filter products by total price:
Look up the price for certain products:
Aggregates (1)The average salary by department:
Filter the groups by the total department salary:
Order by decreasing average salary:
Neat Examples (1)Make a Graph of parent taxons (P171) of the Whale (Q42196) using Wikidata:
Wolfram Research (2019), SPARQLSelect, Wolfram Language function, https://reference.wolfram.com/language/GraphStore/ref/SPARQLSelect.html. TextWolfram Research (2019), SPARQLSelect, Wolfram Language function, https://reference.wolfram.com/language/GraphStore/ref/SPARQLSelect.html.
CMSWolfram Language. 2019. "SPARQLSelect." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GraphStore/ref/SPARQLSelect.html.
APAWolfram Language. (2019). SPARQLSelect. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GraphStore/ref/SPARQLSelect.html
BibTeX@misc{reference.wolfram_2025_sparqlselect, author="Wolfram Research", title="{SPARQLSelect}", year="2019", howpublished="\url{https://reference.wolfram.com/language/GraphStore/ref/SPARQLSelect.html}", note=[Accessed: 12-July-2025 ]}
BibLaTeX@online{reference.wolfram_2025_sparqlselect, organization={Wolfram Research}, title={SPARQLSelect}, year={2019}, url={https://reference.wolfram.com/language/GraphStore/ref/SPARQLSelect.html}, note=[Accessed: 12-July-2025 ]}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4