-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path13-hog-members-at-level-from-query-protein.ttl
31 lines (29 loc) · 1.29 KB
/
13-hog-members-at-level-from-query-protein.ttl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@prefix ex: <https://sparql.omabrowser.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:13 a sh:SPARQLExecutable,
sh:SPARQLSelectExecutable ;
rdfs:comment "Retrieve all proteins belongong to the Hierarchical Orthologous Group (HOG) at the level 'Vertebrata' to which humans' CDIN1 gene belong, together with their gene name symbol if available."@en ;
sh:prefixes _:sparql_examples_prefixes ;
sh:select """PREFIX obo: <http://purl.obolibrary.org/obo/>
PREFIX orth: <http://purl.org/net/orth#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX up: <http://purl.uniprot.org/core/>
SELECT DISTINCT ?HOG ?MEMBER ?GENE_LABEL
WHERE {
?HOG a orth:OrthologsCluster ;
orth:hasHomologousMember ?node1 ;
orth:hasTaxonomicRange ?taxRange .
?taxRange orth:taxRange 'Vertebrata' .
?node1 orth:hasHomologousMember* ?query ;
orth:hasHomologousMember* ?MEMBER .
?MEMBER a orth:Protein .
OPTIONAL {
?MEMBER rdfs:label ?GENE_LABEL .
}
?query a orth:Protein ;
orth:organism/obo:RO_0002162/up:scientificName 'Homo sapiens';
rdfs:label 'CDIN1'.
}""" ;
schema:target <https://sparql.omabrowser.org/sparql> .