Example with INPUT Pragma grab-var

The following example demonstrates how to make a Local Name Graph IRI from URL of external Resource. The Actual Document URL is http://dig.csail.mit.edu/2005/ajar/ajaw/data :


DEFINE input:grab-var "dev"
define input:grab-iri <http://dig.csail.mit.edu/2005/ajar/ajaw/data#Tabulator>
DEFINE input:grab-follow-predicate <http://usefulinc.com/ns/doap#developer>
DEFINE input:grab-depth 10
DEFINE input:grab-limit 50
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX doap: <http://usefulinc.com/ns/doap#>
PREFIX owl: <http://www.w3.org/2002/07/owl#> 

SELECT DISTINCT *
WHERE
  {
    GRAPH <http://dig.csail.mit.edu/2005/ajar/ajaw/data>
      {
        <http://dig.csail.mit.edu/2005/ajar/ajaw/data#Tabulator>
          doap:developer ?dev . }
    OPTIONAL { ?dev foaf:name ?name }
    OPTIONAL { ?dev foaf:mbox ?mbox }
    OPTIONAL { ?dev owl:sameAs ?sameAs .}   
  }

Sponger Usage Examples

Related