@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_00069 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "Proteins which are the substrate of protein kinase SYK"@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """PREFIX : <http://nextprot.org/rdf/>
PREFIX nextprot_cv: <http://nextprot.org/rdf/terminology/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT DISTINCT ?entry WHERE {
 ?entry :isoform ?iso.
 {
 ?iso :modifiedResidue ?ptm.
 ?ptm :term ?ptmtype.
 ?ptm rdfs:comment ?comment.
 filter (?ptmtype in (nextprot_cv:PTM-0253, nextprot_cv:PTM-0254, nextprot_cv:PTM-0255))
 filter regex(?comment, "SYK","i")
 # filter regex(?comment, "auto","i")
 }
 union
 {
 ?iso :ptmInfo / rdfs:comment ?ptmtext .
 filter regex(?ptmtext, "SYK","i")
 #filter regex(?ptmtext, "autophos","i")
 }
 }""" ;
    schema:keywords "PTM",
        "phosphorylation",
        "tutorial" ;
    schema:target <https://sparql.nextprot.org/sparql> .

