oops should have looked closer. The DISTINCT is not violated. Question remains about MINUS.
________________________________ From: Tim Harsch <[email protected]> To: JENA-USERS <[email protected]> Sent: Fri, May 6, 2011 12:31:11 PM Subject: query where distinct and minus have no effect Hi, Using the LUBM0 dataset I tried the following query in Fuseki-0.1.0. PREFIX ub: <http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#> SELECT DISTINCT * WHERE { ?n0 ub:teacherOf ?n1. MINUS { <http://www.Department0.University0.edu/AssistantProfessor0> ub:teacherOf <http://www.Department0.University0.edu/Course38> } } ORDER BY ?n0 ?n1 The first three results are below. Notice the first result contains AssistantProfessor0, Course38 (violating the MINUS) and the next two results are redundant (shouldn't happen with DISTINCT). Any ideas? The NT file can be found in this Zip archive I packed up for other reasons ( http://bit.ly/k8adNJ ). <result> <binding name="n0"> http://www.Department0.University0.edu/AssistantProfessor0 </binding> <binding name="n1"> http://www.Department0.University0.edu/Course38 </binding> </result> <result> <binding name="n0"> http://www.Department0.University0.edu/AssistantProfessor0 </binding> <binding name="n1"> http://www.Department0.University0.edu/Course39 </binding> </result> <result> <binding name="n0"> http://www.Department0.University0.edu/AssistantProfessor0 </binding> <binding name="n1"> http://www.Department0.University0.edu/GraduateCourse39 </binding> </result>
