Virtuoso Open-Source Edition

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

    Example with INPUT Pragma grab-base

    The following example demonstrates usage of the grab-base pragma:

    DEFINE input:grab-var "?more"
    DEFINE input:grab-depth 10
    DEFINE input:grab-limit 100
    DEFINE input:grab-base
        "http://www.openlinksw.com/dataspace/kidehen@openlinksw.com/weblog/kidehen@openlinksw.com%27s%20BLOG%20%5B127%5D/1300"
    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 ?id ?firstname ?nick
    WHERE
      {
        GRAPH ?g
          {
            ?id rdf:type foaf:Person .
            ?id foaf:firstName ?firstname .
            ?id foaf:knows ?fn .
            ?fn foaf:nick ?nick .
            OPTIONAL { ?id rdfs:SeeAlso ?more } .
            FILTER (!isblank(?id)) .
          }
      }
    LIMIT 10 
    

    Sponger Usage Examples

    Related