ExampleQueryMissing

From W3C Wiki
# Find pathology reports with no matching radiology report.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX term: <term:/> # not the most inspired namespace...

SELECT ?lat ?clock ?radFinding {
 { [ a term:MammogramReport ;
     term:finding [
         rdfs:label ?radFinding ;
         term:location [
             term:laterality ?lat ;
             term:position ?clock
         ]
     ]
   ] }
 MINUS
  { [ a term:PathologyReport ;
      term:finding [
          term:location [
              term:laterality ?lat ;
              term:position ?clock
          ]
      ]
    ] }
}