<docbook><section><title>SIOCRefFeedsExample2</title><para> </para>
<bridgehead class="http://www.w3.org/1999/xhtml:h5">Obtaining a dump of all Posts within an ODS-Feeds Data Space.</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 dct: &lt;http://purl.org/dc/elements/1.1/&gt;
PREFIX dcc: &lt;http://purl.org/dc/terms/&gt;
SELECT distinct ?forum_name, ?creator,  ?channel, ?item_title, ?url, ?created
WHERE {
        ?forum a sioct:SubscriptionList ;
               sioc:id ?forum_name.
        ?forum sioc:scope_of ?role. 
        ?role sioc:function_of &lt;http://demo.openlinksw.com/dataspace/demo&gt; .
        ?forum sioc:parent_of ?channel .
        ?channel sioc:container_of ?post .
        optional{?post dct:title ?item_title }.
        optional{ ?post sioc:links_to ?url }.
        optional{ ?post sioc:has_creator ?creator }.
        optional{ ?post dcc:created ?created }
      }
ORDER BY DESC (?created)
</programlisting></section></docbook>