GraphStore`
GraphStore`

SPARQLLoad

SPARQLLoad[from]

is an update operator that can be applied to an RDFStore, which loads the graph located at from into the default graph.

SPARQLLoad[fromto]

loads the graph into the graph identified by to.

Details

  • SPARQLLoad can be used in SPARQLExecute to load data into a SPARQL endpoint.
  • from is usually a URL or a File that contains the graph.
  • Data from the destination graph is not removed.

Examples

Basic Examples  (1)

In[1]:=
Click for copyable input

Data about countries:

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

Create a "linkset" that links Wolfram and Wikidata entities:

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

Load the linkset into the default graph:

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

Query the population of Hungary using its Wikidata ID (Q28):

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

Delete the linkset:

In[7]:=
Click for copyable input