%VOSWARNING%
---+++Dump all AddressBook's members friends
prefix rdf:
prefix sioc:
prefix sioct:
prefix foaf:
select ?member, ?knows
where
{
?s a sioct:AddressBook;
sioc:scope_of ?role.
?role sioc:function_of ?member.
?member a foaf:Person.
?member foaf:knows ?knows
}
---++++Sample Data (Live Query Results)
* Click [[http://demo.openlinksw.com/sparql?default-graph-uri=http%3A%2F%2Fdemo.openlinksw.com%2Fdataspace&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+sioct%3A+%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Ftypes%23%3E%0D%0Aprefix+foaf%3A+%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0D%0Aselect+%3Fmember%2C+%3Fknows%0D%0Awhere%0D%0A++%7B%0D%0A++++%3Fs+a+sioct%3AAddressBook%3B%0D%0A++++++sioc%3Ascope_of+%3Frole.%0D%0A++++%3Frole+sioc%3Afunction_of+%3Fmember.%0D%0A++++%3Fmember+a+foaf%3APerson.%0D%0A++++%3Fmember+foaf%3Aknows+%3Fknows%0D%0A++%7D&format=text%2Fhtml&debug=on][*Here*]] for a live SPARQL Query (via SPARQL Protocol) against a collection of AddressBook contact list.