Skip to content

Commit

Permalink
Added the description too
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw authored and fnielsen committed Oct 18, 2024
1 parent 6ae91e5 commit 7bf1aab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scholia/app/templates/chemical_biological-processes.sparql
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
PREFIX target: <http://www.wikidata.org/entity/{{ q }}>

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

0 comments on commit 7bf1aab

Please sign in to comment.