{
  "$schema": "https://datapackage.org/profiles/2.0/tableschema.json",
  "title": "依頼できる品目",
  "description": "提供者が依頼を受ける品目の 1 つです。粗大ごみの品目と手数料の一覧の 1 行などにあたります。受けない品目も、どこへ持っていけばよいかと一緒に載せられます。作業時間、量、必要な技能を持たせると、依頼の値をここから計算できます。呼び名（label）と説明（note）は、複数の言語で書けます（LanguageProperty）。",
  "x-type": "CatalogItem",
  "x-typeIri": "https://datamodels.jp/ns/fieldservice/CatalogItem",
  "x-version": "1.0.0",
  "x-schema": "https://datamodels.jp/schema/fieldservice/CatalogItem/v1.0.0.json",
  "x-context": "https://datamodels.jp/context/fieldservice/v1.jsonld",
  "x-translations": {
    "en": {
      "title": "Catalogue item",
      "description": "One item a provider takes requests for, such as one row of a city's list of bulky waste items and fees. Items it does not take can be listed too, with where to take them instead. With a service time, an amount and skills, the values of a request can be computed from its items. The label and the note can be given in several languages (LanguageProperty)."
    }
  },
  "fields": [
    {
      "name": "id",
      "title": "エンティティの ID",
      "description": "エンティティの ID（URI。例：urn:ngsi-ld:CatalogItem:001）",
      "type": "string",
      "constraints": {
        "required": true,
        "unique": true
      },
      "x-translations": {
        "en": {
          "title": "Entity id",
          "description": "Entity id: a URI, for example urn:ngsi-ld:CatalogItem:001"
        }
      }
    },
    {
      "name": "label",
      "title": "呼び名",
      "description": "呼び名。言語ごとに書きます（例：{\"ja\": \"ソファー（2人以上用）\", \"en\": \"Sofa (two seats or more)\"}）。日本語は提供者の一覧の書き方のままにします。",
      "type": "object",
      "x-iri": "http://www.w3.org/2000/01/rdf-schema#label",
      "constraints": {
        "required": true,
        "jsonSchema": {
          "type": "object",
          "minProperties": 1,
          "propertyNames": {
            "pattern": "^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8})*$"
          },
          "additionalProperties": {
            "type": "string",
            "minLength": 1
          },
          "description": "Name, per language (for example {\"ja\": \"ソファー（2人以上用）\", \"en\": \"Sofa (two seats or more)\"}); the Japanese as the provider's list writes it"
        }
      },
      "x-translations": {
        "en": {
          "title": "Name, per language",
          "description": "Name, per language (for example {\"ja\": \"ソファー（2人以上用）\", \"en\": \"Sofa (two seats or more)\"}); the Japanese as the provider's list writes it"
        }
      }
    },
    {
      "name": "note",
      "title": "品目の説明",
      "description": "品目の説明（何が対象かなど）。label と同じく、言語ごとに書きます（LanguageProperty）。",
      "type": "object",
      "x-iri": "https://datamodels.jp/ns/fieldservice/note",
      "constraints": {
        "jsonSchema": {
          "type": "object",
          "minProperties": 1,
          "propertyNames": {
            "pattern": "^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8})*$"
          },
          "additionalProperties": {
            "type": "string",
            "minLength": 1
          },
          "description": "Description of the item (what it covers, for example), per language, a LanguageProperty like label"
        }
      },
      "x-translations": {
        "en": {
          "title": "Description of the item",
          "description": "Description of the item (what it covers, for example), per language, a LanguageProperty like label"
        }
      }
    },
    {
      "name": "serviceCode",
      "title": "依頼の種類を表すコード",
      "description": "依頼の種類を表すコード（例：bulky-waste）。提供者が決めます。Open311 の service_code にあたります。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/fieldservice/serviceCode",
      "constraints": {
        "required": true,
        "minLength": 1
      },
      "x-translations": {
        "en": {
          "description": "The kind of request, as a code the provider sets (for example bulky-waste); Open311 service_code"
        }
      }
    },
    {
      "name": "localGovernmentCode",
      "title": "依頼を受け持つ自治体の全国地方公共団体コード",
      "description": "依頼を受け持つ自治体の全国地方公共団体コード（6 桁）。Open311 の jurisdiction_id にあたります。",
      "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) of the municipality responsible; Open311 jurisdiction_id"
        }
      }
    },
    {
      "name": "provider",
      "title": "作業を引き受ける組織",
      "description": "作業を引き受ける組織（自治体、委託先など）",
      "type": "string",
      "format": "uri",
      "x-iri": "https://schema.org/provider",
      "x-translations": {
        "en": {
          "title": "The organisation that does the work",
          "description": "The organisation that does the work (a municipality, a contractor)"
        }
      }
    },
    {
      "name": "category",
      "title": "分類",
      "description": "分類。提供者の一覧の区分か、furniture、appliance などの短い語です。",
      "type": "string",
      "x-iri": "https://schema.org/category",
      "constraints": {
        "minLength": 1
      },
      "x-translations": {
        "en": {
          "title": "Category",
          "description": "Category: the provider's section, or a short word such as furniture or appliance"
        }
      }
    },
    {
      "name": "keywords",
      "title": "探すための語",
      "description": "探すための語（別の呼び方など）。複数の値は ; で区切ります。",
      "type": "list",
      "itemType": "string",
      "delimiter": ";",
      "x-iri": "https://schema.org/keywords",
      "constraints": {
        "minLength": 1
      },
      "x-translations": {
        "en": {
          "title": "Words to find it by, such as other names",
          "description": "Words to find it by, such as other names. Several values separated by ;."
        }
      }
    },
    {
      "name": "accepted",
      "title": "この種類の依頼として受けるか",
      "description": "この種類の依頼として受けるか。受けない品目は、alternative でどこへ持っていくかを示します。",
      "type": "boolean",
      "x-iri": "https://datamodels.jp/ns/fieldservice/accepted",
      "constraints": {
        "required": true
      },
      "x-translations": {
        "en": {
          "description": "Whether it is taken with this kind of request; for an item that is not, alternative says where to take it"
        }
      }
    },
    {
      "name": "alternative",
      "title": "受けない品目の出し方",
      "description": "受けない品目の出し方（家電リサイクル、販売店の引き取りなど）",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/fieldservice/alternative",
      "constraints": {
        "minLength": 1
      },
      "x-translations": {
        "en": {
          "title": "Where to take an item that is not taken",
          "description": "Where to take an item that is not taken (home appliance recycling, the shop that sold it)"
        }
      }
    },
    {
      "name": "fee",
      "title": "手数料",
      "description": "手数料（priceCurrency の通貨で）",
      "type": "number",
      "x-iri": "https://datamodels.jp/ns/fieldservice/fee",
      "constraints": {
        "minimum": 0
      },
      "x-translations": {
        "en": {
          "title": "Fee, in priceCurrency",
          "description": "Fee, in priceCurrency"
        }
      }
    },
    {
      "name": "priceCurrency",
      "title": "通貨",
      "description": "通貨（ISO 4217、例：JPY）",
      "type": "string",
      "x-iri": "https://schema.org/priceCurrency",
      "constraints": {
        "pattern": "[A-Z]{3}"
      },
      "x-translations": {
        "en": {
          "title": "Currency",
          "description": "Currency (ISO 4217, for example JPY)"
        }
      }
    },
    {
      "name": "sizeNote",
      "title": "大きさの条件",
      "description": "大きさの条件。提供者の書き方のままです（例：幅90cm以下）。",
      "type": "string",
      "x-iri": "https://datamodels.jp/ns/fieldservice/sizeNote",
      "constraints": {
        "minLength": 1
      },
      "x-translations": {
        "en": {
          "description": "Size condition, as the provider writes it (for example 幅90cm以下, width 90 cm or less)"
        }
      }
    },
    {
      "name": "serviceDuration",
      "title": "現場での作業時間",
      "description": "現場での作業時間。ISO 8601 の期間（例：PT5M）。ルート最適化の service time にあたります。",
      "type": "string",
      "x-pattern": "^P(?!$)(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+(\\.\\d+)?S)?)?$",
      "x-iri": "https://datamodels.jp/ns/fieldservice/serviceDuration",
      "x-translations": {
        "en": {
          "description": "Time spent at the place, as an ISO 8601 duration (for example PT5M); the service time of route optimisation"
        }
      }
    },
    {
      "name": "load",
      "title": "車両の積載量のうち、この作業で使う量",
      "description": "車両の積載量のうち、この作業で使う量。次元ごとの数で、次元と単位は提供者が決めて、車両の capacity と揃えます（例：容積を提供者が決めた点数で数える 1 次元）。ルート最適化の amount にあたります。複数の値は ; で区切ります。",
      "type": "list",
      "itemType": "number",
      "delimiter": ";",
      "x-iri": "https://datamodels.jp/ns/fieldservice/load",
      "constraints": {
        "minLength": 1
      },
      "x-translations": {
        "en": {
          "description": "What it takes of a vehicle's capacity, one number per dimension; the provider sets the dimensions and units and keeps them in step with the vehicles' capacity (for example one dimension: volume, counted in points the provider sets); the amount of route optimisation. Several values separated by ;."
        }
      }
    },
    {
      "name": "skills",
      "title": "作業に必要なこと",
      "description": "作業に必要なこと（例：two-person、carry-out）。ルート最適化の skills にあたり、車両や班の skills と照らし合わせます。語は提供者が決めます。複数の値は ; で区切ります。",
      "type": "list",
      "itemType": "string",
      "delimiter": ";",
      "x-iri": "https://datamodels.jp/ns/fieldservice/skills",
      "constraints": {
        "minLength": 1
      },
      "x-translations": {
        "en": {
          "title": "What the work needs",
          "description": "What the work needs (for example two-person, carry-out); the skills of route optimisation, matched against a vehicle's or crew's skills. The provider sets the words. Several values separated by ;."
        }
      }
    },
    {
      "name": "validFrom",
      "title": "この内容",
      "description": "この内容（手数料など）が有効になった日（RoadRestriction と同じ用語）",
      "type": "date",
      "x-iri": "https://smartdatamodels.org/validFrom",
      "x-translations": {
        "en": {
          "title": "From when this entry",
          "description": "From when this entry (its fee, for example) applies (the same term as in RoadRestriction)"
        }
      }
    },
    {
      "name": "validTo",
      "title": "この内容が有効な最後の日",
      "description": "この内容が有効な最後の日（RoadRestriction と同じ用語）",
      "type": "date",
      "x-iri": "https://smartdatamodels.org/dataModel.Alert/validTo",
      "x-translations": {
        "en": {
          "title": "The last day this entry applies",
          "description": "The last day this entry applies (the same term as in RoadRestriction)"
        }
      }
    },
    {
      "name": "source",
      "title": "データの出典",
      "description": "データの出典（URL など）",
      "type": "string",
      "x-iri": "https://smart-data-models.github.io/data-models/terms.jsonld#/definitions/source",
      "constraints": {
        "minLength": 1
      },
      "x-translations": {
        "en": {
          "title": "Where the data comes from",
          "description": "Where the data comes from (a URL, for example)"
        }
      }
    }
  ],
  "primaryKey": [
    "id"
  ],
  "missingValues": [
    ""
  ]
}
