Virtuoso Open-Source Wiki
Virtuoso Open-Source, OpenLink Data Spaces, and OpenLink Ajax Toolkit
Advanced Search
Help?
Location: / Dashboard / Main / SIOCRefCalendarExample3
Dump of all Events for a given Calendar including content
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>  
PREFIX sioc:   <http://rdfs.org/sioc/ns#> 
PREFIX sioct: <http://rdfs.org/sioc/types#>
PREFIX dct: <http://purl.org/dc/elements/1.1/>
PREFIX dcc: <http://purl.org/dc/terms/> 
PREFIX calr: <http://www.w3.org/2002/12/cal#> 
SELECT ?forum_name, ?post, ?title, ?link, ?links_to, ?cr, ?content
WHERE 
  {
    ?forum rdf:type sioct:Calendar.
    ?forum sioc:id ?forum_name.
    ?forum sioc:container_of ?post .
    ?post rdf:type calr:vevent .
    OPTIONAL {?post dct:title ?title}.
    OPTIONAL {?post dcc:created ?cr}.
    OPTIONAL {?post sioc:link ?link} .
    OPTIONAL {?post sioc:links_to ?links_to} .  
    OPTIONAL {?post sioc:content ?content}. 
  }
Sample Data (Live Query Results)
  • Click Here for a live SPARQL Query (via SPARQL Protocol) against a Collection of Calendar Events.
Powered By Virtuoso