@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_00084 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "Proteins whose genes are on chromosome 18 and that are experimentally (cv:ECO_0000269) known to be glycosylated or phosphorylated or acetylated"@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#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

SELECT DISTINCT ?entry {
 ?entry :gene / :chromosome "18"^^xsd:string.
 ?entry :isoform ?iso.
 {
 ?iso :glycosylationSite ?ptm1.
 ?ptm1 :evidence /:evidenceCode / :childOf nextprot_cv:ECO_0000269
 }
 union {
 ?iso :modifiedResidue ?ptm2.
 ?ptm2 rdfs:comment ?com.
 ?ptm2 :evidence / :evidenceCode / :childOf nextprot_cv:ECO_0000269
 filter (regex(?com, '^phospho|acetyl','i'))
 }
}""" ;
    schema:keywords "chromosomal location",
        "PTM",
        "glycosylation",
        "method",
        "phosphorylation",
        "tutorial" ;
    schema:target <https://sparql.nextprot.org/sparql> .

