---+++List of Posts (Tutorials) with content HTML encoded
PREFIX rdf:
PREFIX sioc:
PREFIX content:
PREFIX dc:
PREFIX foaf:
SELECT DISTINCT ?forum_name, ?title, ?post as ?url, ?content_encoded
WHERE
{
?forum rdf:type "Tutorial".
?forum sioc:description ?forum_name.
?forum sioc:container_of ?post.
?post rdf:type foaf:Document.
OPTIONAL { ?post dc:title ?title } .
OPTIONAL { ?post content:encoded ?content_encoded } .
}
LIMIT 10
---++++Sample Data (Live Query Results)
* View Query Results [[http://demo.openlinksw.com/sparql?default-graph-uri=&should-sponge=&query=PREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E++%0D%0APREFIX+sioc%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E+%0D%0APREFIX+content%3A+%3Chttp%3A%2F%2Fpurl.org%2Frss%2F1.0%2Fmodules%2Fcontent%2F%3E%0D%0APREFIX+dc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0APREFIX+foaf%3A+%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0D%0ASELECT+DISTINCT+%3Fforum_name%2C+%3Ftitle%2C+%3Fpost+as+%3Furl%2C+%3Fcontent_encoded%0D%0AWHERE++++%0D%0A++%7B+%0D%0A++++%3Fforum+rdf%3Atype+%22Tutorial%22.%0D%0A++++%3Fforum+sioc%3Adescription+%3Fforum_name.%0D%0A++++%3Fforum+sioc%3Acontainer_of+%3Fpost.+%0D%0A++++%3Fpost+rdf%3Atype+foaf%3ADocument.%0D%0A++++OPTIONAL+%7B+%3Fpost+dc%3Atitle+%3Ftitle+%7D+.%0D%0A++++OPTIONAL+%7B+%3Fpost+content%3Aencoded+%3Fcontent_encoded+%7D+.%0D%0A++%7D%0D%0ALIMIT+10&format=text%2Fhtml&debug=on][(via SPARQL Protocol URL)]]
* View Query Results [[http://demo.openlinksw.com/view/?format=application%2Frdf%2Bxml&query=%0APREFIX%20rdf%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%20%20%0APREFIX%20sioc%3A%20%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E%20%0APREFIX%20content%3A%20%3Chttp%3A%2F%2Fpurl.org%2Frss%2F1.0%2Fmodules%2Fcontent%2F%3E%0APREFIX%20dc%3A%20%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0APREFIX%20foaf%3A%20%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0ASELECT%20DISTINCT%20%3Fforum_name%2C%20%3Ftitle%2C%20%3Fpost%20as%20%3Furl%2C%20%3Fcontent_encoded%0AWHERE%20%20%20%20%0A%20%20%7B%20%0A%20%20%20%20%3Fforum%20rdf%3Atype%20%22Tutorial%22.%0A%20%20%20%20%3Fforum%20sioc%3Adescription%20%3Fforum_name.%0A%20%20%20%20%3Fforum%20sioc%3Acontainer_of%20%3Fpost.%20%0A%20%20%20%20%3Fpost%20rdf%3Atype%20foaf%3ADocument.%0A%20%20%20%20OPTIONAL%20%7B%20%3Fpost%20dc%3Atitle%20%3Ftitle%20%7D%20.%0A%20%20%20%20OPTIONAL%20%7B%20%3Fpost%20content%3Aencoded%20%3Fcontent_encoded%20%7D%20.%0A%20%20%7D%0ALIMIT%2010&endpoint=/sparql&maxrows=50&default-graph-uri=][(via iSPARQL Results URL)]]
* View Query Editor [[http://demo.openlinksw.com/isparql/?query=PREFIX%20rdf%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%20%20%0APREFIX%20sioc%3A%20%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E%20%0APREFIX%20content%3A%20%3Chttp%3A%2F%2Fpurl.org%2Frss%2F1.0%2Fmodules%2Fcontent%2F%3E%0APREFIX%20dc%3A%20%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0APREFIX%20foaf%3A%20%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0ASELECT%20DISTINCT%20%3Fforum_name%2C%20%3Ftitle%2C%20%3Fpost%20as%20%3Furl%2C%20%3Fcontent_encoded%0AWHERE%20%20%20%20%0A%20%20%7B%20%0A%20%20%20%20%3Fforum%20rdf%3Atype%20%22Tutorial%22.%0A%20%20%20%20%3Fforum%20sioc%3Adescription%20%3Fforum_name.%0A%20%20%20%20%3Fforum%20sioc%3Acontainer_of%20%3Fpost.%20%0A%20%20%20%20%3Fpost%20rdf%3Atype%20foaf%3ADocument.%0A%20%20%20%20OPTIONAL%20%7B%20%3Fpost%20dc%3Atitle%20%3Ftitle%20%7D%20.%0A%20%20%20%20OPTIONAL%20%7B%20%3Fpost%20content%3Aencoded%20%3Fcontent_encoded%20%7D%20.%0A%20%20%7D%0ALIMIT%2010&endpoint=/sparql&maxrows=50&default-graph-uri=][(via iSPARQL Visual Query Editor URL)]]