WOLFRAM

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

SPARQLAsk[pattern]

is a query operator that can be applied to an RDFStore , which returns True if pattern matches, and False otherwise.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
See Also
Related Guides
Cite this Page

SPARQLAsk[pattern]

is a query operator that can be applied to an RDFStore , which returns True if pattern matches, and False otherwise.

Details and Options

  • SPARQLAsk can be used in SPARQLExecute to query a SPARQL endpoint.
  • The result of executing SPARQLAsk[pattern] is True if there is a subgraph matching pattern, and False otherwise.
  • In SPARQLAsk[pattern], pattern can take the same form as in SPARQLSelect [pattern].

Examples

open all close all

Basic Examples  (1)

Data about fruits:

Check whether there is a fruit that is both red and rectangular:

A red and round fruit exists:

Scope  (1)

Ask Wikidata whether there is a human (Q5) with German label "Albert Einstein":

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2025_sparqlask, organization={Wolfram Research}, title={SPARQLAsk}, year={2019}, url={https://reference.wolfram.com/language/GraphStore/ref/SPARQLAsk.html}, note=[Accessed: 17-November-2025]}

Top [フレーム]

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