@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_00137 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "Proteins that potentially interact with Class I PDZ domains (whose C-terminal sequence has a PDZ-binding consensus)"@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """PREFIX : <http://nextprot.org/rdf/>

SELECT DISTINCT ?entry WHERE {
 ?entry :isoform ?iso.
 ?iso :matureProtein / :end ?mend.
 ?iso :sequence / :chain ?seq.
 filter (strlen(?seq) > 2).
 bind (substr(?seq, ?mend-2, 3) as ?cterseq).
 filter(regex(?cterseq,'[ST].[ILV]')). # short motif consensus for C-terminal PDZ-binding
}""" ;
    schema:keywords "PPI",
        "domain",
        "motif",
        "region",
        "sequence",
        "tutorial" ;
    schema:target <https://sparql.nextprot.org/sparql> .

