{
  "$schema": "https://datapackage.org/profiles/2.0/tableschema.json",
  "title": "指定緊急避難場所",
  "description": "指定緊急避難場所（災害対策基本法第 49 条の 4）1 か所のデータです。自治体が「指定緊急避難場所一覧」（自治体標準オープンデータセット 03）として公開する一覧の 1 行にあたり、名称や所在地などの基本情報を持ちます。指定は災害の種別ごとです。開設状況や避難者数は、このモデルではなく EvacuationShelter で表します。externalSiteId、nationalShelterId のどれか 1 つは必須です。",
  "x-type": "EvacuationSite",
  "x-typeIri": "https://datamodels.jp/ns/disaster/EvacuationSite",
  "x-version": "1.0.0",
  "x-schema": "https://datamodels.jp/schema/disaster/EvacuationSite/v1.0.0.json",
  "x-context": "https://datamodels.jp/context/disaster/v1.jsonld",
  "x-translations": {
    "en": {
      "title": "Designated emergency evacuation site",
      "description": "One designated emergency evacuation site (指定緊急避難場所, Basic Act on Disaster Management Art. 49-4), one row of the list a municipality publishes as 自治体標準オープンデータセット dataset 03. Sites are designated per hazard. Opening status and evacuee counts are not here (that is EvacuationShelter). At least one of externalSiteId, nationalShelterId is needed."
    }
  },
  "fields": [
    {
      "name": "id",
      "title": "エンティティの ID",
      "description": "エンティティの ID（URI。例：urn:ngsi-ld:EvacuationSite:001）",
      "type": "string",
      "constraints": {
        "required": true,
        "unique": true
      },
      "x-translations": {
        "en": {
          "title": "Entity id",
          "description": "Entity id: a URI, for example urn:ngsi-ld:EvacuationSite:001"
        }
      }
    },
    {
      "name": "name",
      "title": "指定緊急避難場所の名称",
      "description": "指定緊急避難場所の名称（通称や建物の名前）",
      "type": "string",
      "x-iri": "https://uri.etsi.org/ngsi-ld/name",
      "constraints": {
        "required": true
      },
      "x-translations": {
        "en": {
          "title": "Name of the site",
          "description": "Name of the site (its common name or the building's name)"
        }
      }
    },
    {
      "name": "nameKana",
      "title": "名称のカナ表記",
      "description": "名称のカナ表記（全角カタカナ）",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/disaster/nameKana",
      "x-translations": {
        "en": {
          "title": "Name in full-width katakana",
          "description": "Name in full-width katakana"
        }
      }
    },
    {
      "name": "nameEn",
      "title": "名称の英語表記",
      "description": "名称の英語表記",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/disaster/nameEn",
      "x-translations": {
        "en": {
          "title": "Name in English",
          "description": "Name in English"
        }
      }
    },
    {
      "name": "externalSiteId",
      "title": "自治体の指定緊急避難場所一覧での ID",
      "description": "自治体の指定緊急避難場所一覧での ID（自治体の中で一意）。localGovernmentCode と合わせると全国で一意になります。nationalShelterId が無いときは必須です（国土地理院のデータには自治体の ID がありません）。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/disaster/externalSiteId",
      "x-translations": {
        "en": {
          "title": "The site's ID in the municipality's list",
          "description": "The site's ID in the municipality's list (unique within the municipality). Together with localGovernmentCode it is unique nationwide. Required when nationalShelterId is not given (GSI's data has no municipal ID)"
        }
      }
    },
    {
      "name": "nationalShelterId",
      "title": "全国共通避難所・避難場所 ID",
      "description": "全国共通避難所・避難場所 ID（14 文字。国土地理院の指定緊急避難場所データの「共通 ID」）。このモデルで使えるのは、種別コード 20（指定緊急避難場所）だけです。採番されていなければ省きます。ID の構造と出典は、EvacuationShelter の対応表「全国共通避難所・避難場所 ID」（gsi-national-shelter-id）にまとめています。externalSiteId が無いときは必須です。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/disaster/nationalShelterId",
      "constraints": {
        "pattern": "E[0-9]{10}20[1-9A-Za-z]"
      },
      "x-translations": {
        "en": {
          "description": "The nationwide common shelter/evacuation-site ID (14 characters, the '共通ID' of GSI's designated emergency evacuation site data). Only type code 20 (designated emergency evacuation site) is valid on this model. Leave it out when none is assigned. Its structure and source are described once, in EvacuationShelter's mapping 'nationwide common shelter/evacuation-site ID' (gsi-national-shelter-id). Required when externalSiteId is not given"
        }
      }
    },
    {
      "name": "localGovernmentCode",
      "title": "避難場所を指定し、一覧を公開する自治体の全国地方公共団体コード",
      "description": "避難場所を指定し、一覧を公開する自治体の全国地方公共団体コード（検査数字を含む 6 桁）",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/common/localGovernmentCode",
      "constraints": {
        "required": true,
        "pattern": "\\d{6}"
      },
      "x-translations": {
        "en": {
          "title": "Local government code",
          "description": "Local government code (6 digits including the check digit) of the municipality that designates the site and publishes the list"
        }
      }
    },
    {
      "name": "address.addressCountry",
      "title": "国",
      "description": "国。常に JP です。address の一部。",
      "type": "string",
      "x-iri": "https://schema.org/addressCountry",
      "constraints": {
        "enum": [
          "JP"
        ]
      },
      "x-translations": {
        "en": {
          "title": "Country",
          "description": "Country. Always JP. Part of address."
        }
      }
    },
    {
      "name": "address.postalCode",
      "title": "郵便番号",
      "description": "郵便番号（7 桁。ハイフンの有無は問いません）。address の一部。",
      "type": "string",
      "x-iri": "https://schema.org/postalCode",
      "constraints": {
        "pattern": "\\d{3}-?\\d{4}"
      },
      "x-translations": {
        "en": {
          "description": "Postal code, 7 digits with or without hyphen. Part of address."
        }
      }
    },
    {
      "name": "address.addressRegion",
      "title": "都道府県名",
      "description": "都道府県名。address の一部。",
      "type": "string",
      "x-iri": "https://schema.org/addressRegion",
      "x-translations": {
        "en": {
          "title": "Prefecture name",
          "description": "Prefecture name. Part of address."
        }
      }
    },
    {
      "name": "address.addressLocality",
      "title": "市区町村名",
      "description": "市区町村名。政令指定都市は、市名と区名を含みます（例：横浜市中区）。address の一部。",
      "type": "string",
      "x-iri": "https://schema.org/addressLocality",
      "x-translations": {
        "en": {
          "title": "Municipality name",
          "description": "Municipality name. For designated cities includes the ward (e.g. 横浜市中区). Part of address."
        }
      }
    },
    {
      "name": "address.machiaza",
      "title": "町字",
      "description": "町字（町名、大字、字）。丁目は含めません。address の一部。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/common/machiaza",
      "x-translations": {
        "en": {
          "title": "Town or district name",
          "description": "Town or district name (町字: 町名, 大字, 字), without chome. Part of address."
        }
      }
    },
    {
      "name": "address.chome",
      "title": "丁目",
      "description": "丁目。数字だけで書きます（「一丁目」なら \"1\"）。address の一部。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/common/chome",
      "constraints": {
        "pattern": "\\d+"
      },
      "x-translations": {
        "en": {
          "title": "Chome",
          "description": "Chome (丁目), digits only (\"一丁目\" → \"1\"). Part of address."
        }
      }
    },
    {
      "name": "address.banchi",
      "title": "番地",
      "description": "番地。住居表示を実施している区域では街区符号、それ以外では枝番を含む地番全体です（例：4638-1）。address の一部。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/common/banchi",
      "x-translations": {
        "en": {
          "title": "Banchi",
          "description": "Banchi (番地): in a residential-indication area the block number (街区符号); elsewhere the whole lot number (地番), branch number included, for example 4638-1. Part of address."
        }
      }
    },
    {
      "name": "address.go",
      "title": "号",
      "description": "号。住居表示を実施している区域では住居番号です。地番の区域では空にします（枝番は banchi に含めます）。address の一部。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/common/go",
      "x-translations": {
        "en": {
          "title": "Go",
          "description": "Go (号): in a residential-indication area the residence number (住居番号). Empty for a lot number (地番): its branch number stays in banchi. Part of address."
        }
      }
    },
    {
      "name": "address.buildingName",
      "title": "建物名、部屋番号など、号より下の表記",
      "description": "建物名、部屋番号など、号より下の表記。address の一部。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/common/buildingName",
      "x-translations": {
        "en": {
          "description": "Building name, room number and anything below go. Part of address."
        }
      }
    },
    {
      "name": "address.residentialIndication",
      "title": "住居表示を実施している区域なら true",
      "description": "住居表示を実施している区域なら true（banchi と go は街区符号と住居番号）、地番なら false。address の一部。",
      "type": "boolean",
      "x-iri": "https://datamodels.jp/ns/common/residentialIndication",
      "x-translations": {
        "en": {
          "title": "true in a residential-indication area",
          "description": "true in a residential-indication area (banchi/go are block and residence numbers), false for lot numbers (地番). Part of address."
        }
      }
    },
    {
      "name": "address.jisPrefectureCode",
      "title": "都道府県コード",
      "description": "都道府県コード（JIS X 0401、2 桁）。address の一部。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/common/jisPrefectureCode",
      "constraints": {
        "pattern": "\\d{2}"
      },
      "x-translations": {
        "en": {
          "title": "Prefecture code",
          "description": "Prefecture code (JIS X 0401, 2 digits). Part of address."
        }
      }
    },
    {
      "name": "address.jisMunicipalityCode",
      "title": "市区町村コード",
      "description": "市区町村コード（JIS X 0402、都道府県コードを含む 5 桁）。address の一部。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/common/jisMunicipalityCode",
      "constraints": {
        "pattern": "\\d{5}"
      },
      "x-translations": {
        "en": {
          "title": "Municipality code",
          "description": "Municipality code (JIS X 0402, 5 digits including the prefecture code). Part of address."
        }
      }
    },
    {
      "name": "address.localGovernmentCode",
      "title": "全国地方公共団体コード",
      "description": "全国地方公共団体コード（JIS X 0402 の 5 桁と検査数字 1 桁）。address の一部。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/common/localGovernmentCode",
      "constraints": {
        "pattern": "\\d{6}"
      },
      "x-translations": {
        "en": {
          "title": "Local government code",
          "description": "Local government code (全国地方公共団体コード: JIS X 0402 plus a check digit, 6 digits). Part of address."
        }
      }
    },
    {
      "name": "address.abrMachiazaId",
      "title": "アドレス・ベース・レジストリの町字 ID",
      "description": "アドレス・ベース・レジストリの町字 ID（7 桁）。全国地方公共団体コードと組み合わせると、町字を一意に識別できます。address の一部。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/common/abrMachiazaId",
      "constraints": {
        "pattern": "\\d{7}"
      },
      "x-translations": {
        "en": {
          "title": "Address Base Registry town id",
          "description": "Address Base Registry town id (町字ID, 7 digits). Unique together with localGovernmentCode. Part of address."
        }
      }
    },
    {
      "name": "address.addressText",
      "title": "住所の全文",
      "description": "住所の全文（正規化した 1 行の表記）。構造化した項目がそろわないときの受け皿でもあります。address の一部。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/common/addressText",
      "x-translations": {
        "en": {
          "title": "Full address as one normalised line",
          "description": "Full address as one normalised line. Also the fallback when structured fields are unavailable. Part of address."
        }
      }
    },
    {
      "name": "longitude",
      "title": "location の経度",
      "description": "location の経度（WGS 84、十進の度）",
      "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)"
        }
      }
    },
    {
      "name": "latitude",
      "title": "location の緯度",
      "description": "location の緯度（WGS 84、十進の度）",
      "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)"
        }
      }
    },
    {
      "name": "elevation",
      "title": "標高",
      "description": "標高（メートル）",
      "type": "number",
      "x-iri": "https://datamodels.jp/ns/disaster/elevation",
      "x-translations": {
        "en": {
          "title": "Elevation in metres above mean sea level",
          "description": "Elevation in metres above mean sea level"
        }
      }
    },
    {
      "name": "hazardTypes",
      "title": "指定されている災害の種別",
      "description": "指定されている災害の種別。flood（洪水）、landslide（崖崩れ、土石流及び地滑り）、stormSurge（高潮）、earthquake（地震）、tsunami（津波）、greatFire（大規模な火事）、inlandFlood（内水氾濫）、eruption（火山現象）。複数の値は ; で区切ります。使える値：flood; landslide; stormSurge; earthquake; tsunami; greatFire; inlandFlood; eruption。",
      "type": "list",
      "itemType": "string",
      "delimiter": ";",
      "x-iri": "https://datamodels.jp/ns/disaster/hazardTypes",
      "constraints": {
        "minLength": 1
      },
      "x-translations": {
        "en": {
          "title": "The hazards the site is designated for",
          "description": "The hazards the site is designated for: flood, landslide (landslides, debris flows and slope failures), stormSurge, earthquake, tsunami, greatFire (large-scale fire), inlandFlood (inland flooding), eruption (volcanic phenomena). Several values separated by ;. Allowed values: flood; landslide; stormSurge; earthquake; tsunami; greatFire; inlandFlood; eruption."
        }
      }
    },
    {
      "name": "alsoDesignatedShelter",
      "title": "指定避難所も兼ねるとき true",
      "description": "指定避難所も兼ねるとき true",
      "type": "boolean",
      "x-iri": "https://datamodels.jp/ns/disaster/alsoDesignatedShelter",
      "x-translations": {
        "en": {
          "description": "true when the site is also a designated shelter"
        }
      }
    },
    {
      "name": "alsoWelfareShelter",
      "title": "指定福祉避難所も兼ねるとき true",
      "description": "指定福祉避難所も兼ねるとき true",
      "type": "boolean",
      "x-iri": "https://datamodels.jp/ns/disaster/alsoWelfareShelter",
      "x-translations": {
        "en": {
          "description": "true when the site is also a designated welfare shelter"
        }
      }
    },
    {
      "name": "maxCapacity",
      "title": "想定収容人数",
      "description": "想定収容人数",
      "type": "integer",
      "x-iri": "https://datamodels.jp/ns/disaster/maxCapacity",
      "constraints": {
        "minimum": 0
      },
      "x-translations": {
        "en": {
          "description": "Number of people the site is planned to hold"
        }
      }
    },
    {
      "name": "targetAreas",
      "title": "この避難場所に避難する町会・自治会や地域",
      "description": "この避難場所に避難する町会・自治会や地域。複数の値は ; で区切ります。",
      "type": "list",
      "itemType": "string",
      "delimiter": ";",
      "x-iri": "https://datamodels.jp/ns/disaster/targetAreas",
      "x-translations": {
        "en": {
          "description": "Neighbourhood associations or areas that evacuate to this site. Several values separated by ;."
        }
      }
    },
    {
      "name": "telephone",
      "title": "連絡先の電話番号",
      "description": "連絡先の電話番号",
      "type": "string",
      "x-iri": "https://schema.org/telephone",
      "x-translations": {
        "en": {
          "title": "Contact telephone number",
          "description": "Contact telephone number"
        }
      }
    },
    {
      "name": "url",
      "title": "避難場所のウェブページ",
      "description": "避難場所のウェブページ",
      "type": "string",
      "format": "uri",
      "x-iri": "https://schema.org/url",
      "x-translations": {
        "en": {
          "title": "Web page of the site",
          "description": "Web page of the site"
        }
      }
    },
    {
      "name": "description",
      "title": "備考",
      "description": "備考",
      "type": "string",
      "x-iri": "http://purl.org/dc/terms/description",
      "x-translations": {
        "en": {
          "title": "Remarks",
          "description": "Remarks"
        }
      }
    }
  ],
  "primaryKey": [
    "id"
  ],
  "missingValues": [
    ""
  ]
}
