GraphStore`
GraphStore`

SPARQLVariable

SPARQLVariable["var"]

represents a variable with label "var" in a SPARQL query.

Details

  • SPARQLVariable["x"] is used in SPARQL graph patterns and expressions to distinguish a variable with label "x" from a string literal "x".
  • The SPARQLVariable wrapper is optional in places where only variables can appear.
  • A SPARQLVariable can appear in any position of an RDFTriple.
  • An RDFTriple that contains a SPARQLVariable is also known as a triple pattern.

Examples

open all close all

Basic Examples  (1)

In[1]:=
Click for copyable input

Given an RDFStore about people:

In[2]:=
Click for copyable input

Query all persons together with their first name:

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

Get the first and last name:

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

Possible Issues  (1)