{
  "$schema": "https://datapackage.org/profiles/2.0/tableschema.json",
  "title": "指定避難所",
  "description": "指定避難所（災害対策基本法第 49 条の 7）1 か所のデータです。避難した人が一定期間滞在する施設の基本情報（名称、所在地など）を持ちます。市町村が登録し、国土地理院が公開しています。開設状況や避難者数は、このモデルではなく EvacuationShelter で表し、その shelter からここを参照します。externalShelterId、nationalShelterId のどれか 1 つは必須です。属性をまたぐ他の規則は JSON Schema にあります：https://datamodels.jp/schema/disaster/DesignatedShelter/v1.0.0.json。",
  "x-type": "DesignatedShelter",
  "x-typeIri": "https://datamodels.jp/ns/disaster/DesignatedShelter",
  "x-version": "1.0.0",
  "x-schema": "https://datamodels.jp/schema/disaster/DesignatedShelter/v1.0.0.json",
  "x-context": "https://datamodels.jp/context/disaster/v1.jsonld",
  "x-translations": {
    "en": {
      "title": "Designated shelter",
      "description": "One designated shelter (指定避難所, Basic Act on Disaster Management Art. 49-7), the master record of a facility where evacuees stay for a while, as municipalities register it and GSI publishes it. Opening status and evacuee counts are not here (that is EvacuationShelter, which links here with shelter). At least one of externalShelterId, nationalShelterId is needed. More rules that span attributes are in the JSON Schema: https://datamodels.jp/schema/disaster/DesignatedShelter/v1.0.0.json."
    }
  },
  "fields": [
    {
      "name": "id",
      "title": "エンティティの ID",
      "description": "エンティティの ID（URI。例：urn:ngsi-ld:DesignatedShelter:001）",
      "type": "string",
      "constraints": {
        "required": true,
        "unique": true
      },
      "x-translations": {
        "en": {
          "title": "Entity id",
          "description": "Entity id: a URI, for example urn:ngsi-ld:DesignatedShelter: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 shelter",
          "description": "Name of the shelter (the facility'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": "externalShelterId",
      "title": "市町村の避難所一覧での ID",
      "description": "市町村の避難所一覧での ID（市町村の中で一意）。nationalShelterId が無いときは必須です。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/disaster/externalShelterId",
      "x-translations": {
        "en": {
          "description": "The shelter's ID in the municipality's own list (unique within it). Required when nationalShelterId is not given"
        }
      }
    },
    {
      "name": "nationalShelterId",
      "title": "全国共通避難所・避難場所 ID",
      "description": "全国共通避難所・避難場所 ID（14 文字。国土地理院のデータの「共通 ID」）。このモデルで使えるのは、種別コード 11（一般の指定避難所）と 12（福祉避難所）だけです。ID の構造と出典は、EvacuationShelter の対応表「全国共通避難所・避難場所 ID」（gsi-national-shelter-id）にまとめています。externalShelterId が無いときは必須です。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/disaster/nationalShelterId",
      "constraints": {
        "pattern": "E[0-9]{10}1[12][1-9A-Za-z]"
      },
      "x-translations": {
        "en": {
          "description": "The nationwide common shelter/evacuation-site ID (14 characters, the '共通ID' of GSI's data). Only type codes 11 (general designated shelter) and 12 (welfare shelter) are valid on this model. Its structure and source are described once, in EvacuationShelter's mapping 'nationwide common shelter/evacuation-site ID' (gsi-national-shelter-id). Required when externalShelterId 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 shelter"
        }
      }
    },
    {
      "name": "shelterType",
      "title": "general",
      "description": "general（一般の避難所）か welfare（福祉避難所。特別な配慮が必要な人のための避難所）。nationalShelterId の種別コードの 2 桁目と同じです。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/disaster/shelterType",
      "constraints": {
        "enum": [
          "general",
          "welfare"
        ]
      },
      "x-translations": {
        "en": {
          "title": "general",
          "description": "general (一般避難所) or welfare (福祉避難所, for people who need special care); the same as the second type digit of nationalShelterId"
        }
      }
    },
    {
      "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": "maxCapacity",
      "title": "想定収容人数",
      "description": "想定収容人数",
      "type": "integer",
      "x-iri": "https://datamodels.jp/ns/disaster/maxCapacity",
      "constraints": {
        "minimum": 0
      },
      "x-translations": {
        "en": {
          "description": "Number of people the shelter is planned to hold"
        }
      }
    },
    {
      "name": "targetEvacuees",
      "title": "受入対象者",
      "description": "受入対象者（市町村の書き方のまま。福祉避難所の対象など）",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/disaster/targetEvacuees",
      "x-translations": {
        "en": {
          "description": "Who the shelter is for, in the municipality's words (for example for a welfare shelter)"
        }
      }
    },
    {
      "name": "alsoEmergencyEvacuationSite",
      "title": "同じ住所に指定緊急避難場所があるとき true",
      "description": "同じ住所に指定緊急避難場所があるとき true",
      "type": "boolean",
      "x-iri": "https://datamodels.jp/ns/disaster/alsoEmergencyEvacuationSite",
      "x-translations": {
        "en": {
          "description": "true when a designated emergency evacuation site has the same address"
        }
      }
    },
    {
      "name": "site",
      "title": "同じ場所の指定緊急避難場所",
      "description": "同じ場所の指定緊急避難場所（EvacuationSite）",
      "type": "string",
      "format": "uri",
      "x-iri": "https://datamodels.jp/ns/disaster/site",
      "x-translations": {
        "en": {
          "title": "The designated emergency evacuation site",
          "description": "The designated emergency evacuation site (EvacuationSite) at the same place"
        }
      }
    },
    {
      "name": "designationNotes",
      "title": "その他市町村長が必要と認める事項",
      "description": "その他市町村長が必要と認める事項",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/disaster/designationNotes",
      "x-translations": {
        "en": {
          "description": "Other matters the mayor considers necessary"
        }
      }
    },
    {
      "name": "description",
      "title": "備考",
      "description": "備考",
      "type": "string",
      "x-iri": "http://purl.org/dc/terms/description",
      "x-translations": {
        "en": {
          "title": "Remarks",
          "description": "Remarks"
        }
      }
    }
  ],
  "primaryKey": [
    "id"
  ],
  "missingValues": [
    ""
  ]
}
