@prefix ex: <https://sparql.uniprot.org/.well-known/sparql-examples/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <https://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .

ex:9 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "Select all human UniProtKB entries with a sequence variant that leads to a 'loss of function'"@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX taxon: <http://purl.uniprot.org/taxonomy/>
PREFIX up: <http://purl.uniprot.org/core/>

SELECT ?protein ?text
WHERE
{ 
        ?protein a up:Protein .
        ?protein up:organism taxon:9606 . 
        ?protein up:annotation ?annotation .
        ?annotation a up:Natural_Variant_Annotation . 
        ?annotation rdfs:comment ?text .
        FILTER (CONTAINS(?text, 'loss of function'))
}""" ;
    schema:keywords "variant" , "variant annotation" ;
    schema:potentialAction [ schema:description "UniProtKB rest search with sparql" ;
            schema:target <https://www.uniprot.org/sparql/> ] ;
    schema:target <https://sparql.uniprot.org/sparql/> .

