A set of SPARQL examples that are used in different TGX resources
Lists all pathways tagged with the Reactome Approved curation tag.
PREFIX cur: <http://vocabularies.wikipathways.org/wp#Curation:>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX wp: <http://vocabularies.wikipathways.org/wp#>
SELECT DISTINCT ?pathway (str(?titleLit) as ?title)
WHERE {
?pathway wp:ontologyTag cur:Reactome_Approved ;
dc:title ?titleLit .
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?pathway"):::projected
v3("?title")
v2("?titleLit"):::projected
c2(["wp:Curation:Reactome_Approved"]):::iri
v1 --"wp:ontologyTag"--> c2
v1 --"dc:title"--> v2
bind0[/"str(?titleLit)"/]
v2 --o bind0
bind0 --as--o v3