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 .} }
- View the SPARQL Query Definition via SPARQL Protocol URL
- View the SPARQL Query Results via SPARQL Protocol URL
Sponger Usage Examples
- SPARQL Processor Usage Example
- RDF Proxy Service Example
- Browsing & Exploring RDF View Example Using ODE
- Browsing & Exploring RDF View Example Using iSPARQL
- Basic Sponger Cartridge Example
- HTTP Example for Extracting Metadata using CURL
- RESTFul Interaction Examples
- Flickr Cartridge Example
- MusicBrainz Metadatabase Example
- SPARQL Tutorial -- Magic of SPARUL and Sponger
Related
- Sponger's Linked Data Middleware Hooks into SPARQL
- Virtuoso Sponger
- Technical White Paper
- Supported Virtuoso Sponger Cartridges
- SPARQL Sponger
- Interacting with Sponger Middleware via RESTful Patterns
- Interacting with Sponger Meta Cartridge via RESTful Patterns
- Sponger Cartridge RDF Extractor
- Extending SPARQL IRI Dereferencing with RDF Mappers
- Programmer Guide for Virtuoso Linked Data Middleware ("Sponger")
- Create RDF Custom Cartridge Tutorial
- OpenLink-supplied Virtuoso Sponger Cartridges
- Virtuoso Authentication Server
- Virtuoso SPARQL OAuth Tutorial
- Virtuoso Sponger Access Control List (ACL) Setup
- WebID Protocol & SPARQL Endpoint ACLs Tutorial
- Virtuoso Documentation