GraphStore`
GraphStore`

SPARQLConstruct

SPARQLConstruct[patterntemplate]

is a query operator that can be applied to an RDFStore, which returns an RDFStore generated from template, based on solutions of matching pattern.

SPARQLConstruct[pattern]

uses pattern as template.

Details

  • SPARQLConstruct can be used in SPARQLExecute to query a SPARQL endpoint.
  • The result of executing SPARQLConstruct[patterntemplate] is a RDFStore object containing for each solution the triples of template where variables have been replaced with values of this solution.
  • In SPARQLConstruct[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

Specify a graph of first and family names:

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

Construct a graph with only the family names:

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

Scope  (1)