@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#> .
@prefix up: <http://purl.uniprot.org/core/> .

ex:121_proteins_and_diseases_linked a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "List all UniProtKB proteins and the diseases are annotated to be related."@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """
PREFIX up: <http://purl.uniprot.org/core/>

SELECT
	?protein
	?disease
WHERE {
	?protein a up:Protein ;
    	up:annotation ?annotation .
	?annotation a up:Disease_Annotation ;
    	up:disease ?disease .
	?disease a up:Disease .
}""" ;
    schema:keywords "list" , "disease" ;
    schema:target <https://sparql.uniprot.org/sparql/> .
