GraphStore`
GraphStore`

SPARQLOptional

SPARQLOptional[patt]

represents part of a pattern that does not need to match in order for the whole pattern to match.

Details

  • In SPARQLOptional[patt], patt can take the same form as in SPARQLSelect[patt].

Examples

Basic Examples  (1)

In[1]:=
Click for copyable input

Data about fruits:

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

Find the color and optionally the shape of fruits:

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