Vehicle Model

This repository is now archived and subsequent works will be carried out the in Smart data models repositories.The latest version of this Data Model can be found at https://github.com/smart-data-models/ dataModel.Transportation

Description

This entity models a particular vehicle model, including all properties which are common to multiple vehicle instances belonging to such model.

Data Model

The data model is defined as shown below:

  • id : Entity's unique identifier.

  • type : Entity type. It must be equal to VehicleModel.

  • source : A sequence of characters giving the source of the entity data.

    • Attribute type: Property. Text or URL
    • Optional
  • dataProvider : Specifies the URL to information about the provider of this information

    • Attribute type: Property. URL
    • Optional
  • name : Name given to this vehicle model.

    • Attribute type: Property. Text.
    • Normative References: https://uri.etsi.org/ngsi-ld/name equivalent to name
    • Mandatory
  • description : Vehicle model description.

    • Attribute type: Property. Text
    • Normative References: https://uri.etsi.org/ngsi-ld/description equivalent to description
    • Optional
  • vehicleType : Type of vehicle from the point of view of its structural characteristics.

    • See definition at Vehicle.
    • Mandatory
  • brandName : Vehicle's brand name.

  • modelName : Vehicle's model name.

  • manufacturerName : Vehicle's manufacturer name.

  • vehicleModelDate : The release date of a vehicle model (often used to differentiate versions of the same make and model).

  • cargoVolume : The available volume for cargo or luggage. For automobiles, this is usually the trunk volume.

    • Normative References: https://schema.org/cargoVolume
    • Default Unit: Liters
    • Optional
    • Note: If only a single value is provided (type Number) it will refer to the maximum volume.
  • fuelType : The type of fuel suitable for the engine or engines of the vehicle.

    • Normative References: https://schema.org/fuelType
    • Allowed values: one Of (gasoline, petrol(unleaded), petrol(leaded), petrol, diesel, electric, hydrogen, lpg, autogas, cng, biodiesel ethanol, hybrid electric/petrol, hybrid electric/diesel, other)
    • Optional
  • fuelConsumption : The amount of fuel consumed for traveling a particular distance or temporal duration with the given vehicle (e.g. liters per 100 km).

  • height : Vehicle's height.

  • width : Vehicle's width.

  • depth : Vehicle's depth.

  • weight : Vehicle's weight.

  • vehicleEngine : Information about the engine or engines of the vehicle.

  • url : URL which provides a description of this vehicle model.

  • image: Image which depicts this vehicle model.

  • dateModified : Last update timestamp of this entity.

    • Attribute type: Property. DateTime
    • Read-Only. Automatically generated.
  • dateCreated : Creation timestamp of this entity.

    • Attribute type: Property. DateTime
    • Read-Only. Automatically generated.

Note: JSON Schemas are intended to capture the data type and associated constraints of the different Attributes, regardless their final representation format in NGSI(v2, LD).

Examples

Normalized Example

Normalized NGSI response

{
    "id": "vehiclemodel:econic",
    "type": "VehicleModel",
    "name": {
        "value": "MBenz-Econic2014"
    },
    "cargoVolume": {
        "value": 1000
    },
    "modelName": {
        "value": "Econic"
    },
    "brandName": {
        "value": "Mercedes Benz"
    },
    "manufacturerName": {
        "value": "Daimler"
    },
    "fuelType": {
        "value": "diesel"
    },
    "vehicleType": {
        "value": "lorry"
    }
}

key-value pairs Example

Sample uses simplified representation for data consumers ?options=keyValues

{
    "id": "vehiclemodel:econic",
    "type": "VehicleModel",
    "name": "MBenz-Econic2014",
    "brandName": "Mercedes Benz",
    "modelName": "Econic",
    "manufacturerName": "Daimler",
    "vehicleType": "lorry",
    "cargoVolume": 1000,
    "fuelType": "diesel"
}

LD Example

Sample uses the NGSI-LD representation

{
    "id": "urn:ngsi-ld:VehicleModel:vehiclemodel:econic",
    "type": "VehicleModel",
    "name": {
        "type": "Property",
        "value": "MBenz-Econic2014"
    },
    "cargoVolume": {
        "type": "Property",
        "value": 1000
    },
    "modelName": {
        "type": "Property",
        "value": "Econic"
    },
    "brandName": {
        "type": "Property",
        "value": "Mercedes Benz"
    },
    "manufacturerName": {
        "type": "Property",
        "value": "Daimler"
    },
    "fuelType": {
        "type": "Property",
        "value": "diesel"
    },
    "vehicleType": {
        "type": "Property",
        "value": "lorry"
    },
    "@context": [
        "https://schema.lab.fiware.org/ld/context",
        "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
    ]
}

Test it with a real service

Open issues

  • Model fuelConsumption depending on the situation (urban or road)