Examples with pragma input:default-graph-uri

The following examples demonstrate usage of the input:default-graph-uri pragma.

Example with SPARUL INSERT

Execute insert statement for graph <http://mygraph.com> :


DEFINE input:default-graph-uri <http://mygraph.com>
INSERT  
  { 
    <http://myopenlink.net/dataspace/Kingsley#this>
    <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
    <http://rdfs.org/sioc/ns#User> 
  }

Example with SPARQL SELECT

Get all rows for graph <http://mygraph.com> :


DEFINE input:default-graph-uri <http://mygraph.com>  
SELECT * 
WHERE 
  {
    ?s ?p ?o
  }
LIMIT 10

Sponger Usage Examples

Related