A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://reference.wolfram.com/language/GraphStore/ref/SPARQLSelect.html below:

SPARQLSelect—Wolfram Language Documentation

WOLFRAM Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technology expertise.

WolframConsulting.com

GRAPH STORE SYMBOL

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 Options Examplesopen allclose all Basic Examples  (2)

Data about fruits:

Find the color of fruits:

Find 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)

Example data:

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)

Data about articles:

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)

Data about books:

Books published before 1820:

Optional  (1)

Data about people:

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)

Data about people:

Find people without e-mail address:

In this case a query based on NOT EXISTS gives the same result:

Property Paths  (1)

Family data:

Find descendents of Johann:

Find only grandchildren:

Assignment  (1)

Data about food products:

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)

Data about salaries:

Find the average salary:

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. Text

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

CMS

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

APA

Wolfram 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