<docbook><section><title>ODSAtomOWLRefExampleCommunity</title><bridgehead class="http://www.w3.org/1999/xhtml:h2">Community (Group Mode) Applications Data Space</bridgehead>
 <programlisting>PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX atom: &lt;http://atomowl.org/ontologies/atomrdf#&gt;
PREFIX sioc: &lt;http://rdfs.org/sioc/ns#&gt;
PREFIX sioct: &lt;http://rdfs.org/sioc/types#&gt;
SELECT *
WHERE 
  {
    ?forum rdf:type sioc:Community .
    ?forum sioc:has_part ?parentf .
    OPTIONAL{ ?parentf sioc:container_of ?post}.
    OPTIONAL{ ?post atom:title ?title } .
    OPTIONAL{ ?post atom:link ?link . ?link atom:linkRel ?linkr . ?link atom:LinkHref ?linkf } .
    OPTIONAL{ ?post atom:author ?auth } .
  }
</programlisting><bridgehead class="http://www.w3.org/1999/xhtml:h4">Sample Data (Live Query Results)</bridgehead>
 <itemizedlist mark="bullet" spacing="compact"><listitem>View Query Results <ulink url="http://demo.openlinksw.com/sparql?default-graph-uri=&amp;should-sponge=&amp;query=PREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0APREFIX+atom%3A+%3Chttp%3A%2F%2Fatomowl.org%2Fontologies%2Fatomrdf%23%3E%0D%0APREFIX+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%0ASELECT+*%0D%0AWHERE+%0D%0A++%7B%0D%0A++++%3Fforum+rdf%3Atype+sioc%3ACommunity+.%0D%0A++++%3Fforum+sioc%3Ahas_part+%3Fparentf+.%0D%0A++++OPTIONAL%7B+%3Fparentf+sioc%3Acontainer_of+%3Fpost%7D.%0D%0A++++OPTIONAL%7B+%3Fpost+atom%3Atitle+%3Ftitle+%7D+.%0D%0A++++OPTIONAL%7B+%3Fpost+atom%3Alink+%3Flink+.+%3Flink+atom%3AlinkRel+%3Flinkr+.+%3Flink+atom%3ALinkHref+%3Flinkf+%7D+.%0D%0A++++OPTIONAL%7B+%3Fpost+atom%3Aauthor+%3Fauth+%7D+.%0D%0A++%7D&amp;format=text%2Fhtml&amp;debug=on">(via SPARQL Protocol URL)</ulink> </listitem>
<listitem>View Query Results <ulink url="http://demo.openlinksw.com/view/?format=application%2Frdf%2Bxml&amp;maxrows=50&amp;query=%0APREFIX%20rdf%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0APREFIX%20atom%3A%20%3Chttp%3A%2F%2Fatomowl.org%2Fontologies%2Fatomrdf%23%3E%0APREFIX%20sioc%3A%20%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E%0APREFIX%20sioct%3A%20%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0ASELECT%20*%0AWHERE%20%0A%20%20%7B%0A%20%20%20%20%3Fforum%20rdf%3Atype%20sioc%3ACommunity%20.%0A%20%20%20%20%3Fforum%20sioc%3Ahas_part%20%3Fparentf%20.%0A%20%20%20%20OPTIONAL%7B%20%3Fparentf%20sioc%3Acontainer_of%20%3Fpost%7D.%0A%20%20%20%20OPTIONAL%7B%20%3Fpost%20atom%3Atitle%20%3Ftitle%20%7D%20.%0A%20%20%20%20OPTIONAL%7B%20%3Fpost%20atom%3Alink%20%3Flink%20.%20%3Flink%20atom%3AlinkRel%20%3Flinkr%20.%20%3Flink%20atom%3ALinkHref%20%3Flinkf%20%7D%20.%0A%20%20%20%20OPTIONAL%7B%20%3Fpost%20atom%3Aauthor%20%3Fauth%20%7D%20.%0A%20%20%7D&amp;endpoint=/sparql&amp;maxrows=50&amp;default-graph-uri=">(via iSPARQL Results URL)</ulink> </listitem>
<listitem>View Query Query <ulink url="http://demo.openlinksw.com/isparql/?query=PREFIX%20rdf%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0APREFIX%20atom%3A%20%3Chttp%3A%2F%2Fatomowl.org%2Fontologies%2Fatomrdf%23%3E%0APREFIX%20sioc%3A%20%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E%0APREFIX%20sioct%3A%20%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0ASELECT%20*%0AWHERE%20%0A%20%20%7B%0A%20%20%20%20%3Fforum%20rdf%3Atype%20sioc%3ACommunity%20.%0A%20%20%20%20%3Fforum%20sioc%3Ahas_part%20%3Fparentf%20.%0A%20%20%20%20OPTIONAL%7B%20%3Fparentf%20sioc%3Acontainer_of%20%3Fpost%7D.%0A%20%20%20%20OPTIONAL%7B%20%3Fpost%20atom%3Atitle%20%3Ftitle%20%7D%20.%0A%20%20%20%20OPTIONAL%7B%20%3Fpost%20atom%3Alink%20%3Flink%20.%20%3Flink%20atom%3AlinkRel%20%3Flinkr%20.%20%3Flink%20atom%3ALinkHref%20%3Flinkf%20%7D%20.%0A%20%20%20%20OPTIONAL%7B%20%3Fpost%20atom%3Aauthor%20%3Fauth%20%7D%20.%0A%20%20%7D&amp;endpoint=/sparql&amp;maxrows=50&amp;default-graph-uri=">(via iSPARQL Visual Query Editor URL)</ulink> </listitem>
</itemizedlist></section></docbook>