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

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)

Powered By Virtuoso