-
Notifications
You must be signed in to change notification settings - Fork 7
/
03_05_targetClassifications.ttl
164 lines (156 loc) · 7.66 KB
/
03_05_targetClassifications.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
@base <http://www.openphacts.org/api#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix uniprot: <http://purl.uniprot.org/core/> .
@prefix api: <http://purl.org/linked-data/api/vocab#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix ops: <http://www.openphacts.org/api#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix chembl: <http://rdf.ebi.ac.uk/terms/chembl#> .
@prefix obo: <http://www.semantic-systems-biology.org/ontology/rdf/OBO#> .
@prefix void: <http://rdfs.org/ns/void#> .
<#target> a api:API ;
rdfs:label "Target"@en ;
api:sparqlEndpoint <http://alpha.openphacts.org:8890/sparql/> ;
api:contentNegotiation api:parameterBased ;
api:variable _:hierarchy ;
api:variable _:type ;
api:variable <#input> ;
api:dataset <http://www.ebi.ac.uk/chembl> ;
api:dataset <http://purl.uniprot.org/enzyme/> ;
api:dataset <http://www.geneontology.org> ;
api:vocabulary rdfs: ;
api:vocabulary skos: ;
api:vocabulary uniprot: ;
api:vocabulary dcterms: ;
api:description "An API configuration to return information about targets." ;
api:endpoint [
a api:ItemEndpoint ;
api:name "Target Classifications" ;
api:description "The classes the given target URI has been classified with. Currently supported hierarchies are the Enzyme Classification, the ChEMBL Target Tree and the Gene Ontology. " ;
api:itemTemplate "{uri}" ;
api:variable <http://purl.uniprot.org/enzyme> ;
api:variable <http://www.ebi.ac.uk/chembl> ;
api:variable <http://www.geneontology.org> ;
api:variable <http://rdf.ebi.ac.uk/terms/chembl#SingleProtein> ;
api:variable <http://rdf.ebi.ac.uk/terms/chembl#ProteinComplexGroup> ;
api:variable <http://rdf.ebi.ac.uk/terms/chembl#ProteinFamily> ;
api:variable <http://rdf.ebi.ac.uk/terms/chembl#ProteinSelectivityGroup> ;
api:variable <http://rdf.ebi.ac.uk/terms/chembl#ProteinComplex> ;
api:variable <http://rdf.ebi.ac.uk/terms/chembl#Organism> ;
api:variable <http://rdf.ebi.ac.uk/terms/chembl#CellLine> ;
api:variable <http://rdf.ebi.ac.uk/terms/chembl#Tissue> ;
api:variable <http://rdf.ebi.ac.uk/terms/chembl#ProteinProteinInteraction> ;
api:variable <http://rdf.ebi.ac.uk/terms/chembl#UnknownTarget> ;
api:variable <http://rdf.ebi.ac.uk/terms/chembl#NucleicAcid> ;
api:variable <http://rdf.ebi.ac.uk/terms/chembl#SubCellular> ;
api:variable <http://rdf.ebi.ac.uk/terms/chembl#UnclassifiedTarget> ;
api:variable <http://rdf.ebi.ac.uk/terms/chembl#ADMET> ;
api:variable <http://rdf.ebi.ac.uk/terms/chembl#ChimericProtein> ;
api:variable <http://rdf.ebi.ac.uk/terms/chembl#Phenotype> ;
api:uriTemplate "/target/classifications?uri={uri}" ;
api:exampleRequestPath "/target/classifications?uri=http%3A%2F%2Fpurl.uniprot.org%2Funiprot%2FP14756" ;
api:exampleRequestPath "/target/classifications?uri=http%3A%2F%2Fpurl.uniprot.org%2Funiprot%2FP14756&tree=go" ;
api:viewer <#targetClassificationsViewer> ;
api:defaultViewer <#targetClassificationsViewer> ] .
<http://www.ebi.ac.uk/chembl> api:label "ChEMBL - RDF" .
<http://purl.uniprot.org/enzyme/> api:label "Enzyme Classification" .
<http://www.geneontology.org> api:label "Gene Ontology" .
<http://www.ebi.ac.uk/chembl> api:name "chembl" .
<http://purl.uniprot.org/enzyme> api:name "enzyme" .
<http://www.geneontology.org> api:name "go" .
_:hierarchy api:name "tree" ;
api:label "tree" ;
api:value "Restrict results by hierarchy. Currently one of 'chembl', 'enzyme', 'go'" ;
api:filterVariable "?g" ;
rdfs:subPropertyOf api:graphFilter ;
a rdf:Property .
<#input> api:name "uri" ;
api:label "uri";
api:value "A target URI. e.g.: http://purl.uniprot.org/uniprot/P14756" ;
rdfs:range rdfs:Resource .
_:type api:name "target_type" ;
api:label "target_type" ;
api:filterVariable "?chembl_target_uri";
api:value "One of the types listed at /target/types. e.g. single_protein" ;
rdfs:subPropertyOf rdf:type ;
a rdf:Property .
<http://rdf.ebi.ac.uk/terms/chembl#SingleProtein> api:name "single_protein" .
<http://rdf.ebi.ac.uk/terms/chembl#ProteinComplexGroup> api:name "protein_complex_group" .
<http://rdf.ebi.ac.uk/terms/chembl#ProteinFamily> api:name "protein_family" .
<http://rdf.ebi.ac.uk/terms/chembl#ProteinSelectivityGroup> api:name "protein_selectivity_group" .
<http://rdf.ebi.ac.uk/terms/chembl#ProteinComplex> api:name "protein_complex" .
<http://rdf.ebi.ac.uk/terms/chembl#Organism> api:name "organism" .
<http://rdf.ebi.ac.uk/terms/chembl#CellLine> api:name "cell_line" .
<http://rdf.ebi.ac.uk/terms/chembl#Tissue> api:name "tissue" .
<http://rdf.ebi.ac.uk/terms/chembl#ProteinProteinInteraction> api:name "ppi" .
<http://rdf.ebi.ac.uk/terms/chembl#UnknownTarget> api:name "unknown" .
<http://rdf.ebi.ac.uk/terms/chembl#NucleicAcid> api:name "nucleic_acid" .
<http://rdf.ebi.ac.uk/terms/chembl#SubCellular> api:name "sub_cellular" .
<http://rdf.ebi.ac.uk/terms/chembl#UnclassifiedTarget> api:name "unclassified" .
<http://rdf.ebi.ac.uk/terms/chembl#ADMET> api:name "admet" .
<http://rdf.ebi.ac.uk/terms/chembl#ChimericProtein> api:name "chimeric_protein" .
<http://rdf.ebi.ac.uk/terms/chembl#Phenotype> api:name "phenotype" .
<#targetClassificationsViewer> a api:Viewer ;
api:name "targetClassificationsViewer";
api:template "?ops_item skos:exactMatch ?chembl_target_uri ;
skos:exactMatch ?uniprot_target_uri .
?chembl_target_uri chembl:hasProteinClassification ?chembl_class ;
dcterms:title ?target_name ;
a ?target_type ;
void:inDataset <http://www.ebi.ac.uk/chembl> .
?uniprot_target_uri ops:hasGoComponent ?go_component ;
ops:hasGoFunction ?go_function ;
ops:hasGoProcess ?go_process ;
ops:hasEnzymeClassification ?enzyme_class ;
skos:prefLabel ?uniprot_name ;
void:inDataset ?dataset .
?chembl_class skos:prefLabel ?chembl_label ;
void:inDataset <http://www.ebi.ac.uk/chembl> .
?enzyme_class skos:prefLabel ?enzyme_label ;
void:inDataset <http://purl.uniprot.org/enzyme> .
?go_component skos:prefLabel ?go_c_label ;
void:inDataset <http://www.geneontology.org> .
?go_function skos:prefLabel ?go_f_label ;
void:inDataset <http://www.geneontology.org> .
?go_process skos:prefLabel ?go_p_label ;
void:inDataset <http://www.geneontology.org> .
<http://purl.uniprot.org/enzyme> skos:prefLabel 'Enzyme Classification' .
<http://www.ebi.ac.uk/chembl/target> skos:prefLabel 'ChEMBL Target Hierarchy' .
<http://www.geneontology.org> skos:prefLabel 'GeneOntology' .";
api:where
"{ GRAPH <http://www.ebi.ac.uk/chembl> {
?chembl_target_uri chembl:hasProteinClassification ?chembl_class ;
dcterms:title ?target_name ;
a ?target_type .
GRAPH ?g {
?chembl_class rdfs:label ?chembl_label
}
} } UNION {
GRAPH <http://www.openphacts.org/goa> {
{ GRAPH <http://purl.uniprot.org> {
?uniprot_target_uri uniprot:enzyme|uniprot:domain/uniprot:enzyme ?enzyme_class .
BIND(<http://purl.uniprot.org> AS ?dataset)
}
GRAPH ?g {
?enzyme_class skos:prefLabel ?enzyme_label
} } UNION
{ ?uniprot_target_uri obo:C ?go_component
BIND(<http://www.openphacts.org/goa> AS ?dataset)
GRAPH ?g {
?go_component rdfs:label ?go_c_label
} } UNION
{ ?uniprot_target_uri obo:F ?go_function
BIND(<http://www.openphacts.org/goa> AS ?dataset)
GRAPH ?g {
?go_function rdfs:label ?go_f_label
} } UNION
{ ?uniprot_target_uri obo:P ?go_process
BIND(<http://www.openphacts.org/goa> AS ?dataset)
GRAPH ?g {
?go_process rdfs:label ?go_p_label
} }
GRAPH <http://purl.uniprot.org> {
?uniprot_target_uri rdfs:label ?uniprot_name
}
}
}"