From 53d770bbcc7a668cd09f6e07746fde27c49e7f29 Mon Sep 17 00:00:00 2001 From: Jerven Bolleman Date: Fri, 24 May 2024 14:41:50 +0200 Subject: [PATCH] Add an example to get UniProt annotated diseases and omim --- uniprot/genetic_disease_related_proteins.ttl | 31 ++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 uniprot/genetic_disease_related_proteins.ttl diff --git a/uniprot/genetic_disease_related_proteins.ttl b/uniprot/genetic_disease_related_proteins.ttl new file mode 100644 index 000000000..2e0e32b75 --- /dev/null +++ b/uniprot/genetic_disease_related_proteins.ttl @@ -0,0 +1,31 @@ +prefix ex: +prefix up: +prefix sh: +prefix schema: +prefix rdf: +prefix faldo: +prefix rdfs: + +ex:genetic_disease_related_proteins + a sh:SPARQLSelectExecutable, sh:SPARQLExecutable ; + sh:prefixes _:sparql_examples_prefixes ; + schema:target ; + rdfs:comment """List all UniProt proteins annotated to be related to a genetic disease.""" ; + sh:select """SELECT + ?uniprot ?disease ?diseaseComment ?mim +WHERE +{ + GRAPH { + ?uniprot a up:Protein ; + up:annotation ?diseaseAnnotation . + ?diseaseAnnotation up:disease ?disease . + } + GRAPH { + ?disease a up:Disease ; + rdfs:comment ?diseaseComment . + OPTIONAL { + ?disease rdfs:seeAlso ?mim . + ?mim up:database . + } + } +}""" .