sparql-examples

A set of SPARQL examples that are used in different SIB resources

View the Project on GitHub sib-swiss/sparql-examples

62_diseases_involving_enzymes

rq turtle/ttl

Find diseases that are thought to be related to enzymes

Use at

PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX up: <http://purl.uniprot.org/core/>

SELECT
?disease ?diseaseLabel
WHERE {
 ?protein up:enzyme|up:annotation/up:catalyticActivity/up:enzymeClass ?enzyme ;
                   up:annotation ?diseaseAnnotation .
 ?diseaseAnnotation a up:Disease_Annotation ;
                    up:disease ?disease .
 ?disease skos:prefLabel ?diseaseLabel .
}
Union
up:annotation
up:catalyticActivity
up:enzymeClass
up:enzyme
up:annotation
a
up:disease
skos:prefLabel
or
?protein
?enzyme
?disease
?diseaseAnnotation
?diseaseLabel
up:Disease_Annotation