@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_09064 a sh:SPARQLExecutable, sh:SPARQLSelectExecutable ;
  sh:prefixes _:sparql_examples_prefixes ;
  rdfs:comment '''Check there are no entries with peptide mapping annotations with evidence NOT from MassIVE, PeptideAtlas or neXtProt'''@en ;
  schema:keywords "QC", "provenance", "proteomics", "peptide" ;
  schema:target <https://sparql.nextprot.org/sparql> ;
  sh:select '''PREFIX : <http://nextprot.org/rdf/>
PREFIX cv: <http://nextprot.org/rdf/terminology/>
PREFIX source: <http://nextprot.org/rdf/source/>

select distinct ?entry ?src where {
  ?entry :isoform ?iso.
  ?iso :peptideMapping /:evidence /:assignedBy ?src.
  filter ( ?src not in (source:MDATA_0004_2011,
source:MDATA_0023_2012,
source:MDATA_0033_2013,
source:PMID_20797634,
source:PMID_20140087,
source:PMID_20570859,
source:PMID_20687582,
source:PMID_20972266,
source:PMID_21139048,
source:PMID_21645671,
source:PMID_21890473,
source:PMID_22148984,
source:PMID_22865923,
source:PMID_23236377,
source:PMID_23266961,
source:PMID_23584533,
source:PMID_23955771,
source:PMID_24129315,
source:PMID_25038526,
source:PMID_25218447,
source:PeptideAtlas_human_Adrenal_Gland,
source:PeptideAtlas_human_Blood_Cells,
source:PeptideAtlas_human_Blood_Plasma,
source:PeptideAtlas_human_Brain,
source:PeptideAtlas_human_Breast,
source:PeptideAtlas_human_Cerebrospinal_Fluid,
source:PeptideAtlas_human_Digestive_System,
source:PeptideAtlas_human_Eye,
source:PeptideAtlas_human_Heart,
source:PeptideAtlas_human_Kidney,
source:PeptideAtlas_human_Liver,
source:PeptideAtlas_human_Lung,
source:PeptideAtlas_human_Non_Cancer_Cell_Lines,
source:PeptideAtlas_human_Olfactory_System,
source:PeptideAtlas_human_Oocyte,
source:PeptideAtlas_human_Other_Anatomical_Entities,
source:PeptideAtlas_human_Other_Female_Reproductive_Organ,
source:PeptideAtlas_human_Other_Gestational_Structure,
source:PeptideAtlas_human_Other_Male_Reproductive_Organ,
source:PeptideAtlas_human_Other_Respiratory_Organ,
source:PeptideAtlas_human_Ovary,
source:PeptideAtlas_human_Pancreas,
source:PeptideAtlas_human_Pituitary_Gland,
source:PeptideAtlas_human_Placenta,
source:PeptideAtlas_human_Skin,
source:PeptideAtlas_human_Sperm,
source:PeptideAtlas_human_Spleen,
source:PeptideAtlas_human_Testis,
source:PeptideAtlas_human_Thyroid_Gland,
source:PeptideAtlas_human_Urinary_Bladder,
source:PeptideAtlas_human_Urine,
source:PeptideAtlas_human_Ureter,
source:PeptideAtlas_human_Cancer_Adrenal_Gland,
source:PeptideAtlas_human_Cancer_Brain,
source:PeptideAtlas_human_Cancer_Breast,
source:PeptideAtlas_human_Cancer_Digestive_System,
source:PeptideAtlas_human_Cancer_Kidney,
source:PeptideAtlas_human_Cancer_Liver,
source:PeptideAtlas_human_Cancer_Lung,
source:PeptideAtlas_human_Cancer_Other_Anatomical_Entities,
source:PeptideAtlas_human_Cancer_Other_Female_Reproductive_Organ,
source:PeptideAtlas_human_Cancer_Other_Male_Reproductive_Organ,
source:PeptideAtlas_human_Cancer_Ovary,
source:PeptideAtlas_human_Cancer_Pancreas,
source:PeptideAtlas_human_Cancer_Skin,
source:PeptideAtlas_human_Cancer_Urinary_Bladder,
source:PeptideAtlas_human_Cancer_Cell_Lines_Blood,
source:PeptideAtlas_human_Cancer_Cell_Lines_Bone,
source:PeptideAtlas_human_Cancer_Cell_Lines_Brain,
source:PeptideAtlas_human_Cancer_Cell_Lines_Breast,
source:PeptideAtlas_human_Cancer_Cell_Lines_Digestive_System,
source:PeptideAtlas_human_Cancer_Cell_Lines_Kidney,
source:PeptideAtlas_human_Cancer_Cell_Lines_Liver,
source:PeptideAtlas_human_Cancer_Cell_Lines_Lung,
source:PeptideAtlas_human_Cancer_Cell_Lines_Other_Anatomical_Entities,
source:PeptideAtlas_human_Cancer_Cell_Lines_Other_Female_Reproductive_Organ,
source:PeptideAtlas_human_Cancer_Cell_Lines_Other_Male_Reproductive_Organ,
source:PeptideAtlas_human_Cancer_Cell_Lines_Ovary,
source:PeptideAtlas_human_Cancer_Cell_Lines_Pancreas,
source:PeptideAtlas_human_Cancer_Cell_Lines_Skin,
source:PeptideAtlas_human_Cancer_Cell_Lines_Urinary_Bladder,
source:PeptideAtlas_human_Cancer_and_Non_Cancer_Cell_Lines,
source:PeptideAtlas_human_phosphoproteome,
source:MassIVE, # To be removed (phantom)
source:MassIVE_human_Adrenal_Gland,
source:MassIVE_human_Blood_Cells,
source:MassIVE_human_Blood_Plasma,
source:MassIVE_human_Blood_Vessel,
source:MassIVE_human_Bone,
source:MassIVE_human_Brain,
source:MassIVE_human_Breast,
source:MassIVE_human_Cerebrospinal_Fluid,
source:MassIVE_human_Digestive_System,
source:MassIVE_human_Eye,
source:MassIVE_human_Heart,
source:MassIVE_human_Kidney,
source:MassIVE_human_Liver,
source:MassIVE_human_Lung,
source:MassIVE_human_Muscle,
source:MassIVE_human_Non_Cancer_Cell_Lines,
source:MassIVE_human_Olfactory_System,
source:MassIVE_human_Other_Anatomical_Entities,
source:MassIVE_human_Other_Female_Reproductive_Organ,
source:MassIVE_human_Other_Gestational_Structure,
source:MassIVE_human_Other_Male_Reproductive_Organ,
source:MassIVE_human_Other_Respiratory_Organ,
source:MassIVE_human_Ovary,
source:MassIVE_human_Pancreas,
source:MassIVE_human_Pituitary_Gland,
source:MassIVE_human_Placenta,
source:MassIVE_human_Skin,
source:MassIVE_human_Sperm,
source:MassIVE_human_Spleen,
source:MassIVE_human_Testis,
source:MassIVE_human_Thyroid_Gland,
source:MassIVE_human_Ureter,
source:MassIVE_human_Urinary_Bladder,
source:MassIVE_human_Urine,
source:MassIVE_human_Cancer_Blood_Cells,
source:MassIVE_human_Cancer_Bone,
source:MassIVE_human_Cancer_Breast,
source:MassIVE_human_Cancer_Digestive_System,
source:MassIVE_human_Cancer_Lung,
source:MassIVE_human_Cancer_Other_Male_Reproductive_Organ,
source:MassIVE_human_Cancer_Ovary,
source:MassIVE_human_Cancer_Skin,
source:MassIVE_human_Cancer_Cell_Lines_Blood,
source:MassIVE_human_Cancer_Cell_Lines_Bone,
source:MassIVE_human_Cancer_Cell_Lines_Brain,
source:MassIVE_human_Cancer_Cell_Lines_Breast,
source:MassIVE_human_Cancer_Cell_Lines_Digestive_System,
source:MassIVE_human_Cancer_Cell_Lines_Liver,
source:MassIVE_human_Cancer_Cell_Lines_Lung,
source:MassIVE_human_Cancer_Cell_Lines_Other_Anatomical_Entities,
source:MassIVE_human_Cancer_Cell_Lines_Other_Female_Reproductive_Organ,
source:MassIVE_human_Cancer_Cell_Lines_Ovary,
source:MassIVE_human_Cancer_Cell_Lines_Skin))
}''' .
