Pre-release. Until the official launch, content may change, including published files.
Skip to content

Source: https://datamodels.jp/en/models/fieldservice/ServiceVehicle/ · Text CC BY 4.0

ServiceVehicle draft subclass ​

One vehicle used for the work, as planning sees it: capacity, skills, start and end depot and working hours, so it maps directly to a vehicle of route optimisation (VRP) software. A subclass of Smart Data Models FleetVehicle (one vehicle of a fleet); the physical vehicle (plate and the like) is the Vehicle that vehicle points to.

Kindentity
Subclass ofA subclass of https://smartdatamodels.org/dataModel.Transportation/FleetVehicle, a type outside this catalog: this type is narrower or adds fields. Fields whose meaning matches use the parent vocabulary's IRIs. The vocabulary states the relation as rdfs:subClassOf.
Type IRIhttps://datamodels.jp/ns/fieldservice/ServiceVehicle
@contexthttps://datamodels.jp/context/fieldservice/v1.jsonld
JSON Schema/schema/fieldservice/ServiceVehicle/v1.json
DownloadCSV template Table Schema PostgreSQL / PostGIS table About these files
LicenceCC0 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 ​

Types and their relationshipsassignedVehiclevehiclesproviderdepot, endDepotworkingHourscrewOpeningHoursOpening hours5 more links →FacilityFacility8 more links →CrewCrew3 more links →RoutePlanRoute plan3 more links →ServiceVehicleService vehicleperson,organisation or team

Relationship (attribute name)used as a value typeother subjectN more links: continued on that type's page

Attributes ​

AttributeDescriptionValue
labelWhat the provider calls it, per language (for example {"ja": "2号車", "en": "Truck 2"})
http://www.w3.org/2000/01/rdf-schema#label
Property, object
vehicleThe physical vehicle (a Smart Data Models Vehicle), as in FleetVehicle
https://smartdatamodels.org/dataModel.Transportation/vehicle
Relationship → Vehicle
fleetVehicleTypeWhat the vehicle is used for, as in FleetVehicle (for example Waste collection)
https://smartdatamodels.org/dataModel.Transportation/fleetVehicleType
Property, string
providerThe organisation that does the work (a municipality, a contractor)
https://schema.org/provider
Relationship → person, organisation or team
localGovernmentCodeLocal government code (6 digits) of the municipality it works for
https://datamodels.jp/ns/common/localGovernmentCode
Property, string
capacity*How much it can carry, one number per dimension, in the dimensions and units of the requests' load; the capacity of route optimisation
https://datamodels.jp/ns/fieldservice/capacity
Property, array
skillsWhat the vehicle can do (for example two-person); a request goes only to a vehicle that has all its skills
https://datamodels.jp/ns/fieldservice/skills
Property, array
depotWhere the work starts: a Facility
https://datamodels.jp/ns/fieldservice/depot
Relationship → Facility
endDepotWhere the work ends: a Facility; without it, the vehicle returns to depot
https://datamodels.jp/ns/fieldservice/endDepot
Relationship → Facility
workingHoursWhen it can work, as a list of OpeningHours values (days of the week, start and end time); the source of a vehicle's time window in route optimisation
https://datamodels.jp/ns/fieldservice/workingHours
Property, array
maxStopsThe most stops in a day
https://datamodels.jp/ns/fieldservice/maxStops
Property, integer, ≥ 1
maxWorkDurationThe longest working time in a day, as an ISO 8601 duration
https://datamodels.jp/ns/fieldservice/maxWorkDuration
Property, string
crewThe crew that works with this vehicle: a Crew
https://datamodels.jp/ns/fieldservice/crew
Relationship → Crew
sourceWhere the data comes from (a URL, for example)
https://smart-data-models.github.io/data-models/terms.jsonld#/definitions/source
Property, string

* required

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:

    http
    Link: <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:ServiceVehicle:131016:truck-02",
  "type": "ServiceVehicle",
  "label": {
    "languageMap": {
      "ja": "2号車",
      "en": "Truck 2"
    }
  },
  "vehicle": "urn:ngsi-ld:Vehicle:131016-truck-02",
  "fleetVehicleType": "Waste collection",
  "provider": "urn:ngsi-ld:Organization:131016",
  "localGovernmentCode": "131016",
  "capacity": [
    20
  ],
  "skills": [
    "two-person"
  ],
  "depot": "urn:ngsi-ld:Facility:131016-131016F00001",
  "workingHours": [
    {
      "dayOfWeek": [
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday"
      ],
      "opens": "08:00",
      "closes": "16:00"
    }
  ],
  "maxStops": 30,
  "maxWorkDuration": "PT8H",
  "crew": "urn:ngsi-ld:Crew:131016:field-team-a"
}

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 ​

  • A subclass of Smart Data Models FleetVehicle (dataModel.Transportation, https://github.com/smart-data-models/dataModel.Transportation/tree/master/FleetVehicle): vehicle and fleetVehicleType keep FleetVehicle's IRIs and meaning. FleetVehicle has nothing to plan with (capacity, skills, depots, working hours); those were added after the vehicle 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 Vehicle is the physical vehicle (plate, model, position), not a unit of planning; vehicle points to it. FleetVehicle's operator (the driver, a person) is not used, as it names a person; crews are Crew entities.
  • Vehicle and crew together: in a plan, the skills are those of the vehicle and the crew together, the working hours the time both workingHours share, and the depot the vehicle's. ServiceVehicle's crew and Crew's assignedVehicle record the same pairing from both ends and must agree. workingHours is a list of OpeningHours values (common subject): days of the week and times. A day off or other hours on one day belong to that day's plan (RoutePlan). Depots are Facility entities (facility subject); the example uses the facility example, Chiyoda City Hall, as the depot.
  • Real data: the only data so far is the vehicle settings of a demo (three areas of Nishinomiya and Ashiya). The model is listed as a draft until real data exists (decided 2026-11-23, #326).
  • Draft. The subject name fieldservice and the namespace https://datamodels.jp/ns/fieldservice/ were decided on 2026-11-23 (#326).