Virtuoso Open-Source Wiki
Virtuoso Open-Source, OpenLink Data Spaces, and OpenLink Ajax Toolkit
Advanced Search
Help?
Location: / Dashboard / Main / SIOCRefAddressbookExample4

Dump all AddressBook's members friends

prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix sioc: <http://rdfs.org/sioc/ns#>
prefix sioct: <http://rdfs.org/sioc/types#>
prefix foaf: <http://xmlns.com/foaf/0.1/>
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 *Here* for a live SPARQL Query (via SPARQL Protocol) against a collection of AddressBook contact list.
Powered By Virtuoso