{
  "type": "DesignatedShelter",
  "domain": "disaster",
  "description": "指定避難所（災害対策基本法第 49 条の 7）1 か所のデータです。避難した人が一定期間滞在する施設の基本情報（名称、所在地など）を持ちます。市町村が登録し、国土地理院が公開しています。開設状況や避難者数は、このモデルではなく EvacuationShelter で表し、その shelter からここを参照します。",
  "contextUrl": "https://datamodels.jp/context/disaster/v1.jsonld",
  "propertyDetails": {
    "name": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": "都立一橋高校",
      "required": true,
      "description": "指定避難所の名称（施設の名前）",
      "@context": "https://uri.etsi.org/ngsi-ld/name"
    },
    "nameKana": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": null,
      "required": false,
      "description": "施設名の読み（全角カタカナ）",
      "@context": "https://datamodels.jp/ns/disaster/nameKana"
    },
    "externalShelterId": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": "13101-0012",
      "required": false,
      "description": "市町村の避難所一覧での ID（市町村の中で一意）。nationalShelterId が無いときは必須です。",
      "@context": "https://datamodels.jp/ns/disaster/externalShelterId"
    },
    "nationalShelterId": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": "E1310100012111",
      "required": false,
      "description": "全国共通避難所・避難場所 ID（14 文字。国土地理院のデータの「共通 ID」）。このモデルで使えるのは、種別コード 11（一般の指定避難所）と 12（福祉避難所）だけです。ID の構造と出典は、EvacuationShelter の対応表「全国共通避難所・避難場所 ID」（gsi-national-shelter-id）にまとめています。externalShelterId が無いときは必須です。",
      "@context": "https://datamodels.jp/ns/disaster/nationalShelterId",
      "validation": {
        "pattern": "^E[0-9]{10}1[12][1-9A-Za-z]$"
      }
    },
    "localGovernmentCode": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": "131016",
      "required": true,
      "description": "指定する市町村の全国地方公共団体コード（検査数字を含む 6 桁）",
      "@context": "https://datamodels.jp/ns/common/localGovernmentCode",
      "validation": {
        "pattern": "^\\d{6}$"
      }
    },
    "shelterType": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": "general",
      "required": false,
      "description": "general（一般の避難所）か welfare（福祉避難所。特別な配慮が必要な人のための避難所）。nationalShelterId の種別コードの 2 桁目と同じです。",
      "@context": "https://datamodels.jp/ns/disaster/shelterType",
      "validation": {
        "enum": [
          "general",
          "welfare"
        ]
      }
    },
    "address": {
      "ngsiType": "Property",
      "valueType": "object",
      "example": {
        "addressCountry": "JP",
        "addressRegion": "東京都",
        "addressLocality": "千代田区",
        "machiaza": "東神田",
        "chome": "1",
        "localGovernmentCode": "131016",
        "addressText": "東京都千代田区東神田1-12-13"
      },
      "required": false,
      "description": "所在地（JapaneseAddress）",
      "@context": "https://schema.org/address"
    },
    "location": {
      "ngsiType": "GeoProperty",
      "valueType": "geojson",
      "example": {
        "type": "Point",
        "coordinates": [
          139.7810002,
          35.6945488
        ]
      },
      "required": false,
      "description": "位置（点）",
      "@context": "https://uri.etsi.org/ngsi-ld/location"
    },
    "maxCapacity": {
      "ngsiType": "Property",
      "valueType": "integer",
      "example": null,
      "required": false,
      "description": "想定収容人数",
      "@context": "https://datamodels.jp/ns/disaster/maxCapacity",
      "validation": {
        "minimum": 0
      }
    },
    "targetEvacuees": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": null,
      "required": false,
      "description": "受入対象者（市町村の書き方のまま。福祉避難所の対象など）",
      "@context": "https://datamodels.jp/ns/disaster/targetEvacuees"
    },
    "alsoEmergencyEvacuationSite": {
      "ngsiType": "Property",
      "valueType": "boolean",
      "example": true,
      "required": false,
      "description": "同じ住所に指定緊急避難場所があるとき true",
      "@context": "https://datamodels.jp/ns/disaster/alsoEmergencyEvacuationSite"
    },
    "site": {
      "ngsiType": "Relationship",
      "valueType": "uri",
      "example": "urn:ngsi-ld:EvacuationSite:0012",
      "required": false,
      "description": "同じ場所の指定緊急避難場所（EvacuationSite）",
      "@context": "https://datamodels.jp/ns/disaster/site"
    },
    "designationNotes": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": null,
      "required": false,
      "description": "その他市町村長が必要と認める事項",
      "@context": "https://datamodels.jp/ns/disaster/designationNotes"
    },
    "description": {
      "ngsiType": "Property",
      "valueType": "string",
      "example": null,
      "required": false,
      "description": "備考",
      "@context": "http://purl.org/dc/terms/description"
    }
  },
  "additionalProperties": false
}
