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].
Basic Examples (1)
Data about fruits:
Check whether there is a fruit that is both red and rectangular:
A red and round fruit exists: