Browse Source

Change query to SELECT DISTINCT, remove ?p ?otherobject

pull/697/head
Brandon Weigel 7 years ago
parent
commit
ecca2654e5
  1. 2
      includes/orphaned_objects.inc

2
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. // SPARQL: get orphaned objects, exclude any with a living parent.
$object_query = <<<EOQ $object_query = <<<EOQ
PREFIX islandora: <http://islandora.ca/ontology/relsext#> PREFIX islandora: <http://islandora.ca/ontology/relsext#>
SELECT ?object ?p ?otherobject ?title SELECT DISTINCT ?object ?title
WHERE { WHERE {
?object <fedora-model:hasModel> <info:fedora/fedora-system:FedoraObject-3.0> ; ?object <fedora-model:hasModel> <info:fedora/fedora-system:FedoraObject-3.0> ;
?p ?otherobject . ?p ?otherobject .

Loading…
Cancel
Save