diff --git a/scholia/app/templates/chemical_biological-processes.sparql b/scholia/app/templates/chemical_biological-processes.sparql index bfb354cb..8332a130 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 { +SELECT DISTINCT ?pathway ?pathwayLabel (CONCAT("/pathway/", SUBSTR(STR(?pathway), 32)) AS ?pathwayUrl) ?pathwayDescription WHERE { VALUES ?chemical { target: } ?chemical wdt:P361 ?pathway. ?pathway wdt:P527 ?chemical. ?pathway wdt:P31 wd:Q2996394. + OPTIONAL { + ?pathway schema:description ?pathwayDescription . + FILTER (LANG(?pathwayDescription) = "[AUTO_LANGUAGE],en") + } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY ASC(?pathwayLabel) LIMIT 250