Skip to content

Commit

Permalink
updated $schema last version
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoabellagarcia committed Sep 17, 2024
1 parent 98ca546 commit c1ce317
Showing 1 changed file with 137 additions and 137 deletions.
274 changes: 137 additions & 137 deletions WasteContainerModel/schema.json
Original file line number Diff line number Diff line change
@@ -1,140 +1,140 @@
{
"$schema": "http://json-schema.org/schema#",
"$schemaVersion": "0.0.1",
"modelTags": "",
"$id": "https://smart-data-models.github.io/dataModel.WasteManagement/WasteContainerModel/schema.json",
"title": " - Waste Management / Waste Container Model",
"description": "A model of waste container which captures the static properties of a class of containers.",
"type": "object",
"allOf": [
{
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
},
{
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/PhysicalObject-Commons"
},
{
"properties": {
"type": {
"type": "string",
"enum": [
"WasteContainerModel"
],
"description": "Property. NGSI Entity Type: It has to be WasteContainerModel"
},
"width": {
"type": "number",
"minimum": 0,
"description": "Property. Width of the container. Model:'https://schema.org/width'. Units:'Meters'"
},
"height": {
"type": "number",
"minimum": 0,
"description": "Property. Height of the container. Model:'https://schema.org/heigth'. Units:'Meters'"
},
"depth": {
"type": "number",
"minimum": 0,
"description": "Property. Depth of the container. Model:'https://schema.org/depth'. Units:'Meters'"
},
"weight": {
"type": "number",
"minimum": 0,
"description": "Property. Weight of the container. Model:'https://schema.org/weigth'. Units:'Kilograms'"
},
"cargoVolume": {
"type": "number",
"minimum": 0,
"description": "Property. Total volume the container can hold. Model:'https://schema.org/cargoVolume'"
},
"maximumLoad": {
"type": "number",
"minimum": 0,
"description": "Property. Maximum load the container can hold safely. Model:'https://schema.org/Number'. Unit:'Kilogram'"
},
"recommendedLoad": {
"type": "number",
"minimum": 0,
"description": "Property. Manufacturer recommended load for the container. Model:'https://schema.org/Number'. Unit:'Kilogram'"
},
"category": {
"type": "array",
"items": {
"type": "string",
"enum": [
"dumpster",
"trashCan",
"wheelieBin",
"other"
]
},
"minItems": 1,
"uniqueItems": true,
"description": "Property. Container\u2019s category. Enum:'dumpster, trashCan, wheelieBin, other'. dumpster . See [https://en.wikipedia.org/wiki/Dumpster](https://en.wikipedia.org/wiki/Dumpster)"
},
"insertHolesNumber": {
"type": "number",
"minimum": 0,
"description": "Property. Number of insert holes the container has. Model:'https://schema.org/Number'"
},
"madeOf": {
"type": "string",
"enum": [
"plastic",
"wood",
"metal",
"other"
],
"description": "Property. Material the container is made of. Enum:' plastic , wood, metal, other '"
},
"madeOfCode": {
"type": "string",
"description": "Property. Material Code as per standard tables. "
},
"brandName": {
"type": "string",
"description": "Property. Name of the brand. Model:'https://schema.org/brand'"
},
"modelName": {
"type": "string",
"description": "Property. Name of the model as given by the manufacturer. This attribute is different than name which is just a codename usually given by municipalities"
},
"manufacturerName": {
"type": "string",
"description": "Property. Name of the manufacturer. "
},
"compliantWith": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 0,
"uniqueItems": true,
"description": "Property. A list of standards to which the container is compliant with (ex. UNE-EN 840-2:2013). "
},
"features": {
"type": "array",
"items": {
"type": "string",
"enum": [
"wheels",
"lid",
"roundedLid",
"insertHoles",
"lockable",
"other"
]
},
"minItems": 1,
"uniqueItems": true,
"description": "Property. A list of container features. Enum:'wheels, lid, roundedLid, insertHoles, lockable'. Any other value meaningful for the application"
}
}
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$schemaVersion": "0.0.1",
"modelTags": "",
"$id": "https://smart-data-models.github.io/dataModel.WasteManagement/WasteContainerModel/schema.json",
"title": " - Waste Management / Waste Container Model",
"description": "A model of waste container which captures the static properties of a class of containers.",
"type": "object",
"allOf": [
{
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
},
{
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/PhysicalObject-Commons"
},
{
"properties": {
"type": {
"type": "string",
"enum": [
"WasteContainerModel"
],
"description": "Property. NGSI Entity Type: It has to be WasteContainerModel"
},
"width": {
"type": "number",
"minimum": 0,
"description": "Property. Width of the container. Model:'https://schema.org/width'. Units:'Meters'"
},
"height": {
"type": "number",
"minimum": 0,
"description": "Property. Height of the container. Model:'https://schema.org/heigth'. Units:'Meters'"
},
"depth": {
"type": "number",
"minimum": 0,
"description": "Property. Depth of the container. Model:'https://schema.org/depth'. Units:'Meters'"
},
"weight": {
"type": "number",
"minimum": 0,
"description": "Property. Weight of the container. Model:'https://schema.org/weigth'. Units:'Kilograms'"
},
"cargoVolume": {
"type": "number",
"minimum": 0,
"description": "Property. Total volume the container can hold. Model:'https://schema.org/cargoVolume'"
},
"maximumLoad": {
"type": "number",
"minimum": 0,
"description": "Property. Maximum load the container can hold safely. Model:'https://schema.org/Number'. Unit:'Kilogram'"
},
"recommendedLoad": {
"type": "number",
"minimum": 0,
"description": "Property. Manufacturer recommended load for the container. Model:'https://schema.org/Number'. Unit:'Kilogram'"
},
"category": {
"type": "array",
"items": {
"type": "string",
"enum": [
"dumpster",
"trashCan",
"wheelieBin",
"other"
]
},
"minItems": 1,
"uniqueItems": true,
"description": "Property. Container\u2019s category. Enum:'dumpster, trashCan, wheelieBin, other'. dumpster . See [https://en.wikipedia.org/wiki/Dumpster](https://en.wikipedia.org/wiki/Dumpster)"
},
"insertHolesNumber": {
"type": "number",
"minimum": 0,
"description": "Property. Number of insert holes the container has. Model:'https://schema.org/Number'"
},
"madeOf": {
"type": "string",
"enum": [
"plastic",
"wood",
"metal",
"other"
],
"description": "Property. Material the container is made of. Enum:' plastic , wood, metal, other '"
},
"madeOfCode": {
"type": "string",
"description": "Property. Material Code as per standard tables. "
},
"brandName": {
"type": "string",
"description": "Property. Name of the brand. Model:'https://schema.org/brand'"
},
"modelName": {
"type": "string",
"description": "Property. Name of the model as given by the manufacturer. This attribute is different than name which is just a codename usually given by municipalities"
},
"manufacturerName": {
"type": "string",
"description": "Property. Name of the manufacturer. "
},
"compliantWith": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 0,
"uniqueItems": true,
"description": "Property. A list of standards to which the container is compliant with (ex. UNE-EN 840-2:2013). "
},
"features": {
"type": "array",
"items": {
"type": "string",
"enum": [
"wheels",
"lid",
"roundedLid",
"insertHoles",
"lockable",
"other"
]
},
"minItems": 1,
"uniqueItems": true,
"description": "Property. A list of container features. Enum:'wheels, lid, roundedLid, insertHoles, lockable'. Any other value meaningful for the application"
}
],
"required": [
"id",
"type",
"name"
]
}
}
],
"required": [
"id",
"type",
"name"
]
}

0 comments on commit c1ce317

Please sign in to comment.