Skip to content

Commit 6a8e0ab

Browse files
committed
Converted /concept_mapping to GET request and updated ontologies with Flood Index Model
1 parent 1ed0d59 commit 6a8e0ab

File tree

5 files changed

+37
-2
lines changed

5 files changed

+37
-2
lines changed

REST-Server/openapi_server/openapi/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ paths:
170170
- concepts
171171
x-openapi-router-controller: openapi_server.controllers.concepts_controller
172172
/concept_mapping:
173-
post:
173+
get:
174174
description: "Submit a concept name and optional type and receive an array of\
175175
\ model related to that concept. \n"
176176
operationId: concept_mapping_post

metadata/ontologies/MaaS-model-ontology.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@
7474
gridded rainfall time series for trend analysis and seasonal drought monitoring.
7575
name: CHIRPS
7676
polarity: 1.0
77+
- OntologyNode:
78+
examples:
79+
- 'Flood severity index: medium (2-yr flood, index=1),high (5-yr flood, index=2),
80+
and severe (20-yr flood, index=3), inferred fromthe GloFAS dataset. Thresholds
81+
were determined by fitting a Gumbel extreme value distribution to the yearly
82+
maxima in each grid cell over 1981-2017.'
83+
name: flood_index_model
84+
polarity: 1.0
7785
- OntologyNode:
7886
examples:
7987
- The Decision Support System for Agrotechnology Transfer (DSSAT) comprises dynamic

metadata/ontologies/MaaS-parameter-ontology.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@
133133
model: CHIRPS
134134
name: bbox
135135
polarity: 1.0
136+
- OntologyNode:
137+
examples:
138+
- Select the year of interest. 2008-2017 is available.
139+
model: flood_index_model
140+
name: year
141+
polarity: 1.0
136142
- OntologyNode:
137143
examples:
138144
- The number of pixel predictions DSSAT will make. Setting samples to 0 returns

metadata/ontologies/MaaS-variable-ontology.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,27 @@
8383
model: CHIRPS
8484
name: SPI
8585
polarity: 1.0
86+
- OntologyNode:
87+
examples:
88+
- The number of days for the given month where the flood severity index was medium
89+
(2-year flood)
90+
model: flood_index_model
91+
name: days_medium
92+
polarity: 1.0
93+
- OntologyNode:
94+
examples:
95+
- The number of days for the given month where the flood severity index was high
96+
(5-year flood)
97+
model: flood_index_model
98+
name: days_high
99+
polarity: 1.0
100+
- OntologyNode:
101+
examples:
102+
- The number of days for the given month where the flood severity index was severe
103+
(20-year flood)
104+
model: flood_index_model
105+
name: days_severe
106+
polarity: 1.0
86107
- OntologyNode:
87108
examples:
88109
- Harvested weight at harvest (kg/ha)

model_service_api.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ paths:
153153
schema:
154154
$ref: '#/components/schemas/AvailableConcepts'
155155
/concept_mapping:
156-
post:
156+
get:
157157
tags:
158158
- "concepts"
159159
summary: "Obtain an array of models related to a concept."

0 commit comments

Comments
 (0)