From 363114ad3eccc257f8dd80f24d51632aa09788d6 Mon Sep 17 00:00:00 2001 From: Mark Hale Date: Tue, 9 Nov 2021 19:32:46 +0000 Subject: [PATCH] Query optimisation. --- model/sparql/GenericSparql.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/model/sparql/GenericSparql.php b/model/sparql/GenericSparql.php index 6605102aa..eb99b8ad1 100644 --- a/model/sparql/GenericSparql.php +++ b/model/sparql/GenericSparql.php @@ -1694,11 +1694,9 @@ private function generateTransitivePropertyQuery($uri, $props, $lang, $limit, $a SELECT ?object ?label (GROUP_CONCAT(STR(?dir);separator=' ') as ?direct) WHERE { <$uri> a skos:Concept . + <$uri> $propertyClause* ?object . OPTIONAL { - <$uri> $propertyClause* ?object . - OPTIONAL { - ?object $propertyClause ?dir . - } + ?object $propertyClause ?dir . } OPTIONAL { ?object skos:prefLabel ?label .