-
Notifications
You must be signed in to change notification settings - Fork 3
/
kge_smartapi_entry.yaml
235 lines (235 loc) · 7.57 KB
/
kge_smartapi_entry.yaml
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
openapi: 3.0.1
info:
version: 1.0.0
title: >-
${kg_name} Knowledge Graph eXchange File Set.
description: >-
${kg_description}
license:
name: "${license_name}"
url: "${license_url}"
termsOfService: "${terms_of_service}"
contact:
name: "${submitter_name}"
x-role: "Submitter"
email: "${submitter_email}"
x-translator:
component: "${translator_component}"
team:
- "${translator_team}"
x-kge:
id: "${kg_id}"
name: "${kg_name}"
servers:
- url: "${host}/archive/${kg_id}"
description: "KGE Archive Entry base url for ${kg_name}"
externalDocs:
description: >-
Documentation for the NCATS Biomedical Translator
Knowledge Graph Exchange (KGE) Archive
url: https://github.com/NCATSTranslator/Knowledge_Graph_Exchange_Registry
tags:
- name: translator
description: Designates a NCATS Biomedical Data Translator component API
- name: kge
description: Designates a Translator Knowledge Graph eXchange (KGE) Archive API
- name: content
description: Endpoints to access version specific KGE file set content (meta-)data.
paths:
/{kg_version}/meta_knowledge_graph:
get:
parameters:
- name: fileset_version
in: path
description: >-
Version of KGE File Set for a given knowledge graph.
required: true
schema:
type: string
tags:
- content
summary: Meta knowledge graph representation of this KGX knowledge graph.
operationId: metaKnowledgeGraph
responses:
'200':
description: >-
Returns meta knowledge graph representation
of this KGX knowledge graph.
content:
application/json:
schema:
$$ref: '#/components/schemas/MetaKnowledgeGraph'
'404':
description: >-
KGE File Set was not found.
content:
application/json:
schema:
type: string
'400':
description: >-
Bad request. The request is invalid according to this OpenAPI
schema OR KGX knowledge graph identifier is not just unrecognized.
content:
application/json:
schema:
type: string
/{kg_version}/download:
get:
parameters:
- name: fileset_version
in: path
description: >-
Version of KGE File Set of the knowledge graph being accessed.
required: true
schema:
type: string
tags:
- content
summary: Returns specified KGE File Set as a gzip compressed tar archive
operationId: downloadFileSet
responses:
'200':
description: >-
A KGE File Set as a gzip compressed tar archive of
KGX compliant files plus an associated metadata json file
content:
application/gzip:
schema:
type: string
format: binary
'404':
description: >-
KGE File Set or its requested version was not found.
content:
application/json:
schema:
type: string
'400':
description: >-
Bad request. Request is invalid according to this OpenAPI schema
content:
application/json:
schema:
type: string
components:
schemas:
BiolinkEntity:
description: >-
Compact URI (CURIE) for a Biolink class, biolink:NamedThing
or a child thereof. The CURIE must use the prefix 'biolink:'
followed by the PascalCase class name.
type: string
pattern: ^biolink:[A-Z][a-zA-Z]*$$
externalDocs:
description: Biolink model entities
url: https://biolink.github.io/biolink-model/docs/NamedThing.html
example: biolink:PhenotypicFeature
BiolinkPredicate:
description: >-
CURIE for a Biolink 'predicate' slot, taken from the Biolink slot
('is_a') hierarchy rooted in biolink:related_to (snake_case). This
predicate defines the Biolink relationship between the subject and
object nodes of a biolink:Association defining a knowledge graph edge.
type: string
pattern: ^biolink:[a-z][a-z_]*$$
externalDocs:
description: Biolink model predicates
url: https://biolink.github.io/biolink-model/docs/related_to.html
example: biolink:interacts_with
MetaKnowledgeGraph:
type: object
description: >-
Knowledge-map representation of this TRAPI web service.
properties:
nodes:
type: object
description: >-
Collection of node categories provided by this TRAPI web service,
indexed by Biolink class CURIEs.
additionalProperties:
$$ref: '#/components/schemas/MetaNode'
edges:
type: array
description: >-
List of edges/predicates provided by this TRAPI web service.
items:
$$ref: '#/components/schemas/MetaEdge'
minItems: 1
MetaNode:
type: object
description: >-
Description of a node category provided by this TRAPI web service.
properties:
id_prefixes:
type: array
description: >-
List of CURIE prefixes for the node category that this TRAPI web
service understands and accepts on the input.
items:
type: string
minItems: 1
example: [CHEMBL.COMPOUND, INCHIKEY]
count:
type: integer
description: >-
Total number of node instances of this node category known to this
TRAPI web service, or -1 if the number is not known.
count_by_source:
type: object
description: >-
Number of node instances by their source
additionalProperties:
type: integer
example:
ChEMBL: 1234
required:
- id_prefixes
additionalProperties: false
MetaEdge:
type: object
description: >-
Edge in a meta knowledge map describing relationship between a subject
Biolink class and an object Biolink class.
properties:
subject:
$$ref: '#/components/schemas/BiolinkEntity'
description: >-
Subject node category of this relationship edge.
example: biolink:ChemicalSubstance
predicate:
$$ref: '#/components/schemas/BiolinkPredicate'
description: >-
Biolink relationship between the subject and object categories.
example: biolink:affects
object:
$$ref: '#/components/schemas/BiolinkEntity'
description: >-
Object node category of this relationship edge.
example: biolink:Protein
relations:
type: array
description: >-
Low-level relations from the underlying source.
items:
type: string
example: [inhibits, activates]
count:
type: integer
description: >-
Total number of edge instances of this (subject, predicate,
object) triple known to this TRAPI web service, or -1 if the
number is not known.
count_by_source:
type: object
description: >-
Number of edge instances by their source.
additionalProperties:
type: integer
example:
ChEMBL: 1234
required:
- subject
- predicate
- object
additionalProperties: false