Example SPARQL queries for the WikiPathways Snorql UI. These queries are loaded automatically to help users explore WikiPathways RDF data and build novel queries.
-
Pick the right directory. Queries are organized by topic in lettered directories (A-J). Place your
.rqfile in the matching directory. -
Add a header. Every
.rqfile must start with these required header fields:# title: Genes of a Pathway # category: General # description: Lists all gene products in a given pathway, returning the pathway # identifier and gene product labels. SELECT ...
title-- short, descriptive namecategory-- must match an entry incategories.jsondescription-- what the query does (wrap long lines with#continuation indent)
See HEADER_CONVENTIONS.md for full details, including optional fields like
keywordsandparam. -
Alternative: TTL format. You can also write a
.ttl(Turtle/RDF) file using the SHACLsh:SPARQLExecutablepattern. The CI pipeline will auto-generate the corresponding.rqfile on merge tomaster. If a.ttlsource exists, do not edit the.rqfile directly.