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

List of Containers(Sections) and foaf:Documents(Tutorials)

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>  
PREFIX sioc: <http://rdfs.org/sioc/ns#> 
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT DISTINCT ?forum_name, ?title, ?post as ?url, ?created_at, ?description
WHERE
  { 
    ?forum rdf:type "Tutorial".
    ?forum sioc:description ?forum_name.
    ?forum sioc:container_of ?post. 
    ?post rdf:type foaf:Document.
    optional{ ?post dc:title ?title } .
    optional{ ?post dcterms:created_at ?created_at} .
    optional{ ?post sioc:description ?description} .
  }
ORDER BY DESC (?created_at)

Sample Data (Live Query Results)

  • Click *Here* for an Interactive-Web View of Virtuoso Tutorials.
  • Click *Here* for a live SPARQL Query (via SPARQL Protocol) against a collection of Virtuoso Tutorials.
Powered By Virtuoso