Virtuoso Open-Source Wiki
Virtuoso Open-Source, OpenLink Data Spaces, and OpenLink Ajax Toolkit
Advanced Search
Help?
Location: / Dashboard / Main / VOSIndex / VirtSponger / VirtSpongerLinkedDataHooksIntoSPARQL / VirtSpongerLinkedDataHooksIntoSPARQLEx1

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-var "proj"
DEFINE input:grab-var "projectName"
DEFINE input:grab-follow-predicate <http://usefulinc.com/ns/doap#developer>
DEFINE input:grab-depth 3
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#>

SELECT DISTINCT ?name
FROM <http://dig.csail.mit.edu/2005/ajar/ajaw/data>
WHERE
  {
    <http://dig.csail.mit.edu/2005/ajar/ajaw/data#Tabulator> doap:developer ?dev .
    ?dev foaf:name ?name .
  } 

Sponger Usage Examples

Related

Powered By Virtuoso