@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_00233 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "Proteins that are PE>1 with at least one proteotypic peptide of at least 9 amino-acids identified in a human sample "@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """PREFIX : <http://nextprot.org/rdf/>

SELECT DISTINCT ?entry WHERE {
 values ?level {
 	:Evidence_at_transcript_level # PE=2
 	:Inferred_from_homology 	# PE=3
 	:Predicted 	# PE=4
	:Uncertain 	# PE=5
	}
 ?entry a :Entry .
 ?entry :existence ?level .
 ?entry :isoform / :peptideMapping ?pm.
 ?pm :proteotypic true .
 ?pm :start ?pos1 ; :end ?pos2 .
 filter((?pos2 - ?pos1 + 1) >= 9)
 }""" ;
    schema:keywords "dataset",
        "peptide",
        "protein existence",
        "proteomics",
        "tutorial" ;
    schema:target <https://sparql.nextprot.org/sparql> .

