Example with INPUT Pragma grab-iri

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


DEFINE input:storage ""
DEFINE input:grab-iri
  <http://www.openlinksw.com/dataspace/kidehen@openlinksw.com/weblog/kidehen@openlinksw.com%27s%20BLOG%20%5B127%5D/sioc.ttl>
DEFINE input:grab-var "id"
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"
SELECT DISTINCT ?id
WHERE
 {
  graph ?g
    {
      ?id a ?o .
      FILTER (!isblank(?id))
    }
 }
LIMIT 10 

Sponger Usage Examples

Related