-
Notifications
You must be signed in to change notification settings - Fork 7
/
03_06_targetClassificationsForCompounds.ttl
180 lines (167 loc) · 8.4 KB
/
03_06_targetClassificationsForCompounds.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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
@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 _:targetOrganism ;
api:variable chembl:standardType;
api:variable chembl:standardValue ;
api:variable chembl:hasQUDT ;
api:variable chembl:standardRelation ;
api:variable chembl:organismName ;
api:variable chembl:pChembl ;
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 "Classification of Compounds for Target" ;
api:description "The hierarchy classes for the different Compounds that interact with a given Target. Currently only the ChEBI Ontology is supported. " ;
api:itemTemplate "{uri}" ;
api:variable <http://www.ebi.ac.uk/chebi> ;
api:variable <http://www.openphacts.org/units/MicrogramPerMilliliter> ;
api:variable <http://www.openphacts.org/units/Millimolar> ;
api:variable <http://www.openphacts.org/units/Nanomolar> ;
api:variable <http://qudt.org/vocab/unit#Percent> ;
api:variable <http://www.openphacts.org/units/MilligramPerMilliliter> ;
api:variable <http://qudt.org/vocab/unit#MinuteTime> ;
api:variable <http://qudt.org/vocab/unit#Gram> ;
api:variable <http://www.openphacts.org/units/NanogramPerMilliliter> ;
api:variable <http://qudt.org/vocab/unit#Hour> ;
api:variable <http://www.openphacts.org/units/PicogramPerMilliliter> ;
api:variable <http://www.openphacts.org/units/Micromolar> ;
api:variable <http://www.openphacts.org/units/Molar> ;
api:variable <http://www.openphacts.org/units/MilligramPerDeciliter> ;
api:variable <http://qudt.org/vocab/unit#Day> ;
api:variable <http://qudt.org/vocab/unit#SecondTime> ;
api:variable <http://www.openphacts.org/units/Picomolar> ;
api:variable <http://qudt.org/vocab/unit#Centimeter> ;
api:variable <http://www.openphacts.org/units/GramPerLiter> ;
api:variable <http://qudt.org/vocab/unit#InternationalUnitPerLiter> ;
api:variable <http://qudt.org/vocab/unit#Kilogram> ;
api:variable <http://qudt.org/vocab/unit#DegreeCelsius> ;
api:variable <http://qudt.org/vocab/unit#MilliSecond> ;
api:variable <http://qudt.org/vocab/unit#Millimeter> ;
api:variable <http://qudt.org/vocab/unit#Micrometer> ;
api:variable <http://qudt.org/vocab/unit#Liter> ;
api:uriTemplate "/target/classificationsForCompounds?uri={uri}" ;
api:exampleRequestPath "/target/classificationsForCompounds?uri=http%3A%2F%2Fpurl.uniprot.org%2Funiprot%2FP00918" ;
api:exampleRequestPath "/target/classificationsForCompounds?uri=http%3A%2F%2Fpurl.uniprot.org%2Funiprot%2FP00918&activity_type=IC50" ;
api:viewer <#targetClassForCompoundViewer> ;
api:defaultViewer <#targetClassForCompoundViewer> ] .
<http://www.ebi.ac.uk/chebi> api:label "ChEBI Ontoology" .
<http://www.ebi.ac.uk/chebi> api:name "chebi" .
<#input> api:name "uri" ;
api:label "uri";
api:value "A target URI. e.g.: http://purl.uniprot.org/uniprot/P00918" ;
rdfs:range rdfs:Resource .
chembl:organismName api:name "assay_organism" ;
api:label "assay_organism" ;
api:value "A literal organism in ChEMBL." ;
api:filterVariable "?assay";
a rdf:Property .
_:targetOrganism api:name "target_organism" ;
api:label "target_organism" ;
api:value "A literal target organism in ChEMBL." ;
api:filterVariable "?chembl_target_uri";
rdfs:subPropertyOf chembl:organismName ;
a rdf:Property .
chembl:standardType api:name "activity_type" ;
api:label "activity_type" ;
api:filterVariable "?activity";
api:value "One of the activity types listed at /pharmacology/filters/activities" ;
a rdf:Property .
chembl:hasQUDT api:name "activity_unit" ;
api:label "activity_unit" ;
api:value "The unit in which {activity_value} is given. See /pharmacology/filters/units/{activity_type} for allowed valued. For e.g. IC50: /pharmacology/filters/units/IC50" ;
api:filterVariable "?activity";
a rdf:Property .
chembl:standardValue api:name "activity_value" ;
api:label "activity_value" ;
api:value "Return activity values equal to this number." ;
api:filterVariable "?activity";
a rdf:Property .
chembl:standardRelation api:name "activity_relation" ;
api:label "activity_relation" ;
api:value ">, >=,= , < , <=" ;
api:filterVariable "?activity";
a rdf:Property .
chembl:pChembl api:name "pChembl" ;
api:label "pChembl" ;
api:filterVariable "?activity";
api:value "Return activities with a pChembl value equal to this number." ;
a rdf:Property .
<http://www.openphacts.org/units/MicrogramPerMilliliter> api:name "microgram_per_milliliter" .
<http://www.openphacts.org/units/Millimolar> api:name "millimolar" .
<http://www.openphacts.org/units/Nanomolar> api:name "nanomolar" .
<http://qudt.org/vocab/unit#Percent> api:name "percent" .
<http://www.openphacts.org/units/MilligramPerMilliliter> api:name "milligram_per_milliliter" .
<http://qudt.org/vocab/unit#MinuteTime> api:name "minute_time" .
<http://qudt.org/vocab/unit#Gram> api:name "gram" .
<http://www.openphacts.org/units/NanogramPerMilliliter> api:name "nanogram_per_milliliter" .
<http://qudt.org/vocab/unit#Hour> api:name "hour" .
<http://www.openphacts.org/units/PicogramPerMilliliter> api:name "picogram_per_milliliter" .
<http://www.openphacts.org/units/Micromolar> api:name "micromolar" .
<http://www.openphacts.org/units/Molar> api:name "molar" .
<http://www.openphacts.org/units/MilligramPerDeciliter> api:name "milligram_per_deciliter" .
<http://qudt.org/vocab/unit#Day> api:name "day" .
<http://qudt.org/vocab/unit#SecondTime> api:name "second_time" .
<http://www.openphacts.org/units/Picomolar> api:name "picomolar" .
<http://qudt.org/vocab/unit#Centimeter> api:name "centimeter" .
<http://www.openphacts.org/units/GramPerLiter> api:name "gram_per_liter" .
<http://qudt.org/vocab/unit#InternationalUnitPerLiter> api:name "international_unit_per_liter" .
<http://qudt.org/vocab/unit#Kilogram> api:name "kilogram" .
<http://qudt.org/vocab/unit#DegreeCelsius> api:name "degree_celsius" .
<http://qudt.org/vocab/unit#MilliSecond> api:name "milli_second" .
<http://qudt.org/vocab/unit#Millimeter> api:name "millimeter" .
<http://qudt.org/vocab/unit#Micrometer> api:name "micrometer" .
<http://qudt.org/vocab/unit#Liter> api:name "liter" .
<#targetClassForCompoundViewer> a api:Viewer ;
api:name "targetClassForCompoundViewer";
api:template
"?ops_item skos:exactMatch ?chembl_target_uri ;
skos:exactMatch ?cw_target_uri .
?chembl_target_uri ops:interactsWithMoleculeOfClass ?chebi_class ;
ops:interactsWithMoleculeOfClass ?chebi_other_class ;
void:inDataset <http://www.ebi.ac.uk/chembl> .
?cw_target_uri skos:prefLabel ?cw_label .
?chebi_class skos:prefLabel ?chebi_label ;
void:inDataset <http://www.ebi.ac.uk/chebi> .
?chebi_other_class skos:prefLabel ?chebi_other_label ;
ops:classificationType ?chebi_class_type ;
void:inDataset <http://www.ebi.ac.uk/chebi> .
?chebi_class_type skos:prefLabel ?chebi_class_type_label .
<http://www.ebi.ac.uk/chebi> skos:prefLabel 'ChEBI Ontology' .";
api:where
" GRAPH <http://www.ebi.ac.uk/chebi> {
?chebi_compound rdfs:subClassOf ?chebi_class .
?chebi_class rdfs:label ?chebi_label
OPTIONAL { ?chebi_compound rdfs:subClassOf _:bNode .
_:bNode owl:someValuesFrom ?chebi_other_class ;
owl:onProperty ?chebi_class_type .
?chebi_other_class rdfs:label ?chebi_other_label .
?chebi_class_type rdfs:label ?chebi_class_type_label }
}
GRAPH <http://www.conceptwiki.org> {
?cw_target_uri skos:prefLabel ?cw_label
}
GRAPH <http://www.ebi.ac.uk/chembl> {
?assay chembl:hasTarget ?chembl_target_uri .
?activity chembl:hasAssay ?assay ;
chembl:hasMolecule/skos:exactMatch ?chebi_compound .
}"