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 7885499 commit f113777
Showing 1 changed file with 81 additions and 81 deletions.
162 changes: 81 additions & 81 deletions GreenEnergyGenerator/schema.json
Original file line number Diff line number Diff line change
@@ -1,85 +1,85 @@
{
"$schema": "http://json-schema.org/schema#",
"modelTags": "",
"$id": "https://smart-data-models.github.io/dataModel.GreenEnergy/GreenEnergyGenerator/schema.json",
"title": "GSMA / Smart Data Models - GreenEnergyGenerator",
"description": "A generic generator station which can generate energy from green energy",
"$schemaVersion": "0.0.3",
"type": "object",
"allOf": [
{
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
"$schema": "https://json-schema.org/draft/2020-12/schema",
"modelTags": "",
"$id": "https://smart-data-models.github.io/dataModel.GreenEnergy/GreenEnergyGenerator/schema.json",
"title": "GSMA / Smart Data Models - GreenEnergyGenerator",
"description": "A generic generator station which can generate energy from green energy",
"$schemaVersion": "0.0.3",
"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/Location-Commons"
},
{
"properties": {
"type": {
"type": "string",
"enum": [
"GreenEnergyGenerator"
],
"description": "Property. NGSI Entity Type. It has to be GreenEnergyGenerator. Model:'https://schema.org/Text'"
},
{
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons"
"status": {
"type": "string",
"description": "Property. Status of the green energy generator. Model:'https://schema.org/Text'. Enum:'outOfService, withIncidence, working'",
"enum": [
"outOfService",
"withIncidence",
"working"
]
},
{
"properties": {
"type": {
"type": "string",
"enum": [
"GreenEnergyGenerator"
],
"description": "Property. NGSI Entity Type. It has to be GreenEnergyGenerator. Model:'https://schema.org/Text'"
},
"status": {
"type": "string",
"description": "Property. Status of the green energy generator. Model:'https://schema.org/Text'. Enum:'outOfService, withIncidence, working'",
"enum": [
"outOfService",
"withIncidence",
"working"
]
},
"generationSources": {
"type": "array",
"description": "Property. A list of sources used for power generation. Model:'https://schema.org/ItemList'. Enum:'biomass, eolic, geothermal, hydropower, solar'",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"biomass",
"eolic",
"geothermal",
"hydropower",
"solar"
]
}
},
"selfConsumption": {
"type": "boolean",
"description": "Property. Indicate whether energy generated will use for self. Model:'https://schema.org/Boolean'"
},
"redistribution": {
"type": "boolean",
"description": "Property. Indicates whether the generated energy will be dumped into the network. Model:'https://schema.org/Boolean'"
},
"maxSolarPowerGenerated": {
"type": "number",
"description": "Property. Model:'https://schema.org/Number'. A measure of maximum solar energy that can be generated. Units:'KWT'. The unit code (text) of measurement given using the UN/CEFACT Common Code (max. 3 characters)"
},
"maxEolicPowerGenerated": {
"type": "number",
"description": "Property. Model:'https://schema.org/Number'. A measure of maximum eolic energy that can be generated. Units:'KWT'. The unit code (text) of measurement given using the UN/CEFACT Common Code (max. 3 characters)"
},
"maxHydroPowerGenerated": {
"type": "number",
"description": "Property. Model:'https://schema.org/Number'. A measure of maximum hydropower energy that can be generated. Units:'KWT'. The unit code (text) of measurement given using the UN/CEFACT Common Code (max. 3 characters)"
},
"maxBiomassPowerGenerated": {
"type": "number",
"description": "Property. Model:'https://schema.org/Number'. A measure of maximum biomass energy that can be generated. Units:'KWT'. The unit code (text) of measurement given using the UN/CEFACT Common Code (max. 3 characters)"
},
"maxGeothermalPowerGenerated": {
"type": "number",
"description": "Property. Model:'https://schema.org/Number'. A measure of maximum geothermal energy that can be generated. Units:'KWT'. The unit code (text) of measurement given using the UN/CEFACT Common Code (max. 3 characters)"
}
}
"generationSources": {
"type": "array",
"description": "Property. A list of sources used for power generation. Model:'https://schema.org/ItemList'. Enum:'biomass, eolic, geothermal, hydropower, solar'",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"biomass",
"eolic",
"geothermal",
"hydropower",
"solar"
]
}
},
"selfConsumption": {
"type": "boolean",
"description": "Property. Indicate whether energy generated will use for self. Model:'https://schema.org/Boolean'"
},
"redistribution": {
"type": "boolean",
"description": "Property. Indicates whether the generated energy will be dumped into the network. Model:'https://schema.org/Boolean'"
},
"maxSolarPowerGenerated": {
"type": "number",
"description": "Property. Model:'https://schema.org/Number'. A measure of maximum solar energy that can be generated. Units:'KWT'. The unit code (text) of measurement given using the UN/CEFACT Common Code (max. 3 characters)"
},
"maxEolicPowerGenerated": {
"type": "number",
"description": "Property. Model:'https://schema.org/Number'. A measure of maximum eolic energy that can be generated. Units:'KWT'. The unit code (text) of measurement given using the UN/CEFACT Common Code (max. 3 characters)"
},
"maxHydroPowerGenerated": {
"type": "number",
"description": "Property. Model:'https://schema.org/Number'. A measure of maximum hydropower energy that can be generated. Units:'KWT'. The unit code (text) of measurement given using the UN/CEFACT Common Code (max. 3 characters)"
},
"maxBiomassPowerGenerated": {
"type": "number",
"description": "Property. Model:'https://schema.org/Number'. A measure of maximum biomass energy that can be generated. Units:'KWT'. The unit code (text) of measurement given using the UN/CEFACT Common Code (max. 3 characters)"
},
"maxGeothermalPowerGenerated": {
"type": "number",
"description": "Property. Model:'https://schema.org/Number'. A measure of maximum geothermal energy that can be generated. Units:'KWT'. The unit code (text) of measurement given using the UN/CEFACT Common Code (max. 3 characters)"
}
],
"required": [
"id",
"type"
]
}
}
}
],
"required": [
"id",
"type"
]
}

0 comments on commit f113777

Please sign in to comment.