<docbook><section><title>ODSAnnoteaRefExampleBookmarks</title><bridgehead class="http://www.w3.org/1999/xhtml:h3">Bookmarks Data Space</bridgehead>
 <programlisting>prefix sioc: &lt;http://rdfs.org/sioc/ns#&gt;
prefix sioct: &lt;http://rdfs.org/sioc/types#&gt;
prefix ann: &lt;http://www.w3.org/2000/10/annotation-ns#&gt;
select *
where 
  {
    ?forum a sioct:BookmarkFolder .
    ?forum sioc:container_of ?post.   
    optional {?post ann:hasAnnotation ?hn }.
    optional {?hn ann:annotates ?annotates } .
    optional {?hn ann:author ?author } .
    optional {?hn ann:body ?body } .
    optional {?hn ann:created ?created } .
    optional {?hn ann:modified ?modified }.
  }
</programlisting><para> </para>
<bridgehead class="http://www.w3.org/1999/xhtml:h5">Sample Data (Live Query Results)</bridgehead>
 <itemizedlist mark="bullet" spacing="compact"><listitem>Click <ulink url="http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&amp;should-sponge=&amp;query=prefix+sioc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E%0D%0Aprefix+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0Aprefix+ann%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F10%2Fannotation-ns%23%3E%0D%0Aselect+*%0D%0Awhere+%0D%0A++%7B%0D%0A++++%3Fforum+a+sioct%3ABookmarkFolder+.%0D%0A++++%3Fforum+sioc%3Acontainer_of+%3Fpost.+++%0D%0A++++optional+%7B%3Fpost+ann%3AhasAnnotation+%3Fhn+%7D.%0D%0A++++optional+%7B%3Fhn+ann%3Aannotates+%3Fannotates+%7D+.%0D%0A++++optional+%7B%3Fhn+ann%3Aauthor+%3Fauthor+%7D+.%0D%0A++++optional+%7B%3Fhn+ann%3Abody+%3Fbody+%7D+.%0D%0A++++optional+%7B%3Fhn+ann%3Acreated+%3Fcreated+%7D+.%0D%0A++++optional+%7B%3Fhn+ann%3Amodified+%3Fmodified+%7D.%0D%0A++%7D&amp;format=text%2Fhtml&amp;debug=on">Here</ulink> for a live SPARQL Query (via SPARQL Protocol) against a collection Bookmarks posts.
</listitem>
</itemizedlist></section></docbook>