is a query operator that can be applied to an RDFStore, which returns True if pattern matches, and False otherwise.
- 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].
Examplesopen allclose 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:
Ask Wikidata whether there is a human (Q5) with German label "Albert Einstein":