|
| 1 | +{ |
| 2 | + "$schema": "http://json-schema.org/schema#", |
| 3 | + "$schemaVersion": "0.1.0", |
| 4 | + "$id": "https://smart-data-models.github.io/dataModel.ProcessIndustry/ProcessChemicalAnalysis/schema.json", |
| 5 | + "title": "Smart Data Models - Process chemical analysis event schema", |
| 6 | + "description": "Schema for chemical analyses from industrial processes", |
| 7 | + "type": "object", |
| 8 | + "allOf": [ |
| 9 | + { |
| 10 | + "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" |
| 11 | + }, |
| 12 | + { |
| 13 | + "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" |
| 14 | + }, |
| 15 | + { |
| 16 | + "properties": { |
| 17 | + "type": { |
| 18 | + "type": "string", |
| 19 | + "enum": [ |
| 20 | + "ProcessChemicalAnalysis" |
| 21 | + ], |
| 22 | + "description": "Property. NGSI Entity type. It has to be ProcessChemicalAnalysis" |
| 23 | + }, |
| 24 | + "dateObserved": { |
| 25 | + "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/dateObserved" |
| 26 | + }, |
| 27 | + "processName": { |
| 28 | + "$ref": "https://raw.githubusercontent.com/smart-data-models/incubated/refs/heads/smartmanufacturing-processindustry/SMARTMANUFACTURING/ProcessIndustry/processindustry-schema.json#/definitions/ProcessIndustry-Commons/properties/processName" |
| 29 | + }, |
| 30 | + "heatNumber": { |
| 31 | + "$ref": "https://raw.githubusercontent.com/smart-data-models/incubated/refs/heads/smartmanufacturing-processindustry/SMARTMANUFACTURING/ProcessIndustry/processindustry-schema.json#/definitions/ProcessIndustry-Commons/properties/heatNumber" |
| 32 | + }, |
| 33 | + "chemicalAnalysis": { |
| 34 | + "type": "object", |
| 35 | + "description": "Property. Information about the chemical analysis performed", |
| 36 | + "properties": { |
| 37 | + "sampleNumber": { |
| 38 | + "type": "number", |
| 39 | + "description": "Property. Sample number if multiple samples are taken during a process" |
| 40 | + }, |
| 41 | + "chemicalConcentration": { |
| 42 | + "type": "array", |
| 43 | + "description": "Property. The components in the chemical composition of the material", |
| 44 | + "items": { |
| 45 | + "type": "object", |
| 46 | + "properties": { |
| 47 | + "substance": { |
| 48 | + "type": "string", |
| 49 | + "description": "Property. Chemical substance name or identifier, preferably the chemical symbol" |
| 50 | + }, |
| 51 | + "percentage": { |
| 52 | + "type": "number", |
| 53 | + "minimum": 0, |
| 54 | + "maximum": 1, |
| 55 | + "description": "Property. Percentage of the chemical substance" |
| 56 | + } |
| 57 | + }, |
| 58 | + "required": [ |
| 59 | + "substance", |
| 60 | + "percentage" |
| 61 | + ] |
| 62 | + } |
| 63 | + } |
| 64 | + }, |
| 65 | + "required": [ |
| 66 | + "chemicalConcentration" |
| 67 | + ] |
| 68 | + } |
| 69 | + } |
| 70 | + } |
| 71 | + ], |
| 72 | + "required": [ |
| 73 | + "id", |
| 74 | + "type", |
| 75 | + "chemicalAnalysis" |
| 76 | + ] |
| 77 | +} |
0 commit comments