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

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

PREFIX ndw:<>
PREFIX foaf: <>
PREFIX rdf: <>
SELECT ?name ?phone ?customer_company
    ?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