diff --git a/scholia/app/templates/chemical_biological-processes.sparql b/scholia/app/templates/chemical_biological-processes.sparql index bfb354cba..91c048f1d 100644 --- a/scholia/app/templates/chemical_biological-processes.sparql +++ b/scholia/app/templates/chemical_biological-processes.sparql @@ -1,10 +1,14 @@ PREFIX target: -SELECT DISTINCT ?pathway ?pathwayLabel (CONCAT("/pathway/", SUBSTR(STR(?pathway), 32)) AS ?pathwayUrl) WHERE { - VALUES ?chemical { target: } - ?chemical wdt:P361 ?pathway. - ?pathway wdt:P527 ?chemical. - ?pathway wdt:P31 wd:Q2996394. +SELECT DISTINCT + ?pathway ?pathwayLabel + (CONCAT("/pathway/", SUBSTR(STR(?pathway), 32)) AS ?pathwayUrl) + ?pathwayDescription +WHERE { + ?pathway wdt:P527 target: ; + wdt:P31 wd:Q2996394 . + target: wdt:P361 ?pathway . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } -} ORDER BY ASC(?pathwayLabel) - LIMIT 250 +} +ORDER BY ASC(?pathwayLabel) +LIMIT 250