A set of SPARQL examples that are used in different TGX resources
Returns publication references for a single interaction identified by both a pathway and a specific participant URI. This example uses the default values (Pathway ID "WP5200", UniProt Protein ID "P35498"); the WikiPathways SNORQL UI lets you change them.
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX wp: <http://vocabularies.wikipathways.org/wp#>
SELECT DISTINCT ?pathway ?interaction ?pubmed WHERE {
?pathway a wp:Pathway .
?pathway dc:identifier <https://identifiers.org/wikipathways/WP5200> . #filter for pathway
?interaction dcterms:isPartOf ?pathway .
?interaction a wp:Interaction .
?interaction wp:participants <https://identifiers.org/uniprot/P35498>. #filter for interaction
?interaction dcterms:references ?pubmed .
} LIMIT 100
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?interaction"):::projected
v1("?pathway"):::projected
v3("?pubmed"):::projected
c4([https://identifiers.org/wikipathways/WP5200]):::iri
c6(["wp:Interaction"]):::iri
c8([https://identifiers.org/uniprot/P35498]):::iri
c2(["wp:Pathway"]):::iri
v1 --"a"--> c2
v1 --"dc:identifier"--> c4
v2 --"dcterms:isPartOf"--> v1
v2 --"a"--> c6
v2 --"wp:participants"--> c8
v2 --"dcterms:references"--> v3