GraphStore`
GraphStore`

SPARQLGraph

SPARQLGraph[iri,expr]

represents expr in the context of the graph identified by the IRI iri.

Details

  • SPARQLGraph[iri,patt] can be used in SPARQLSelect and related functions to match the graph pattern patt against the graph identified by the IRI iri.
  • SPARQLGraph[iri,data] can be used in SPARQLInsertData and related functions to insert data into the graph identified by the IRI iri.

Examples

Basic Examples  (1)

In[1]:=
Click for copyable input

Current and historical data about countries:

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

Look up historical data for Spain:

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

The latest data:

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

Insert additional historical data:

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

An additional named graph has been added to the RDF dataset:

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