{
  "$schema": "https://datapackage.org/profiles/2.0/tableschema.json",
  "title": "想定区域",
  "description": "想定される災害の区域です。たとえば、洪水の想定浸水深の 1 つの区分にあたる範囲です。国、都道府県、市町村が公開するハザードマップのデータを表します。浸水深や浸水継続時間は、出典ごとに異なるランクの番号ではなく、区分の下限と上限（メートル、時間）で表します。出典の書き方は rankLabel にそのまま残します。属性をまたぐ他の規則は JSON Schema にあります：https://models.geolonia.com/schema/smartmap/HazardArea/v0.1.0.json。",
  "x-type": "HazardArea",
  "x-typeIri": "https://models.geolonia.com/ns/smartmap#HazardArea",
  "x-version": "0.1.0",
  "x-schema": "https://models.geolonia.com/schema/smartmap/HazardArea/v0.1.0.json",
  "x-context": "https://models.geolonia.com/context/smartmap/v0.jsonld",
  "x-translations": {
    "en": {
      "title": "Hazard area",
      "description": "An area of an assumed hazard, such as the area of one band of an assumed flood depth, from the hazard map data that the national government, prefectures and municipalities publish. Depth and duration are given as the band's lower and upper bounds (metres, hours), not as rank numbers that differ between sources; the source's own wording stays in rankLabel. More rules that span attributes are in the JSON Schema: https://models.geolonia.com/schema/smartmap/HazardArea/v0.1.0.json."
    }
  },
  "fields": [
    {
      "name": "id",
      "title": "エンティティの ID",
      "description": "エンティティの ID（URI。例：urn:ngsi-ld:HazardArea:001）",
      "type": "string",
      "constraints": {
        "required": true,
        "unique": true
      },
      "x-translations": {
        "en": {
          "title": "Entity id",
          "description": "Entity id: a URI, for example urn:ngsi-ld:HazardArea:001"
        }
      }
    },
    {
      "name": "hazardType",
      "title": "想定される災害の種類",
      "description": "想定される災害の種類：flood（洪水）、inlandFlood（内水氾濫）、tsunami（津波）、stormSurge（高潮）、houseCollapseFlow（家屋倒壊等氾濫想定区域・氾濫流）、houseCollapseErosion（家屋倒壊等氾濫想定区域・河岸侵食）",
      "type": "string",
      "x-iri": "https://models.geolonia.com/ns/smartmap#hazardType",
      "constraints": {
        "required": true,
        "enum": [
          "flood",
          "inlandFlood",
          "tsunami",
          "stormSurge",
          "houseCollapseFlow",
          "houseCollapseErosion"
        ]
      },
      "x-translations": {
        "en": {
          "title": "The kind of assumed hazard",
          "description": "The kind of assumed hazard: flood, inlandFlood (inland flooding), tsunami, stormSurge, houseCollapseFlow (area where houses may collapse, from flood flow), houseCollapseErosion (area where houses may collapse, from riverbank erosion)"
        }
      }
    },
    {
      "name": "scenario",
      "title": "洪水の想定の前提となる降雨",
      "description": "洪水の想定の前提となる降雨：plannedScale（計画規模）か maximumAssumed（想定最大規模）",
      "type": "string",
      "x-iri": "https://models.geolonia.com/ns/smartmap#scenario",
      "constraints": {
        "enum": [
          "plannedScale",
          "maximumAssumed"
        ]
      },
      "x-translations": {
        "en": {
          "description": "For a flood, the rainfall the assumption is based on: plannedScale (計画規模) or maximumAssumed (想定最大規模)"
        }
      }
    },
    {
      "name": "depthFrom",
      "title": "浸水深の区分の下限",
      "description": "浸水深の区分の下限（メートル、この値を含む）",
      "type": "number",
      "x-iri": "https://models.geolonia.com/ns/smartmap#depthFrom",
      "constraints": {
        "minimum": 0
      },
      "x-translations": {
        "en": {
          "title": "Lower bound of the depth band, in metres",
          "description": "Lower bound of the depth band, in metres (included)"
        }
      }
    },
    {
      "name": "depthTo",
      "title": "浸水深の区分の上限",
      "description": "浸水深の区分の上限（メートル、この値を含まない）。最も深い区分では省きます。",
      "type": "number",
      "x-iri": "https://models.geolonia.com/ns/smartmap#depthTo",
      "constraints": {
        "exclusiveMinimum": 0
      },
      "x-translations": {
        "en": {
          "title": "Upper bound of the depth band, in metres",
          "description": "Upper bound of the depth band, in metres (not included). Left out for the deepest band"
        }
      }
    },
    {
      "name": "durationFrom",
      "title": "浸水継続時間の区分の下限",
      "description": "浸水継続時間の区分の下限（時間、この値を含む）",
      "type": "number",
      "x-iri": "https://models.geolonia.com/ns/smartmap#durationFrom",
      "constraints": {
        "minimum": 0
      },
      "x-translations": {
        "en": {
          "description": "Lower bound of the band of the flood duration, in hours (included)"
        }
      }
    },
    {
      "name": "durationTo",
      "title": "浸水継続時間の区分の上限",
      "description": "浸水継続時間の区分の上限（時間、この値を含まない）。最も長い区分では省きます。",
      "type": "number",
      "x-iri": "https://models.geolonia.com/ns/smartmap#durationTo",
      "constraints": {
        "exclusiveMinimum": 0
      },
      "x-translations": {
        "en": {
          "description": "Upper bound of the band of the flood duration, in hours (not included). Left out for the longest band"
        }
      }
    },
    {
      "name": "rankLabel",
      "title": "出典での区分の書き方をそのまま",
      "description": "出典での区分の書き方をそのまま（例：「0.5m以上3.0m未満」「（0.3m未満）」「3」）",
      "type": "string",
      "x-iri": "https://models.geolonia.com/ns/smartmap#rankLabel",
      "x-translations": {
        "en": {
          "description": "The band or class as the source writes it, unchanged (for example 0.5m以上3.0m未満, （0.3m未満）, or 3)"
        }
      }
    },
    {
      "name": "riverName",
      "title": "洪水の想定の対象の河川",
      "description": "洪水の想定の対象の河川",
      "type": "string",
      "x-iri": "https://models.geolonia.com/ns/smartmap#riverName",
      "x-translations": {
        "en": {
          "title": "The river the flood assumption is for",
          "description": "The river the flood assumption is for"
        }
      }
    },
    {
      "name": "publisher",
      "title": "想定を公表した機関",
      "description": "想定を公表した機関（例：国土交通省、香川県）",
      "type": "string",
      "x-iri": "https://models.geolonia.com/ns/smartmap#publisher",
      "x-translations": {
        "en": {
          "description": "The public body that published the assumption (for example the Ministry of Land, Infrastructure, Transport and Tourism, or a prefecture)"
        }
      }
    },
    {
      "name": "dateIssued",
      "title": "想定が公表された日",
      "description": "想定が公表された日",
      "type": "date",
      "x-iri": "https://models.geolonia.com/ns/smartmap#dateIssued",
      "x-translations": {
        "en": {
          "title": "When the assumption was published",
          "description": "When the assumption was published"
        }
      }
    },
    {
      "name": "localGovernmentCode",
      "title": "この区域を地図に表示する自治体の全国地方公共団体コード",
      "description": "この区域を地図に表示する自治体の全国地方公共団体コード（検査数字を含む 6 桁）",
      "type": "string",
      "x-iri": "https://models.geolonia.com/ns/smartmap#localGovernmentCode",
      "constraints": {
        "pattern": "[0-9]{6}"
      },
      "x-translations": {
        "en": {
          "title": "Local government code",
          "description": "Local government code (6 digits including the check digit) of the municipality whose map shows the area"
        }
      }
    },
    {
      "name": "longitude",
      "title": "location の経度",
      "description": "location の経度（WGS 84、十進の度）。点なら経度と緯度を入れます。点以外の形は、GeoJSON のジオメトリを location に入れ、経度と緯度は空にします。",
      "type": "number",
      "x-iri": "https://uri.etsi.org/ngsi-ld/location",
      "constraints": {
        "minimum": -180,
        "maximum": 180
      },
      "x-translations": {
        "en": {
          "title": "Longitude of location in WGS 84",
          "description": "Longitude of location in WGS 84 (decimal degrees). For a point, fill longitude and latitude. For any other shape, put the GeoJSON geometry in location and leave them empty."
        }
      }
    },
    {
      "name": "latitude",
      "title": "location の緯度",
      "description": "location の緯度（WGS 84、十進の度）。点なら経度と緯度を入れます。点以外の形は、GeoJSON のジオメトリを location に入れ、経度と緯度は空にします。",
      "type": "number",
      "x-iri": "https://uri.etsi.org/ngsi-ld/location",
      "constraints": {
        "minimum": -90,
        "maximum": 90
      },
      "x-translations": {
        "en": {
          "title": "Latitude of location in WGS 84",
          "description": "Latitude of location in WGS 84 (decimal degrees). For a point, fill longitude and latitude. For any other shape, put the GeoJSON geometry in location and leave them empty."
        }
      }
    },
    {
      "name": "location",
      "title": "区域",
      "description": "区域。Polygon か MultiPolygon です。location の GeoJSON ジオメトリ（Polygon、MultiPolygon）。点以外の形のときに使います。",
      "type": "geojson",
      "x-iri": "https://uri.etsi.org/ngsi-ld/location",
      "x-translations": {
        "en": {
          "title": "The area, as a Polygon or MultiPolygon",
          "description": "The area, as a Polygon or MultiPolygon. location as a GeoJSON geometry (Polygon, MultiPolygon), for a shape that is not a point."
        }
      }
    }
  ],
  "primaryKey": [
    "id"
  ],
  "missingValues": [
    ""
  ]
}
