sparql-examples

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

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

010

rq turtle/ttl

List all homology converted pathways.

Use at

PREFIX wp: <http://vocabularies.wikipathways.org/wp#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX cur: <http://vocabularies.wikipathways.org/wp#Curation:>

SELECT DISTINCT ?pathway (str(?title) as ?PathwayTitle) ?organism
WHERE {
  ?pathway wp:ontologyTag cur:Homology_Converted ;
  a wp:Pathway ; 
  dc:title ?title ;
  wp:organismName ?organism .
} ORDER BY ASC(?organism) ASC(?PathwayTitle)
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v5("?PathwayTitle")
  v1("?organism"):::projected 
  v3("?pathway"):::projected 
  v4("?title"):::projected 
  c2(["wp:Curation:Homology_Converted"]):::iri 
  c4(["wp:Pathway"]):::iri 
  v3 --"wp:ontologyTag"-->  c2
  v3 --"a"-->  c4
  v3 --"dc:title"-->  v4
  v3 --"wp:organismName"-->  v1
  bind0[/"str(?title)"/]
  v4 --o bind0
  bind0 --as--o v5