VIVO-784 remove duplicate results from "show statements".

The clause to include statements in the default graph was showing everything twice, without filtering the statements in the named graph. Don't know why. Talked with Brian, and decided to remove it.
This commit is contained in:
Jim Blake 2014-06-13 11:15:27 -04:00
parent ea9d1e739d
commit ecbee098cb

View file

@ -37,10 +37,7 @@
SELECT ?pred ?obj ?graph SELECT ?pred ?obj ?graph
WHERE WHERE
{ {
{ <${entity.URI}> ?pred ?obj GRAPH ?graph { <${entity.URI}> ?pred ?obj}
MINUS { GRAPH ?g { <${entity.URI}> ?pred ?obj } } }
UNION
{ GRAPH ?graph { <${entity.URI}> ?pred ?obj} }
} ORDER BY ?graph ?pred } ORDER BY ?graph ?pred
limit 10000"/> limit 10000"/>
<form action="admin/sparqlquery" method="get"> <form action="admin/sparqlquery" method="get">
@ -55,10 +52,7 @@
SELECT ?sub ?pred ?graph SELECT ?sub ?pred ?graph
WHERE WHERE
{ {
{ ?sub ?pred <${entity.URI}> GRAPH ?graph { ?sub ?pred <${entity.URI}> }
MINUS { GRAPH ?g { ?sub ?pred <${entity.URI}> } } }
UNION
{ GRAPH ?graph { ?sub ?pred <${entity.URI}> } }
} ORDER BY ?graph ?pred } ORDER BY ?graph ?pred
limit 10000"/> limit 10000"/>
<form action="admin/sparqlquery" method="get"> <form action="admin/sparqlquery" method="get">