{
  "$schema": "https://datapackage.org/profiles/2.0/tableschema.json",
  "title": "通行規制",
  "description": "通行規制（通行止めを含む）1 件のデータです。路線名、規制区間（点、線、面）、状態、区分、期間を持ちます。restrictionStatus、statusLabel のどれか 1 つは必須です。",
  "x-type": "RoadRestriction",
  "x-typeIri": "https://datamodels.jp/ns/transportation/RoadRestriction",
  "x-version": "1.0.0",
  "x-schema": "https://datamodels.jp/schema/transportation/RoadRestriction/v1.0.0.json",
  "x-context": "https://datamodels.jp/context/transportation/v1.jsonld",
  "x-translations": {
    "en": {
      "title": "Road restriction",
      "description": "One road restriction, including closures: road name, regulated section (point, line or area), status, category and period. At least one of restrictionStatus, statusLabel is needed."
    }
  },
  "fields": [
    {
      "name": "id",
      "title": "エンティティの ID",
      "description": "エンティティの ID（URI。例：urn:ngsi-ld:RoadRestriction:001）",
      "type": "string",
      "constraints": {
        "required": true,
        "unique": true
      },
      "x-translations": {
        "en": {
          "title": "Entity id",
          "description": "Entity id: a URI, for example urn:ngsi-ld:RoadRestriction:001"
        }
      }
    },
    {
      "name": "roadName",
      "title": "路線名",
      "description": "路線名",
      "type": "string",
      "x-iri": "https://smartdatamodels.org/dataModel.Transportation/roadName",
      "x-translations": {
        "en": {
          "title": "Road name",
          "description": "Road name"
        }
      }
    },
    {
      "name": "roadType",
      "title": "道路法第 3 条の道路の種類",
      "description": "道路法第 3 条の道路の種類：expressway（高速自動車国道）、nationalRoad（一般国道）、prefecturalRoad（都道府県道）、municipalRoad（市町村道）、other（農道、林道、私道など、道路法の道路でないもの）。自動車専用道路は道路の種類ではなく指定なので、その道路の種類を入れます。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/transportation/roadType",
      "constraints": {
        "enum": [
          "expressway",
          "nationalRoad",
          "prefecturalRoad",
          "municipalRoad",
          "other"
        ]
      },
      "x-translations": {
        "en": {
          "title": "Road class by the Road Act",
          "description": "Road class by the Road Act (Art. 3): expressway, nationalRoad, prefecturalRoad, municipalRoad, or other for a road outside the Act (farm, forest or private road). A motorway designation (自動車専用道路) is not a class: give the class of the road it is on"
        }
      }
    },
    {
      "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、十進の度）。点なら経度と緯度を入れます。点以外の形は、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": "規制区間。点（単独の地点）、線（区間）、面（区域）の GeoJSON ジオメトリです。警察庁「交通規制情報（拡張版標準フォーマット）」の点規制、線規制、面規制にあたります。location の GeoJSON ジオメトリ（Point、LineString、Polygon、MultiPoint、MultiLineString、MultiPolygon、GeometryCollection）。点以外の形のときに使います。",
      "type": "geojson",
      "x-iri": "https://uri.etsi.org/ngsi-ld/location",
      "x-translations": {
        "en": {
          "description": "The regulated section, as a GeoJSON geometry (point, line or area), matching the point/line/area regulation forms of the NPA's traffic regulation data format. location as a GeoJSON geometry (Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, GeometryCollection), for a shape that is not a point."
        }
      }
    },
    {
      "name": "restrictionLength",
      "title": "線規制の規制区間の延長",
      "description": "線規制の規制区間の延長（メートル）。警察庁「交通規制情報（拡張版標準フォーマット）」の距離・延長（項目 133）と、EEI の距離・延長にあたります。ジオメトリを簡略化していても、延長がわかります。",
      "type": "number",
      "x-iri": "https://datamodels.jp/ns/transportation/restrictionLength",
      "constraints": {
        "minimum": 0
      },
      "x-translations": {
        "en": {
          "description": "Length of the regulated section in metres, for a line. The NPA format's 距離・延長 (item 133) and EEI's 距離・延長; known even when the geometry is simplified"
        }
      }
    },
    {
      "name": "maximumAllowedWeight",
      "title": "重量制限",
      "description": "重量制限（キログラム）。これより重い車両は通れません（例：制限重量 4 トンなら 4000）。Smart Data Models の RoadSegment と同じ属性で、警察庁のフォーマットでは制限重量（項目 135、単位はトン）にあたります。車両総重量か最大積載量かは元のデータに従い、その呼び方は statusLabel に残します。",
      "type": "number",
      "x-iri": "https://smartdatamodels.org/dataModel.Transportation/maximumAllowedWeight",
      "constraints": {
        "minimum": 0
      },
      "x-translations": {
        "en": {
          "title": "Weight limit in kilograms",
          "description": "Weight limit in kilograms: vehicles heavier than this may not pass (for example 4000 when the source limit is 4 t). The same term as Smart Data Models RoadSegment; the NPA format gives it in tonnes (制限重量, item 135). Whether it is gross weight or payload follows the source; keep its wording in statusLabel"
        }
      }
    },
    {
      "name": "restrictionStatus",
      "title": "正規化した状態",
      "description": "正規化した状態。値は Smart Data Models の RoadSegment.status と同じです：closed（通行不可）、limited（片側通行など）、open（解除済み、または未実施）。現場での呼び方は statusLabel に、より細かい区分は regulationCategory に書きます。合う値がないときは省き、statusLabel だけを送ります。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/transportation/restrictionStatus",
      "constraints": {
        "enum": [
          "closed",
          "limited",
          "open"
        ]
      },
      "x-translations": {
        "en": {
          "description": "Normalised restriction state, the value space of Smart Data Models RoadSegment.status: closed (no traffic), limited (traffic possible but not in full capacity), open (restriction lifted or not yet in place). The local wording goes in statusLabel; a finer public-sector category goes in regulationCategory. When no value fits, leave it out and send only statusLabel"
        }
      }
    },
    {
      "name": "regulationCategory",
      "title": "規制区分",
      "description": "規制区分。国土交通省の道路情報提供システムの凡例に合わせています（表記はサイトの凡例のまま）：closedWeather（通行止(異常気象等)）、closedConstruction（通行止(工事)）、closedHeavyVehicle（大型通行止）、closedWinter（冬期通行止）、laneRestriction（車線規制）、alternatingOneWay（片側交互通行）、mobileRestriction（移動規制）、chainRestriction（チェーン規制）、chainGuidance（チェーン指導）、other（その他規制）。closedWeather には、土砂崩落や路肩決壊など災害による通行止めも含みます。任意の属性です。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/transportation/regulationCategory",
      "constraints": {
        "enum": [
          "closedWeather",
          "closedConstruction",
          "closedHeavyVehicle",
          "closedWinter",
          "laneRestriction",
          "alternatingOneWay",
          "mobileRestriction",
          "chainRestriction",
          "chainGuidance",
          "other"
        ]
      },
      "x-translations": {
        "en": {
          "description": "Regulation category, from the legend of MLIT's Road Information Provision System: closedWeather, closedConstruction, closedHeavyVehicle, closedWinter, laneRestriction, alternatingOneWay, mobileRestriction, chainRestriction, chainGuidance, other. closedWeather also covers closures after a disaster, such as a landslide or a collapsed road shoulder. Optional"
        }
      }
    },
    {
      "name": "statusLabel",
      "title": "現場や元のシステムでの状態の呼び方",
      "description": "現場や元のシステムでの状態の呼び方（例：依頼中、通行止め中、解除済み）。restrictionStatus を省いたときは必須です。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/task/statusLabel",
      "constraints": {
        "minLength": 1
      },
      "x-translations": {
        "en": {
          "description": "The restriction status in the local or source system's wording (e.g. 依頼中, 通行止め中, 解除済み). Required when restrictionStatus is left out"
        }
      }
    },
    {
      "name": "validFrom",
      "title": "規制の開始",
      "description": "規制の開始",
      "type": "datetime",
      "x-iri": "https://smartdatamodels.org/validFrom",
      "x-translations": {
        "en": {
          "title": "When the restriction takes effect",
          "description": "When the restriction takes effect"
        }
      }
    },
    {
      "name": "validTo",
      "title": "規制の解除",
      "description": "規制の解除",
      "type": "datetime",
      "x-iri": "https://smartdatamodels.org/dataModel.Alert/validTo",
      "x-translations": {
        "en": {
          "title": "When the restriction is lifted",
          "description": "When the restriction is lifted"
        }
      }
    },
    {
      "name": "description",
      "title": "メモ",
      "description": "メモ",
      "type": "string",
      "x-iri": "http://purl.org/dc/terms/description",
      "x-translations": {
        "en": {
          "title": "Free-text memo",
          "description": "Free-text memo"
        }
      }
    }
  ],
  "primaryKey": [
    "id"
  ],
  "missingValues": [
    ""
  ]
}
