{
  "$schema": "https://datapackage.org/profiles/2.0/tableschema.json",
  "title": "施設",
  "description": "自治体がオープンデータの一覧で公開する施設 1 か所のデータです。自治体標準オープンデータセットの施設のデータセットに共通する項目（名称、所在地、位置、公開する自治体、運営する組織、連絡先、利用できる時間）を持ちます。GIF のコアデータモデル「施設」に対応します。AED や公衆トイレなどの施設の種類ごとに、そのデータセットだけの項目を足した下位の型があります。",
  "x-type": "Facility",
  "x-typeIri": "https://datamodels.jp/ns/facility/Facility",
  "x-version": "1.0.0",
  "x-schema": "https://datamodels.jp/schema/facility/Facility/v1.0.0.json",
  "x-context": "https://datamodels.jp/context/facility/v1.jsonld",
  "x-translations": {
    "en": {
      "title": "Facility",
      "description": "One facility that a municipality lists in its open data. It has what the facility datasets of the 自治体標準オープンデータセット share: name, address, location, the publishing municipality, the operator, contact and opening hours. It corresponds to GIF's core data model 施設 (facility). Subtypes per kind of facility, such as AEDs and public toilets, add the columns of their own dataset."
    }
  },
  "fields": [
    {
      "name": "id",
      "title": "エンティティの ID",
      "description": "エンティティの ID（URI。例：urn:ngsi-ld:Facility:001）",
      "type": "string",
      "constraints": {
        "required": true,
        "unique": true
      },
      "x-translations": {
        "en": {
          "title": "Entity id",
          "description": "Entity id: a URI, for example urn:ngsi-ld:Facility:001"
        }
      }
    },
    {
      "name": "name",
      "title": "施設の名称",
      "description": "施設の名称",
      "type": "string",
      "x-iri": "https://uri.etsi.org/ngsi-ld/name",
      "x-translations": {
        "en": {
          "title": "Name of the facility",
          "description": "Name of the facility"
        }
      }
    },
    {
      "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": "externalFacilityId",
      "title": "自治体の一覧での ID",
      "description": "自治体の一覧での ID（自治体とデータセットの中で一意）。localGovernmentCode と合わせると、全国で一意になります。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/facility/externalFacilityId",
      "x-translations": {
        "en": {
          "description": "The facility's ID in the municipality's list (unique within the municipality and the dataset). Together with localGovernmentCode it is unique nationwide"
        }
      }
    },
    {
      "name": "localGovernmentCode",
      "title": "一覧を公開する自治体の全国地方公共団体コード",
      "description": "一覧を公開する自治体の全国地方公共団体コード（検査数字を含む 6 桁）",
      "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 (6 digits including the check digit) of the municipality that 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": "operatorName",
      "title": "施設を運営する組織の名称",
      "description": "施設を運営する組織の名称。AED のような設備では、設置した組織です（データセットの「団体名」「法人の名称」）。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/facility/operatorName",
      "x-translations": {
        "en": {
          "description": "Name of the organisation that runs the facility or, for equipment such as an AED, installed it (団体名, 法人の名称 in the datasets)"
        }
      }
    },
    {
      "name": "corporateNumber",
      "title": "施設を運営する組織、または設備を設置した組織の法人番号",
      "description": "施設を運営する組織、または設備を設置した組織の法人番号（国税庁、13 桁）",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/facility/corporateNumber",
      "constraints": {
        "pattern": "\\d{13}"
      },
      "x-translations": {
        "en": {
          "title": "Corporate number",
          "description": "Corporate number (13 digits, National Tax Agency) of the organisation that runs the facility or installed the equipment"
        }
      }
    },
    {
      "name": "contactPoint.telephone",
      "title": "電話番号",
      "description": "電話番号。公開者が書いたとおりの表記です（例：03-3264-2111）。複数あるときは「 / 」で区切ります。contactPoint の一部。",
      "type": "string",
      "x-iri": "https://schema.org/telephone",
      "x-translations": {
        "en": {
          "description": "Telephone number as written by the publisher, for example 03-3264-2111. Several numbers are separated by ' / '. Part of contactPoint."
        }
      }
    },
    {
      "name": "contactPoint.telephoneExtension",
      "title": "内線番号",
      "description": "内線番号。contactPoint の一部。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/common/telephoneExtension",
      "x-translations": {
        "en": {
          "title": "Extension of the telephone number",
          "description": "Extension of the telephone number. Part of contactPoint."
        }
      }
    },
    {
      "name": "contactPoint.faxNumber",
      "title": "FAX 番号",
      "description": "FAX 番号。contactPoint の一部。",
      "type": "string",
      "x-iri": "https://schema.org/faxNumber",
      "x-translations": {
        "en": {
          "title": "Fax number",
          "description": "Fax number. Part of contactPoint."
        }
      }
    },
    {
      "name": "contactPoint.email",
      "title": "メールアドレス",
      "description": "メールアドレス。contactPoint の一部。",
      "type": "string",
      "x-iri": "https://schema.org/email",
      "x-translations": {
        "en": {
          "title": "E-mail address",
          "description": "E-mail address. Part of contactPoint."
        }
      }
    },
    {
      "name": "contactPoint.url",
      "title": "連絡に使うウェブページや問い合わせフォームの URL",
      "description": "連絡に使うウェブページや問い合わせフォームの URL。contactPoint の一部。",
      "type": "string",
      "format": "uri",
      "x-iri": "https://schema.org/url",
      "x-translations": {
        "en": {
          "description": "Web page or web form for getting in touch. Part of contactPoint."
        }
      }
    },
    {
      "name": "contactPoint.otherChannels",
      "title": "SNS のアカウントなど、そのほかの連絡手段と、連絡先についての備考",
      "description": "SNS のアカウントなど、そのほかの連絡手段と、連絡先についての備考（自由記述）。contactPoint の一部。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/common/otherChannels",
      "x-translations": {
        "en": {
          "description": "Other ways to get in touch, such as social media accounts, and remarks on the contact, as free text. Part of contactPoint."
        }
      }
    },
    {
      "name": "contactPoint.postalCode",
      "title": "連絡先の郵便番号",
      "description": "連絡先の郵便番号（7 桁。ハイフンの有無は問いません）。施設の所在地の郵便番号と違うことがあります。contactPoint の一部。",
      "type": "string",
      "x-iri": "https://schema.org/postalCode",
      "constraints": {
        "pattern": "\\d{3}-?\\d{4}"
      },
      "x-translations": {
        "en": {
          "description": "Postal code of the contact, 7 digits with or without hyphen. It can differ from the postal code of the facility's address. Part of contactPoint."
        }
      }
    },
    {
      "name": "openingHoursSpecification",
      "title": "利用できる時間",
      "description": "利用できる時間（OpeningHours）：曜日、開始時刻、終了時刻、特記事項",
      "type": "object",
      "x-iri": "https://schema.org/openingHoursSpecification",
      "constraints": {
        "jsonSchema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "$id": "https://datamodels.jp/schema/common/OpeningHours/v1.0.0.json",
          "title": "OpeningHours",
          "description": "When a facility can be used, as the value of an openingHoursSpecification Property: the days of the week, the opening and closing time, and remarks on exceptions such as holidays. Fields follow the 利用可能曜日, 開始時間, 終了時間 and 特記事項 columns of the 自治体標準オープンデータセット, with schema.org OpeningHoursSpecification terms.",
          "type": "object",
          "properties": {
            "dayOfWeek": {
              "type": "array",
              "uniqueItems": true,
              "minItems": 1,
              "items": {
                "type": "string",
                "enum": [
                  "Monday",
                  "Tuesday",
                  "Wednesday",
                  "Thursday",
                  "Friday",
                  "Saturday",
                  "Sunday",
                  "PublicHolidays"
                ]
              },
              "description": "Days on which the hours apply, as schema.org DayOfWeek names. The datasets write them in GIF's weekday notation, 月火水木金 or 12345 (利用可能曜日): 月 or 1 → Monday … 日 or 7 → Sunday. PublicHolidays (schema.org) marks public holidays"
            },
            "opens": {
              "type": "string",
              "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9](:[0-5][0-9])?$",
              "description": "Opening time, local time in Japan, HH:MM or HH:MM:SS as in GIF's time notation (開始時間)"
            },
            "closes": {
              "type": "string",
              "pattern": "^(([01][0-9]|2[0-3]):[0-5][0-9](:[0-5][0-9])?|24:00(:00)?)$",
              "description": "Closing time, local time in Japan, HH:MM or HH:MM:SS as in GIF's time notation; 24:00 is the end of the day (終了時間)"
            },
            "description": {
              "type": "string",
              "description": "Remarks and exceptions in words, such as holidays or the New Year break (利用可能日時特記事項)"
            }
          },
          "required": [],
          "additionalProperties": false
        }
      },
      "x-translations": {
        "en": {
          "title": "When the facility can be used",
          "description": "When the facility can be used (OpeningHours): weekdays, opening and closing time, remarks"
        }
      }
    },
    {
      "name": "url",
      "title": "施設についてのウェブページ",
      "description": "施設についてのウェブページ",
      "type": "string",
      "format": "uri",
      "x-iri": "https://schema.org/url",
      "x-translations": {
        "en": {
          "title": "Web page about the facility",
          "description": "Web page about the facility"
        }
      }
    },
    {
      "name": "remarks",
      "title": "備考",
      "description": "備考",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/facility/remarks",
      "x-translations": {
        "en": {
          "title": "Remarks",
          "description": "Remarks"
        }
      }
    }
  ],
  "primaryKey": [
    "id"
  ],
  "missingValues": [
    ""
  ]
}
