@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_09453 a sh:SPARQLExecutable, sh:SPARQLSelectExecutable ;
  sh:prefixes _:sparql_examples_prefixes ;
  rdfs:comment '''Check there are no entries with a keyword in the category "Molecular function" that does not apply to human proteins'''@en ;
  schema:keywords "QC", "keyword" ;
  schema:target <https://sparql.nextprot.org/sparql> ;
  sh:select '''PREFIX : <http://nextprot.org/rdf/>
PREFIX cv: <http://nextprot.org/rdf/terminology/>

select distinct ?entry where {  # Include ?kw if result is not 0 to identify problem keyword
  values ?kw {
  cv:KW-0008 # Acetylcholine receptor inhibiting toxin
  cv:KW-0022 # Alpha-amylase inhibitor
  cv:KW-0878 # Amphibian defense peptide
  cv:KW-0047 # Antifreeze protein
  cv:KW-0063 # Aspartyl esterase
  cv:KW-0078 # Bacteriocin
  cv:KW-1204 # Blood coagulation cascade activating toxin
  cv:KW-1222 # Bradykinin receptor impairing toxin
  cv:KW-0108 # Calcium channel impairing toxin
  cv:KW-1221 # Calcium-activated potassium channel impairing toxin
  cv:KW-0123 # Cardiotoxin
  cv:KW-1217 # Cell adhesion impairing toxin
  cv:KW-1265 # Chloride channel impairing toxin
  cv:KW-1216 # Complement system impairing toxin
  cv:KW-1061 # Dermonecrotic toxin
  cv:KW-0230 # DNA invertase
  cv:KW-0260 # Enterotoxin
  cv:KW-1206 # Fibrinogenolytic toxin
  cv:KW-1205 # Fibrinolytic toxin
  cv:KW-0302 # Gap protein
  cv:KW-1214 # G-protein coupled acetylcholine receptor impairing toxin
  cv:KW-1213 # G-protein coupled receptor impairing toxin
  cv:KW-1200 # Hemorrhagic toxin
  cv:KW-1199 # Hemostasis impairing toxin
  cv:KW-0387 # Ice nucleation
  cv:KW-0872 # Ion channel impairing toxin
  cv:KW-1028 # Ionotropic glutamate receptor inhibitor
  cv:KW-0425 # Lantibiotic
  cv:KW-0428 # Leader peptide
  cv:KW-0437 # Light-harvesting polypeptide
  cv:KW-0499 # Mobility protein
  cv:KW-0502 # Monoclonal antibody
  cv:KW-0504 # Morphogen
  cv:KW-0959 # Myotoxin
  cv:KW-0528 # Neurotoxin
  cv:KW-0562 # Pair-rule protein
  cv:KW-0568 # Pathogenesis-related protein
  cv:KW-0588 # Pheromone
  cv:KW-1202 # Platelet aggregation activating toxin
  cv:KW-1201 # Platelet aggregation inhibiting toxin
  cv:KW-0629 # Postsynaptic neurotoxin
  cv:KW-0632 # Potassium channel impairing toxin
  cv:KW-0638 # Presynaptic neurotoxin
  cv:KW-1275 # Proton-gated sodium channel impairing toxin
  cv:KW-0655 # Prothrombin activator
  cv:KW-1219 # Ryanodine-sensitive calcium-release channel impairing toxin
  cv:KW-0708 # Seed storage protein
  cv:KW-0709 # Segmentation polarity protein
  cv:KW-0731 # Sigma factor
  cv:KW-0737 # Silk protein
  cv:KW-0758 # Storage protein
  cv:KW-0766 # Superantigen
  cv:KW-0941 # Suppressor of RNA silencing
  cv:KW-0776 # Taste-modifying protein
  cv:KW-0800 # Toxin
  cv:KW-1242 # Viral contractile tail ejection system
  cv:KW-1255 # Viral exotoxin
  cv:KW-1182 # Viral ion channel
  cv:KW-1243 # Viral long flexible tail ejection system
  cv:KW-0916 # Viral movement protein
  cv:KW-0543 # Viral nucleoprotein
  cv:KW-1244 # Viral short tail ejection system
  cv:KW-1218 # Voltage-gated calcium channel impairing toxin
  cv:KW-0870 # Voltage-gated chloride channel impairing toxin
  cv:KW-1220 # Voltage-gated potassium channel impairing toxin
  cv:KW-0738 # Voltage-gated sodium channel impairing toxin
  }
  ?entry :isoform /:keyword /:term ?kw.
}''' .
