ODS.ODSFOAFRefExampleAddressBook

  • Topic
  • Discussion
  • ODS.ODSFOAFRefExampleAddressBook(Last) -- Owiki? , 2018-04-19 07:02:52 Edit owiki 2018-04-19 03:02:52

    Addressbook Data Space


    PREFIX sioc: <http://rdfs.org/sioc/ns#>
    PREFIX sioct: <http://rdfs.org/sioc/types#>
    PREFIX foaf: <http://xmlns.com/foaf/0.1/>
    SELECT DISTINCT ?nick, ?fname, ?post, ?aimChatID, ?based_near, ?birthday, 
    ?family_name, ?firstName, ?gender, ?homepage, ?icqChatID, ?mbox, ?msnChatID, ?phone, ?yahooChatID
    WHERE 
      {
         ?forum a sioct:AddressBook .
         ?forum sioc:container_of ?post.
         optional{ ?post foaf:maker ?maker }.
         optional{ ?maker foaf:nick ?nick  } .
         optional{ ?maker foaf:name ?fname } .
         optional{ ?maker foaf:aimChatID ?aimChatID  } .
         optional{ ?maker foaf:based_near ?based_near } .
         optional{ ?maker foaf:birthday ?birthday } .
         optional{ ?maker foaf:family_name ?family_name } .
         optional{ ?maker foaf:firstName ?firstName } .
         optional{ ?maker foaf:gender ?gender } .
         optional{ ?maker foaf:homepage ?homepage } .
         optional{ ?maker foaf:icqChatID ?icqChatID } .
         optional{ ?maker foaf:mbox ?mbox } .
         optional{ ?maker foaf:msnChatID ?msnChatID } .
         optional{ ?maker foaf:phone ?phone } .
         optional{ ?maker foaf:yahooChatID ?yahooChatID } .
      }
    

    Sample Data (Live Query Results)
    • Click Here for a live SPARQL Query (via SPARQL Protocol) against a collection of AddressBook? posts.