<docbook><section><title>SIOCRefBlogExample2</title><para> </para>
<bridgehead class="http://www.w3.org/1999/xhtml:h5">Dump of all Weblog Posts for a given ODS Member</bridgehead>
<programlisting>PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;  
PREFIX sioc:   &lt;http://rdfs.org/sioc/ns#&gt; 
PREFIX sioct: &lt;http://rdfs.org/sioc/types#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; 
PREFIX dct: &lt;http://purl.org/dc/elements/1.1/&gt;
PREFIX dcc: &lt;http://purl.org/dc/terms/&gt; 
SELECT DISTINCT ?forum_name, ?post, ?title ?cr ?url 
WHERE    { 
           ?forum a sioct:Weblog .
           ?forum sioc:id ?forum_name.
           ?forum sioc:scope_of ?role. 
           ?role sioc:function_of &lt;http://demo.openlinksw.com/dataspace/demo&gt; .
           ?forum sioc:container_of ?post. 
           optional{ ?post dct:title ?title }.
           optional{ ?post dcc:created ?cr }.
           optional{ ?post sioc:link ?url }.
         }
ORDER BY DESC (?cr)
</programlisting></section></docbook>