Skip to content

Commit

Permalink
Merge branch 'dev' into docs_reference_intro
Browse files Browse the repository at this point in the history
  • Loading branch information
odscjen authored Aug 4, 2023
2 parents f9e1cf5 + 231b843 commit 9be987a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 17 deletions.
4 changes: 2 additions & 2 deletions codelists/closed/frequency_distribution.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Code,Title,Description
poisson,Poisson,Data modelled using a poisson distribution.
negativeBinomial,Negative Binomial,Data modelled using a negative binomial distribution.
userDefined,User defined,Data modelled using a user defined distribution.
negative_binomial,Negative Binomial,Data modelled using a negative binomial distribution.
user_defined,User defined,Data modelled using a user defined distribution.
2 changes: 1 addition & 1 deletion codelists/closed/seasonality.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Code,Title
uniform,Uniform
userDefined,User defined
user_defined,User defined
2 changes: 2 additions & 0 deletions docs/about/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ This page lists changes to the Risk Data Library Standard.
- Removes `time_start`, `time_end`, `time_year` from `loss`.
- Removes `loss_loss_type`, `loss_metric` from `$defs`.
- [#127](https://github.com/GFDRR/rdl-standard/pull/127) - Inline `Exposure`, `Hazard_metadata`, `vulnerability`, `Vulnerability_function`, `Fragility_function`, `Occurence`, `Damage_to_loss_function`, `Engineering_demand_function`, `Probability`, `Empirical`, `Deterministic` and `Loss` and rearrange `$defs`
- [#163](https://github.com/GFDRR/rdl-standard/pull/163) - fix typos within rdl_schema_0.1.json

### Codelists

Expand All @@ -61,6 +62,7 @@ This page lists changes to the Risk Data Library Standard.
- [#121](https://github.com/GFDRR/rdl-standard/pull/121) - Create 'frequency_distribution.csv' and 'seasonality.csv'
- [#130](https://github.com/GFDRR/rdl-standard/pull/130) - 'hazard_type.csv' add descriptions and hazard category which aligns with UNDRR Hazard taxonomy, and update codes from abbreviations to human-readable words.
- [#134](https://github.com/GFDRR/rdl-standard/pull/134) - 'risk_data_type.csv', replace codes with lower-case versions.
- [#164](https://github.com/GFDRR/rdl-standard/pull/164) - replace camelCase codes with snake_case codes in 'frequency_distribution.csv' and 'seasonality.csv'

### Normative documentation

Expand Down
28 changes: 14 additions & 14 deletions schema/rdl_schema_0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@
"properties": {
"loss": {
"title": "Loss dataset metadata",
"description": "Metadata that is specific to datasets that describe the losses associated with people, infrastructure, housing, production capacities and other tangible human assets due to the occurence of one or more hazards.",
"description": "Metadata that is specific to datasets that describe the losses associated with people, infrastructure, housing, production capacities and other tangible human assets due to the occurrence of one or more hazards.",
"required": [
"hazard_type",
"cost",
Expand Down Expand Up @@ -851,7 +851,7 @@
"format": {
"title": "Format",
"type": "string",
"description": "A human-readable descripton of the file format of the resource, taken from the open [data formats codelist]((https://rdl-standard.readthedocs.io/en/{{version}}/references/codelists/#data_formats).",
"description": "A human-readable description of the file format of the resource, taken from the open [data formats codelist](https://rdl-standard.readthedocs.io/en/{{version}}/references/codelists/#data_formats).",
"codelist": "data_formats.csv",
"openCodelist": true,
"minLength": 1
Expand Down Expand Up @@ -1373,7 +1373,7 @@
"gazetteerEntries": {
"title": "Gazetteer entries",
"type": "array",
"description": "Entries from geographical indices or directories describing the geographical area. This field should be used to describe subnational coverage. Use of ISO 3166-2 is recommended.",
"description": "Entries from geographical indices or directories describing the geographical area. This field should be used to describe sub-national coverage. Use of ISO 3166-2 is recommended.",
"items": {
"$ref": "#/$defs/Gazetteer_entry"
},
Expand Down Expand Up @@ -1708,8 +1708,8 @@
"openCodelist": false,
"enum": [
"poisson",
"negativeBinomial",
"userDefined"
"negative_binomial",
"user_defined"
]
},
"seasonality": {
Expand All @@ -1720,7 +1720,7 @@
"openCodelist": false,
"enum": [
"uniform",
"userDefined"
"user_defined"
]
},
"calculation_method": {
Expand Down Expand Up @@ -1812,12 +1812,12 @@
"occurrence": {
"title": "Occurrence",
"type": "object",
"description": "The frequency or likelihood of the event happening within a given timeframe.",
"description": "The frequency or likelihood of the event happening within a given time frame.",
"properties": {
"probabilistic": {
"title": "Probabilistic frequency",
"type": "object",
"description": "How often the event is expected to occur. Can be Return Period and/or probability. Both fields are provided to allow entry of return period (most common term used across all hazards) and/or probability, which is commonly used for seismic hazard. Probability commonly refers to a probability within 1 year or 50 years, but may be relative to any duration - when `probability` is used, `span` must be specified. You should only use this object when `event_set.analysis_type` = `event_set.analysis_type` = 'probabilistic'",
"description": "How often the event is expected to occur. Can be return period and/or probability. Both fields are provided to allow entry of return period (most common term used across all hazards) and/or probability, which is commonly used for seismic hazard. Probability commonly refers to a probability within 1 year or 50 years, but may be relative to any duration - when `probability` is used, `span` must be specified. You should only use this object when `event_set.analysis_type` = `event_set.analysis_type` = 'probabilistic'",
"$ref": "#/$defs/Probabilistic",
"minProperties": 1
},
Expand All @@ -1827,7 +1827,7 @@
"description": "The period of time over which the event occurred and the associated return period (if any). You should only use this object when `event_set.analysis_type` = 'empirical'",
"properties": {
"temporal": {
"title": "Temporal occurance",
"title": "Temporal occurrence",
"type": "object",
"description": "The period of time over which the event occurred.",
"$ref": "#/$defs/Period",
Expand Down Expand Up @@ -1856,7 +1856,7 @@
"thresholds": {
"title": "Index thresholds",
"type": "array",
"description": "The thresholds used to classify the index value. Each threshold should be a seperate item. Where thresholds are identified by both a number and a descriptor, include the descriptor in brackets, e.g. 1 (low).",
"description": "The thresholds used to classify the index value. Each threshold should be a separate item. Where thresholds are identified by both a number and a descriptor, include the descriptor in brackets, e.g. 1 (low).",
"items": {
"type": "string",
"minLength": 1
Expand Down Expand Up @@ -1939,7 +1939,7 @@
},
"type": {
"title": "Cost type",
"description": "The type of the cost, from the closed [cost type codelist] (https://rdl-standard.readthedocs.io/en/{{version}}/reference/codelists/#cost_type).",
"description": "The type of the cost, from the closed [cost type codelist](https://rdl-standard.readthedocs.io/en/{{version}}/reference/codelists/#cost_type).",
"type": "string",
"codelist": "cost_type.csv",
"openCodelist": false,
Expand All @@ -1953,7 +1953,7 @@
"unit": {
"title": "Cost unit",
"type": "string",
"description": "The unit in which the cost is specified, from the closed [currency codelist] (https://rdl-standard.readthedocs.io/en/{{version}}/reference/codelists/#currency).",
"description": "The unit in which the cost is specified, from the closed [currency codelist](https://rdl-standard.readthedocs.io/en/{{version}}/reference/codelists/#currency).",
"codelist": "currency.csv",
"openCodelist": false,
"enum": [
Expand Down Expand Up @@ -2267,7 +2267,7 @@
"Probabilistic": {
"title": "Probabilistic frequency",
"type": "object",
"description": "How often the event is expected to occur. Can be Return Period and/or probability. Both fields are provided to allow entry of return period (most common term used across all hazards) and/or probability, which is commonly used for seismic hazard. Probability commonly refers to a probability within 1 year or 50 years, but may be relative to any duration - when `probability` is used, `span` must be specified. This object must only be used if `event_set.analysis_type` = 'probabilistic'",
"description": "How often the event is expected to occur. Can be return period and/or probability. Both fields are provided to allow entry of return period (most common term used across all hazards) and/or probability, which is commonly used for seismic hazard. Probability commonly refers to a probability within 1 year or 50 years, but may be relative to any duration - when `probability` is used, `span` must be specified. This object must only be used if `event_set.analysis_type` = 'probabilistic'",
"properties": {
"return_period": {
"title": "Return period",
Expand All @@ -2294,7 +2294,7 @@
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "The probability of the event occurring during the time period specified in `.span`, expressed as a number between 0 and 1, e.g. 0.1 represents a 10% likelihood of the event occuring."
"description": "The probability of the event occurring during the time period specified in `.span`, expressed as a number between 0 and 1, e.g. 0.1 represents a 10% likelihood of the event occurring."
},
"span": {
"title": "Probability span",
Expand Down

0 comments on commit 9be987a

Please sign in to comment.