English
ServiceRequest draft
A request for work at a place: collecting bulky or disaster waste, a delivery, a repair, an inspection. It says what (items and how many), where, and when (time windows, and how much the requester needs that day), with the service time, the amount and the skills it needs, so it maps directly to a job of route optimisation (VRP) software. It holds no name or contact of the requester; requester points to another entity when needed.
| Kind | entity |
| Type IRI | https://datamodels.jp/ns/fieldservice/ServiceRequest |
| @context | https://datamodels.jp/context/fieldservice/v1.jsonld |
| JSON Schema | /schema/fieldservice/ServiceRequest/v1.json |
| Download | CSV template Table Schema Structured output for AI PostgreSQL / PostGIS table About these files |
| Licence | CC0 1.0: the files (@context, JSON Schema, examples) can be used without conditions |
These @context and JSON Schema URLs (version aliases) always point to the latest compatible version.
For URLs that never change, see Versions. More in URLs and versions.
Types and relationships
Relationship (attribute name)used as a value typeother subjectN more links: continued on that type's page
Attributes
| Attribute | Description | Value |
|---|---|---|
serviceCode* | The kind of request, as a code the provider sets (for example bulky-waste); Open311 service_codehttps://datamodels.jp/ns/fieldservice/serviceCode | Property, string |
localGovernmentCode | Local government code (全国地方公共団体コード, 6 digits) of the municipality responsible; Open311 jurisdiction_idhttps://datamodels.jp/ns/common/localGovernmentCode | Property, string |
provider | The organisation that does the work (a municipality, a contractor)https://schema.org/provider | Relationship → person, organisation or team |
requestedAt | When the request was made (Open311 requested_datetime)https://datamodels.jp/ns/fieldservice/requestedAt | Property, string (date-time) |
requestStatus | State: received, scheduled (a day is set), in-progress, completed, cancelled, rejected (cannot be done). Open311 open covers received to in-progress, and closed the rest. When no value fits, leave it out and write statusLabelhttps://datamodels.jp/ns/fieldservice/requestStatus | Property, string: received | scheduled | in-progress | completed | cancelled | rejected |
statusLabel | The source system's own status name, unchanged. Required when the status is left outhttps://datamodels.jp/ns/task/statusLabel | Property, string |
location*personal data | Where the work is done (for example where the items are put out); a point only. It can stand in for an addresshttps://uri.etsi.org/ngsi-ld/location | GeoProperty (Geometry, Point) |
area | The planning area, as the provider names ithttps://datamodels.jp/ns/fieldservice/area | Property, string |
lines | What is asked for: one line per CatalogItem, with its id, the quantity and its name at the time of the requesthttps://datamodels.jp/ns/fieldservice/lines | Property, array |
serviceDuration | Time spent at the place, as an ISO 8601 duration (for example PT5M); the service time of route optimisationhttps://datamodels.jp/ns/fieldservice/serviceDuration | Property, string |
load | 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 optimisationhttps://datamodels.jp/ns/fieldservice/load | Property, array |
skills | 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 wordshttps://datamodels.jp/ns/fieldservice/skills | Property, array |
priority | Priority 0 to 9: 1 highest, 9 lowest, 0 undefined (RFC 8984, as in Task)https://datamodels.jp/ns/task/priority | Property, integer, ≥ 0, ≤ 9 |
timeWindows | When the work may be done, as a list of start and end date-times; the time windows of route optimisation: nothing is planned outside themhttps://datamodels.jp/ns/fieldservice/timeWindows | Property, array |
preferredDate | The day the requester would likehttps://datamodels.jp/ns/fieldservice/preferredDate | Property, string (date) |
flexibility | How much the requester needs that day: fixed (it must be that day), preferred (they would like it), any (any day)https://datamodels.jp/ns/fieldservice/flexibility | Property, string: fixed | preferred | any |
scheduledDate | The day the work is planned forhttps://datamodels.jp/ns/fieldservice/scheduledDate | Property, string (date) |
scheduledWindow | The planned time window, when one is sethttps://datamodels.jp/ns/fieldservice/scheduledWindow | Property, object |
routePlan | The plan of the day this request is in: a RoutePlanhttps://datamodels.jp/ns/fieldservice/routePlan | Relationship → RoutePlan |
task | The work item made from this request: a Task (task subject). Task's refersTo is the other way round: what a task is abouthttps://datamodels.jp/ns/fieldservice/task | Relationship → Task |
fee | Fee, in priceCurrencyhttps://datamodels.jp/ns/fieldservice/fee | Property, number, ≥ 0 |
priceCurrency | Currency (ISO 4217, for example JPY)https://schema.org/priceCurrency | Property, string |
requesterpersonal data | Who asked: a link to their entity. Names and contacts are not kept here but in that entity, so access to them can be limited separatelyhttps://datamodels.jp/ns/fieldservice/requester | Relationship → person, organisation or team |
requesterNotepersonal data | A description in the requester's words; it may contain personal datahttps://datamodels.jp/ns/fieldservice/requesterNote | Property, string |
source | Where the data comes from (a URL, for example)https://smart-data-models.github.io/data-models/terms.jsonld#/definitions/source | Property, string |
* required
"Personal data" marks attributes that often hold personal data. It is a hint: other attributes can hold it too, and whoever stores the data decides how to protect it (Personal data).
Using this model
How to validate data and send it to a broker: Using the models.
To add attributes of your own to this model, the extension builder writes the @context and JSON Schema.
Extended this model? If you publish it on a site made with the toolkit, it shows on this page once your site is on the list of sites. Without a site, list your extension so others can reuse your names (how it works).
Files that particular brokers and tools can load as they are, made from this model: Adapters
The Link header, for sending data without @context in the body:
httpLink: <https://datamodels.jp/context/fieldservice/v1.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"
Example
Most examples are a fictional scenario (heavy rain in Chiyoda, Tokyo). Place names and codes are real; the events, people and teams are invented. Some examples copy a real row of a published list instead; their notes name the source. See writing examples.
json
{
"id": "urn:ngsi-ld:ServiceRequest:131016-2026-0716-0042",
"type": "ServiceRequest",
"serviceCode": "bulky-waste",
"localGovernmentCode": "131016",
"provider": "urn:ngsi-ld:Organization:131016",
"requestedAt": "2026-07-14T09:20:00+09:00",
"requestStatus": "scheduled",
"statusLabel": "収集日決定",
"location": {
"type": "Point",
"coordinates": [
139.7703,
35.6956
]
},
"area": "kanda",
"lines": [
{
"item": "urn:ngsi-ld:CatalogItem:131016:sofa-2-seats",
"quantity": 1,
"name": "ソファー(2人以上用)、ソファーベッドなど"
}
],
"serviceDuration": "PT8M",
"load": [
3
],
"skills": [
"two-person"
],
"priority": 2,
"timeWindows": [
{
"start": "2026-07-16T08:00:00+09:00",
"end": "2026-07-16T16:00:00+09:00"
},
{
"start": "2026-07-17T08:00:00+09:00",
"end": "2026-07-17T16:00:00+09:00"
}
],
"preferredDate": "2026-07-16",
"flexibility": "preferred",
"scheduledDate": "2026-07-16",
"scheduledWindow": {
"start": "2026-07-16T08:00:00+09:00",
"end": "2026-07-16T12:00:00+09:00"
},
"routePlan": "urn:ngsi-ld:RoutePlan:131016:kanda:2026-07-16",
"fee": 1600,
"priceCurrency": "JPY",
"requester": "urn:ngsi-ld:Person:resident-0042",
"requesterNote": "大雨で1階が浸水し、ソファーが水を吸って使えなくなりました。",
"source": "https://requests.example.jp/2026-0716-0042"
}Files: example.json · example-normalized.jsonld · Open in the JSON-LD Playground: see the full IRI behind every attribute (expanded form).
Something missing or wrong?
Open an issue, or propose new attributes or models with the proposal form. How it works: Contributing. The source files (notes, mapping tables) are on GitHub.
Notes
- Built on Open311 GeoReport v2 (http://wiki.open311.org/GeoReport_v2/) service requests: serviceCode is service_code, localGovernmentCode jurisdiction_id, requestedAt requested_datetime, and the values of requestStatus split open and closed more finely. Open311 records reports and has nothing to plan with (time windows, service time, amounts, skills); those were added after the job of VROOM.
- The route optimisation fields follow the input and output of VROOM (https://github.com/VROOM-Project/vroom/blob/master/docs/API.md, BSD-2-Clause), whose concepts (job, vehicle, time window, amount and capacity, skills, service time) other VRP software such as jsprit and OR-Tools shares. Times are date-times (ISO 8601); converting them to the seconds VROOM uses is left to the client.
- Upstream considered (2026-11-17). Smart Data Models IssueReporting (dataModel.IssueTracking, a copy of Open311) records reports and has nothing to plan with, so it is not used. Task (this catalog's task subject) is one tracked unit of work without the lines, fee or time windows of a request, so ServiceRequest is not its subclass; task points to the Task made from a request. Task's refersTo goes the other way (what a task is about), so it is not reused. schema.org Order and ServiceChannel are about selling and service channels, not planning work at a place.
- Personal data: no name, address or phone number. requester points to another entity, so access to it can be limited separately; requesterNote is in the requester's words and may identify them, and location, the point where the items are put out, can stand in for an address; requester, requesterNote and location carry x-personal-data. When publishing, blur location to the town level. A per-request source link, or the items in lines (a care bed, say), can tell something about a person too.
- Example: during the July 2026 heavy rain in Chiyoda (the catalog's shared scenario), a resident of Kanda-Sudachō asks for a flood-damaged sofa to be collected. The item and its fee (two-seat-or-more sofa, 1,600 yen) are as Chiyoda publishes them (updated 2026-04-01); the request, the person and the numbers are invented. The load of 3 is a volume score made up for the example (truck 2's capacity is 20); Chiyoda's list has none.
- Draft. The subject name fieldservice and the namespace https://datamodels.jp/ns/fieldservice/ were decided on 2026-11-23 (#326).