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)
  • Click *Here* for a live SPARQL Query (via SPARQL Protocol) against a collection of Northwind People which are contacts of customers.
Powered By Virtuoso