@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_00027 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "Proteins with one or more glycosylation sites reported in PubMed:20570859 or PubMed:14760718"@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """PREFIX : <http://nextprot.org/rdf/>
PREFIX db: <http://nextprot.org/rdf/db/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

SELECT DISTINCT ?entry ?publications WHERE {
 values ?pmid {"20570859"^^xsd:string "14760718"^^xsd:string}
 # get all assertions from the publications
 ?entry :isoform/:glycosylationSite ?statement.
 ?statement :evidence/:reference/:from ?xref .
 ?xref :accession ?pmid ; :provenance db:PubMed .
}""" ;
    schema:keywords "PTM",
        "glycosylation",
        "proteomics",
        "publication",
        "tutorial" ;
    schema:target <https://sparql.nextprot.org/sparql> .

