-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7885499
commit f113777
Showing
1 changed file
with
81 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} |