GraphStore`
GraphStore`

SPARQLAsk

SPARQLAsk[pattern]

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

Details

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

In[1]:=
Click for copyable input

Data about fruits:

In[2]:=
Click for copyable input
In[3]:=
Click for copyable input

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

In[4]:=
Click for copyable input
Out[4]=

A red and round fruit exists:

In[5]:=
Click for copyable input
Out[5]=

Scope  (1)