Virtuoso Open-Source Edition

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

    Example with pragma input:named-graph-uri

    The following example demonstrates usage of the input:named-graph-uri pragma.

    DEFINE input:grab-follow-predicate <foaf:knows>
    DEFINE input:grab-var "their_id"
    DEFINE input:named-graph-uri <http://www.openlinksw.com/dataspace/person/kidehen@openlinksw.com>
    DEFINE input:grab-depth 2
    DEFINE input:grab-limit 350
    PREFIX foaf: <http://xmlns.com/foaf/0.1/>
    PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
    PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
    
    SELECT DISTINCT ?my_id ?firstname ?Knows ?their_id
    WHERE
      {
        GRAPH ?g
          {
            ?my_id a foaf:Person           ;
                foaf:firstName ?firstname  ;
                foaf:knows ?their_id       .
            ?their_id foaf:nick ?Knows     .
          }
      }
    LIMIT 10
    

    Sponger Usage Examples

    Related