VOS.NorthWindREFExample5

  • Topic
  • Discussion
  • VOS.NorthWindREFExample5(Last) -- DAVWikiAdmin? , 2017-06-13 05:35:56 Edit WebDAV System Administrator 2017-06-13 05:35:56

    Dump all People which are contacts of customers and show customer company details.


    PREFIX ndw:<http://demo.openlinksw.com/schemas/northwind#>
    PREFIX foaf: <http://xmlns.com/foaf/0.1/>
    PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
    SELECT ?name ?phone ?customer_company
    WHERE
      { 
        ?st a foaf:Person .
        ?st rdf:type ndw:CustomerContact .
        ?st foaf:name ?name.
        ?st foaf:phone ?phone .
        ?st ndw:is_contact_at ?cnt.
        ?cnt ndw:companyName ?customer_company
      }
    

    Sample Data (Live Query Results)