Skip to content

Commit

Permalink
rdl_schema_0.1.json: create Temporal object
Browse files Browse the repository at this point in the history
  • Loading branch information
odscjen committed Jun 26, 2023
1 parent 04e66ca commit 146b8e4
Showing 1 changed file with 73 additions and 42 deletions.
115 changes: 73 additions & 42 deletions schema/rdl_schema_0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@
"format": "uri"
},
"geo_coverage": {
"$ref": "#/definitions/common_iso",
"$ref": "#/$defs/common_iso",
"description": "ISO code(s) of countries covered by the dataset, comma-separated"
},
"publish": {
"type": "boolean",
"description": "Flag to show/hide dataset from website"
},
"license_code": {
"$ref": "#/definitions/common_license",
"$ref": "#/$defs/common_license",
"description": "Type of license"
},
"maintainer": {
Expand Down Expand Up @@ -154,11 +154,11 @@
],
"properties": {
"hazard_type": {
"$ref": "#/definitions/common_hazard_type",
"$ref": "#/$defs/common_hazard_type",
"description": "Type of hazard modelled"
},
"analysis_type": {
"$ref": "#/definitions/common_analysis_type",
"$ref": "#/$defs/common_analysis_type",
"description": "Type of analysis, probabilistic or deterministic"
},
"geo_area": {
Expand Down Expand Up @@ -196,11 +196,11 @@
],
"properties": {
"calculation_method": {
"$ref": "#/definitions/common_calc_method",
"$ref": "#/$defs/common_calc_method",
"description": "The methodology used for the calculation of this event"
},
"frequency_type": {
"$ref": "#/definitions/common_frequency_type",
"$ref": "#/$defs/common_frequency_type",
"description": "Frequency representation type"
},
"return_period": {
Expand All @@ -222,11 +222,11 @@
"description": "The duration (years) of the period used to specify either the frequency or the occurrence_probability"
},
"trigger_hazard_type": {
"$ref": "#/definitions/common_hazard_type",
"$ref": "#/$defs/common_hazard_type",
"description": "Hazard type that triggered the event"
},
"trigger_process_type": {
"$ref": "#/definitions/common_process_type",
"$ref": "#/$defs/common_process_type",
"description": "Process type that triggered the event"
},
"description": {
Expand All @@ -239,11 +239,11 @@
"type": "object",
"properties": {
"process_type": {
"$ref": "#/definitions/common_process_type",
"$ref": "#/$defs/common_process_type",
"description": "Type of hazard process modelled"
},
"imt": {
"$ref": "#/definitions/im_code",
"$ref": "#/$defs/im_code",
"description": "Hazard intensity measure unit"
},
"data_uncertainty": {
Expand Down Expand Up @@ -276,15 +276,15 @@
"properties": {
"category": {
"description": "Type of asset",
"$ref": "#/definitions/common_exp_category"
"$ref": "#/$defs/common_exp_category"
},
"occupancy": {
"description": "Destination of use of the asset",
"$ref": "#/definitions/common_exp_occupancy"
"$ref": "#/$defs/common_exp_occupancy"
},
"occupancy_time": {
"description": "Period of occupancy, if appliable (e.g. Population)",
"$ref": "#/definitions/common_occupancy_time"
"$ref": "#/$defs/common_occupancy_time"
},
"taxonomy_source": {
"type": "string",
Expand All @@ -310,7 +310,7 @@
"properties": {
"val_type": {
"description": "Type of asset value",
"$ref": "#/definitions/common_exp_val_type"
"$ref": "#/$defs/common_exp_val_type"
},
"val_unit": {
"type": "string",
Expand All @@ -334,39 +334,39 @@
"properties": {
"hazard_type_primary": {
"description": "Primary hazard involved",
"$ref": "#/definitions/common_hazard_type"
"$ref": "#/$defs/common_hazard_type"
},
"hazard_type_secondary": {
"description": "Secondary hazard involved",
"$ref": "#/definitions/common_hazard_type"
"$ref": "#/$defs/common_hazard_type"
},
"process_type_primary": {
"description": "Primary process involved",
"$ref": "#/definitions/common_process_type"
"$ref": "#/$defs/common_process_type"
},
"process_type_secondary": {
"description": "Secondary process involved",
"$ref": "#/definitions/common_process_type"
"$ref": "#/$defs/common_process_type"
},
"frequency_type": {
"description": "Frequency representation type",
"$ref": "#/definitions/common_frequency_type"
"$ref": "#/$defs/common_frequency_type"
},
"imt": {
"description": "Hazard intensity measure unit",
"$ref": "#/definitions/im_code"
"$ref": "#/$defs/im_code"
},
"category": {
"description": "Type of asset",
"$ref": "#/definitions/common_exp_category"
"$ref": "#/$defs/common_exp_category"
},
"occupancy": {
"description": "Type of occupancy to which function applies",
"$ref": "#/definitions/common_exp_occupancy"
"$ref": "#/$defs/common_exp_occupancy"
},
"val_type": {
"description": "Type of asset value",
"$ref": "#/definitions/common_exp_val_type"
"$ref": "#/$defs/common_exp_val_type"
},
"val_unit": {
"type": "string",
Expand All @@ -382,15 +382,15 @@
},
"impact_type": {
"description": "Type of impact",
"$ref": "#/definitions/common_impact_type"
"$ref": "#/$defs/common_impact_type"
},
"scale_applicability": {
"description": "Administrative level of application",
"$ref": "#/definitions/common_aggregation_type"
"$ref": "#/$defs/common_aggregation_type"
},
"country_tranferability": {
"description": "ISOa3 list of countries in which the model could be applied",
"$ref": "#/definitions/common_iso"
"$ref": "#/$defs/common_iso"
},
"local_applicability": {
"type": "string",
Expand All @@ -401,23 +401,23 @@
"description": "Details about applicability to different areas"
},
"function_type": {
"$ref": "#/definitions/vulnerability_function_type",
"$ref": "#/$defs/vulnerability_function_type",
"description": "Type of function"
},
"calculation_method": {
"$ref": "#/definitions/common_calc_method",
"$ref": "#/$defs/common_calc_method",
"description": "The methodology used for the calculation of the function"
},
"approach": {
"$ref": "#/definitions/f_subtype",
"$ref": "#/$defs/f_subtype",
"description": "Type of methodological approach"
},
"f_relationship": {
"$ref": "#/definitions/vulnerability_f_relationship",
"$ref": "#/$defs/vulnerability_f_relationship",
"description": "Type of relationship: Mathematical or Discrete"
},
"f_math": {
"$ref": "#/definitions/vulnerability_f_math",
"$ref": "#/$defs/vulnerability_f_math",
"description": "Parametric or bespoke"
}
}
Expand Down Expand Up @@ -486,11 +486,11 @@
"type": "object",
"properties": {
"hazard_type": {
"$ref": "#/definitions/common_hazard_type",
"$ref": "#/$defs/common_hazard_type",
"description": "Type of hazard modelled"
},
"process_type": {
"$ref": "#/definitions/common_process_type",
"$ref": "#/$defs/common_process_type",
"description": "Type of hazard process modelled"
},
"time_start": {
Expand All @@ -508,39 +508,39 @@
"description": "General reference year to which the scenario refers to (e.g. '2050')"
},
"occupancy": {
"$ref": "#/definitions/common_exp_occupancy",
"$ref": "#/$defs/common_exp_occupancy",
"description": "Destination of use of the asset"
},
"category": {
"$ref": "#/definitions/common_exp_category",
"$ref": "#/$defs/common_exp_category",
"description": "Exposure category"
},
"val_type": {
"$ref": "#/definitions/common_exp_val_type",
"$ref": "#/$defs/common_exp_val_type",
"description": "Element on which loss insist"
},
"impact": {
"$ref": "#/definitions/common_impact_type",
"$ref": "#/$defs/common_impact_type",
"description": "Type of impact"
},
"loss_type": {
"$ref": "#/definitions/loss_loss_type",
"$ref": "#/$defs/loss_loss_type",
"description": "Type of loss"
},
"frequency": {
"$ref": "#/definitions/common_frequency_type",
"$ref": "#/$defs/common_frequency_type",
"description": "Frequency representation type"
},
"return_period": {
"type": "string",
"description": "Probability of occurrence expressed as return periods list (10, 100, 1000) or range (10-1000)"
},
"calculation_method": {
"$ref": "#/definitions/common_calc_method",
"$ref": "#/$defs/common_calc_method",
"description": "The methodology used for the calculation of this event"
},
"metric": {
"$ref": "#/definitions/loss_metric",
"$ref": "#/$defs/loss_metric",
"description": "Type of loss metric"
},
"val_unit": {
Expand Down Expand Up @@ -569,7 +569,7 @@
}
}
],
"definitions": {
"$defs": {
"common_aggregation_type": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -1025,6 +1025,37 @@
"Judgement",
"Hybrid"
]
},
"Temporal": {
"title": "Temporal coverage",
"type": "object",
"description": "The temporal period that the dataset covers.",
"properties": {
"start": {
"title": "Start date",
"type": "string",
"description": "The date on which the period begins. This can refer to a year (YYYY), a month (YYYY-MM) or a day (YYYY-MM-DD) as appropriate for the dataset.",
"format": "date-time"
},
"end": {
"title": "End date",
"type": "string",
"description": "The date on which the period ends. This can refer to a year (YYYY), a month (YYYY-MM) or a day (YYYY-MM-DD) as appropriate for the dataset.",
"format": "date-time"
},
"duration": {
"title": "Duration",
"type": "string",
"description": "The total number of time periods covered using ISO 8601 duration format, e.g. 50 years is given as 'P50Y'.",
"format": "date-time"
},
"year": {
"title": "Reference year",
"type": "integer",
"description": "A general reference year to which the modelled scenario(s) refers (e.g. '2050')"
}
},
"minProperties": 1
}
}
}

0 comments on commit 146b8e4

Please sign in to comment.