sparql-examples

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

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

040

rq turtle/ttl

Lists pathways that have associated PubMed publication references, returning pathway and PubMed identifiers ordered by pathway.

Use at

PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX wp: <http://vocabularies.wikipathways.org/wp#>

SELECT DISTINCT ?pathway ?pubmed
WHERE
     {?pubmed a       wp:PublicationReference .
      ?pubmed dcterms:isPartOf ?pathway }
ORDER BY ?pathway
LIMIT 50
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?pathway"):::projected 
  v2("?pubmed"):::projected 
  c2(["wp:PublicationReference"]):::iri 
  v2 --"a"-->  c2
  v2 --"dcterms:isPartOf"-->  v1