From 7bf1aab7f393b2b6554f6961ae7567bdd33219ee Mon Sep 17 00:00:00 2001 From: Egon Willighagen Date: Sat, 12 Oct 2024 14:15:42 +0200 Subject: [PATCH] Added the description too --- scholia/app/templates/chemical_biological-processes.sparql | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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