sparql-examples

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

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

009

rq turtle/ttl

List all pathways for species 'Mus musculus'.

Use at

PREFIX wp: <http://vocabularies.wikipathways.org/wp#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>

SELECT DISTINCT ?wpIdentifier ?pathway ?page
WHERE {
    ?pathway dc:title ?title .
    ?pathway foaf:page ?page .
    ?pathway dc:identifier ?wpIdentifier .
    ?pathway wp:organismName "Mus musculus" .
 }
ORDER BY ?wpIdentifier
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v4("?page"):::projected 
  v2("?pathway"):::projected 
  v3("?title")
  v1("?wpIdentifier"):::projected 
  c5(["Mus musculus"]):::literal 
  v2 --"dc:title"-->  v3
  v2 --"foaf:page"-->  v4
  v2 --"dc:identifier"-->  v1
  v2 --"wp:organismName"-->  c5