Example with INPUT Pragma grab-follow-predicate
The following example demonstrates usage of the grab-follow-predicate
pragma:
DEFINE input:grab-var "friend" DEFINE input:grab-var "Others" DEFINE input:grab-follow-predicate <http://xmlns.com/foaf/0.1/#knows> DEFINE input:grab-depth 2 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 * WHERE { { { { SELECT ?start ?friend WHERE { ?start foaf:knows ?friend . } } OPTION ( transitive, t_distinct, t_max (5), t_in (?start), t_out (?friend) ) FILTER ( ?start = <http://www.w3.org/People/Berners-Lee/card#i> ) } ?friend foaf:knows ?Others . } } LIMIT 10
- 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