Waste Container Model
Description
A model of waste container which captures the static properties of a class of containers.
Data Model
The data model is defined as shown below:
-
id
: Unique identifier. -
type
: Entity Type. It must be equal toWasteContainerModel
. -
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 container model. It is a "well-known", mnemotechnic or codename. This attribute is different thanmodelName
which conveys the formal model name given by the manufacturer.- Normative References: https://schema.org/name
- Mandatory
-
width
. Width of the container.- Attribute type: Property. Number.
- Default Unit: Meters
- See also: https://schema.org/width
- Optional
-
height
. Height of the container.- Attribute type: Property. Number.
- Default Unit: Meters
- See also: https://schema.org/height
- Optional
-
depth
. Depth of the container.- Attribute type: Property. Number.
- Default Unit: Meters
- See also: https://schema.org/depth
- Optional
-
weight
. Weight of the container.- Attribute type: Property. Number.
- Default Unit: Kilograms
- See also: https://schema.org/weight
- Optional
-
cargoVolume
. Total volume the container can hold.- Attribute type: Property. Number.
- Normative References: https://schema.org/cargoVolume
- Default Unit: liters
- Optional
-
maximumLoad
. Maximum load the container can hold safely.- Attribute type: Property. Number.
- Default Unit: Kilograms
- Optional
-
recommendedLoad
. Manufacturer recommended load for the container.- Attribute type: Property. Number.
- Default Unit: Kilograms
- Optional
-
category
. Container’s category.- Attribute type: Property. List of Text.
- Allowed values (Informative):
dumpster
. See https://en.wikipedia.org/wiki/DumpstertrashCan
.wheelieBin
.- Any other category relevant for the application.
- Optional
-
insertHolesNumber
. Number of insert holes the container has.- Attribute type: Property. Number.
- Optional
-
madeOf
. Material the container is made of.- Attribute type: Property. Text
- Allowed values: one Of (
plastic
,wood
,metal
,other
) - Optional
-
madeOfCode
. Material Code as per standard tables. TBD.- Attribute type: Property. Text
- Optional
-
brandName
. Name of the brand.- Attribute type: Property. Text
- See also: https://schema.org/brand
- Optional
-
modelName
. Name of the model as given by the manufacturer. This attribute is different thanname
which is just a codename usually given by municipalities.- Attribute type: Property. Text
- See also: https://schema.org/model
- Optional
-
manufacturerName
. Name of the manufacturer.- Attribute type: Property. Text
- See also: https://schema.org/model
- Optional
-
description
. Description about the waste container model.- Normative References: https://schema.org/description
- Optional
-
colors
. Available colors.- Attribute type: Property. List of Text
- Allowed Values:
- A color keyword as specified by W3C Color Keywords
- A color value as specified by W3C Color Data Type
- See also: https://schema.org/color
- Optional
-
image
. A URL containing a photo of the container model.- Normative References: https://schema.org/image
- Optional
-
compliantWith
. A list of standards to which the container is compliant with (ex.UNE-EN 840-2:2013
)- AttributeType: List of Text.
- Optional
-
features
. A list of container features.- Attribute type: Property. List of Text
- Allowed Values:
wheels
lid
roundedLid
insertHoles
lockable
- Any other value meaningful for the application.
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": "wastecontainermodel:c1",
"type": "WasteContainerModel",
"category": {
"value": ["dumpster"]
},
"cargoVolume": {
"value": 150
},
"modelName": {
"value": "C1"
},
"name": {
"value": "Dumpster_Brute_2009_Plastic_Green"
},
"compliantWith": {
"value": ["UNE-EN 840-2:2013"]
},
"madeOf": {
"value": "plastic"
},
"height": {
"value": 0.8
},
"width": {
"value": 0.5
},
"depth": {
"value": 0.4
},
"brandName": {
"value": "Brute"
},
"features": {
"value": ["wheels", "lid"]
}
}
key-value pairs Example
Sample uses simplified representation for data consumers ?options=keyValues
{
"id": "wastecontainermodel:c1",
"type": "WasteContainerModel",
"name": "Dumpster_Plastic_Brute_2009",
"width": 0.5,
"height": 0.8,
"depth": 0.4,
"cargoVolume": 150,
"brandName": "Brute",
"modelName": "C1",
"compliantWith": ["UNE-EN 840-2:2013"],
"madeOf": "plastic",
"features": ["wheels", "lid"],
"category": ["dumpster"]
}
LD Example
Sample uses the NGSI-LD representation
{
"id": "urn:ngsi-ld:WasteContainerModel:wastecontainermodel:c1",
"type": "WasteContainerModel",
"category": {
"type": "Property",
"value": ["dumpster"]
},
"cargoVolume": {
"type": "Property",
"value": 150
},
"modelName": {
"type": "Property",
"value": "C1"
},
"name": {
"type": "Property",
"value": "Dumpster_Brute_2009_Plastic_Green"
},
"compliantWith": {
"type": "Property",
"value": ["UNE-EN 840-2:2013"]
},
"madeOf": {
"type": "Property",
"value": "plastic"
},
"height": {
"type": "Property",
"value": 0.8
},
"width": {
"type": "Property",
"value": 0.5
},
"depth": {
"type": "Property",
"value": 0.4
},
"brandName": {
"type": "Property",
"value": "Brute"
},
"features": {
"type": "Property",
"value": ["wheels", "lid"]
},
"@context": [
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
"https://schema.lab.fiware.org/ld/context"
]
}