@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_00143 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "Proteins for which none of the reported proteotypic peptides is from PeptideAtlas nor MassIVE"@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """PREFIX : <http://nextprot.org/rdf/>
PREFIX source: <http://nextprot.org/rdf/source/>

select ?entry WHERE {
 ?entry :isoform / :peptideMapping ?pm.
 ?pm :proteotypic true .
 ?pm :peptideSource ?src .
 bind (?src = source:MassIVE as ?massive)
 bind (?src = source:PeptideAtlas as ?pa)
 bind (?src != source:MassIVE && ?src != source:PeptideAtlas as ?other)
}
group by ?entry
having (sum(?massive)=0 && sum(?pa)=0 && sum(?other)>0)""" ;
    schema:keywords "dataset",
        "peptide",
        "proteomics",
        "tutorial" ;
    schema:target <https://sparql.nextprot.org/sparql> .

