@prefix ex:<https://purl.expasy.org/sparql-examples/neXtProt/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <https://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .

ex:NXQ_00289 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "KEGG and Reactome pathway names"@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """PREFIX : <http://nextprot.org/rdf/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX source: <http://nextprot.org/rdf/source/>

SELECT DISTINCT ?src (str(?pathwayname) as ?pw) WHERE {
 ?entry :isoform / :pathway ?pathannot .
 ?pathannot rdfs:comment ?pathwayname; :evidence / :assignedBy ?src.
 filter(?src = source:Reactome || ?src = source:KEGG_PTW)
} order by ?pathwayname""" ;
    schema:keywords "pathway",
        "tutorial" ;
    schema:target <https://sparql.nextprot.org/sparql> .

