---+++Dump all AddressBook's contacts
PREFIX sioc:
PREFIX sioct:
PREFIX vcd:
PREFIX dct:
PREFIX dcc:
SELECT ?FN ?nick ?address ?title ?created ?link ?topic
WHERE
{
?forum a sioct:AddressBook .
?forum sioc:container_of ?post .
OPTIONAL {?post vcd:FN ?FN }.
OPTIONAL {?post vcd:NICKNAME ?nick}.
OPTIONAL {?post vcd:ADR ?address}.
OPTIONAL {?post dct:title ?title}.
OPTIONAL {?post dcc:created ?created}.
OPTIONAL {?post sioc:link ?link }.
OPTIONAL {?post sioc:topic ?topic } .
}
---++++Sample Data (Live Query Results)
* View Query Results [[http://demo.openlinksw.com/sparql?default-graph-uri=&should-sponge=&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+vcd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2Fvcard-rdf%2F3.0%23%3E%0D%0APREFIX+dct%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0APREFIX+dcc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0D%0ASELECT+%3FFN+%3Fnick+%3Faddress+%3Ftitle+%3Fcreated+%3Flink+%3Ftopic+%0D%0AWHERE%0D%0A++%7B%0D%0A++++%3Fforum+a+sioct%3AAddressBook+.%0D%0A++++%3Fforum+sioc%3Acontainer_of+%3Fpost+.%0D%0A++++OPTIONAL+%7B%3Fpost+vcd%3AFN+%3FFN+%7D.%0D%0A++++OPTIONAL+%7B%3Fpost+vcd%3ANICKNAME+%3Fnick%7D.%0D%0A++++OPTIONAL+%7B%3Fpost+vcd%3AADR+%3Faddress%7D.%0D%0A++++OPTIONAL+%7B%3Fpost+dct%3Atitle+%3Ftitle%7D.%0D%0A++++OPTIONAL+%7B%3Fpost+dcc%3Acreated+%3Fcreated%7D.%0D%0A++++OPTIONAL+%7B%3Fpost+sioc%3Alink+%3Flink+%7D.%0D%0A++++OPTIONAL+%7B%3Fpost+sioc%3Atopic+%3Ftopic+%7D+.%0D%0A++%7D&format=text%2Fhtml&debug=on][(via SPARQL Protocol URL)]]
* View Query Results [[http://demo.openlinksw.com/view/?format=application%2Frdf%2Bxml&maxrows=50&query=%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%0APREFIX%20vcd%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2Fvcard-rdf%2F3.0%23%3E%0APREFIX%20dct%3A%20%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0APREFIX%20dcc%3A%20%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0ASELECT%20%3FFN%20%3Fnick%20%3Faddress%20%3Ftitle%20%3Fcreated%20%3Flink%20%3Ftopic%20%0AWHERE%0A%20%20%7B%0A%20%20%20%20%3Fforum%20a%20sioct%3AAddressBook%20.%0A%20%20%20%20%3Fforum%20sioc%3Acontainer_of%20%3Fpost%20.%0A%20%20%20%20OPTIONAL%20%7B%3Fpost%20vcd%3AFN%20%3FFN%20%7D.%0A%20%20%20%20OPTIONAL%20%7B%3Fpost%20vcd%3ANICKNAME%20%3Fnick%7D.%0A%20%20%20%20OPTIONAL%20%7B%3Fpost%20vcd%3AADR%20%3Faddress%7D.%0A%20%20%20%20OPTIONAL%20%7B%3Fpost%20dct%3Atitle%20%3Ftitle%7D.%0A%20%20%20%20OPTIONAL%20%7B%3Fpost%20dcc%3Acreated%20%3Fcreated%7D.%0A%20%20%20%20OPTIONAL%20%7B%3Fpost%20sioc%3Alink%20%3Flink%20%7D.%0A%20%20%20%20OPTIONAL%20%7B%3Fpost%20sioc%3Atopic%20%3Ftopic%20%7D%20.%0A%20%20%7D&endpoint=/sparql&maxrows=50&default-graph-uri=][(via iSPARQL Results URL)]]
* View Query Editor [[http://demo.openlinksw.com/isparql/?query=PREFIX%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%0APREFIX%20vcd%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2Fvcard-rdf%2F3.0%23%3E%0APREFIX%20dct%3A%20%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0APREFIX%20dcc%3A%20%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0ASELECT%20%3FFN%20%3Fnick%20%3Faddress%20%3Ftitle%20%3Fcreated%20%3Flink%20%3Ftopic%20%0AWHERE%0A%20%20%7B%0A%20%20%20%20%3Fforum%20a%20sioct%3AAddressBook%20.%0A%20%20%20%20%3Fforum%20sioc%3Acontainer_of%20%3Fpost%20.%0A%20%20%20%20OPTIONAL%20%7B%3Fpost%20vcd%3AFN%20%3FFN%20%7D.%0A%20%20%20%20OPTIONAL%20%7B%3Fpost%20vcd%3ANICKNAME%20%3Fnick%7D.%0A%20%20%20%20OPTIONAL%20%7B%3Fpost%20vcd%3AADR%20%3Faddress%7D.%0A%20%20%20%20OPTIONAL%20%7B%3Fpost%20dct%3Atitle%20%3Ftitle%7D.%0A%20%20%20%20OPTIONAL%20%7B%3Fpost%20dcc%3Acreated%20%3Fcreated%7D.%0A%20%20%20%20OPTIONAL%20%7B%3Fpost%20sioc%3Alink%20%3Flink%20%7D.%0A%20%20%20%20OPTIONAL%20%7B%3Fpost%20sioc%3Atopic%20%3Ftopic%20%7D%20.%0A%20%20%7D&endpoint=/sparql&maxrows=50&default-graph-uri=][(via iSPARQL Visual Query Editor URL)]]