@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_00216 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "Phosphorylation sites from PeptideAtlas Phosphoproteome"@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """PREFIX : <http://nextprot.org/rdf/>
PREFIX source: <http://nextprot.org/rdf/source/>

SELECT DISTINCT (sample(?iso) as ?isospl) (sample(?pos) as ?posspl) WHERE {
 ?entry :isoform ?iso .
 ?iso :ptm ?ptm.
 ?ptm :entryAnnotationId ?ptmid; :start ?pos .
 ?ptm :evidence / :assignedBy source:PeptideAtlas_human_phosphoproteome .
}
group by ?ptmid
order by ?isospl ?posspl""" ;
    schema:keywords "dataset",
        "phosphorylation",
        "proteomics",
        "tutorial" ;
    schema:target <https://sparql.nextprot.org/sparql> .

