From ecca2654e58bceaf4d8d3057dab30222ee6368e8 Mon Sep 17 00:00:00 2001 From: Brandon Weigel Date: Mon, 26 Feb 2018 20:05:51 +0000 Subject: [PATCH] Change query to SELECT DISTINCT, remove ?p ?otherobject --- includes/orphaned_objects.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/orphaned_objects.inc b/includes/orphaned_objects.inc index 9eb7b806..8f61a8a1 100644 --- a/includes/orphaned_objects.inc +++ b/includes/orphaned_objects.inc @@ -129,7 +129,7 @@ function islandora_orphaned_objects_get_orphaned_objects() { // SPARQL: get orphaned objects, exclude any with a living parent. $object_query = << -SELECT ?object ?p ?otherobject ?title +SELECT DISTINCT ?object ?title WHERE { ?object ; ?p ?otherobject .