sparql-examples

A set of SPARQL examples that are used in different TGX resources

View the Project on GitHub BiGCAT-UM/sparql-examples

027

rq turtle/ttl

Lists all pathways tagged with the Reactome Approved curation tag.

Use at

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