Virtuoso Open-Source Edition

  • Topic
  • Discussion
  • VOS.VirtSpongerLinkedDataHooksIntoSPARQLEx24(Last) -- DAVWikiAdmin? , 2017-06-29 07:41:11 Edit WebDAV System Administrator 2017-06-29 07:41:11

    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