Skip to content

Commit

Permalink
Merge pull request #142 from bci-oss/Add_gen_to_IotSensorData
Browse files Browse the repository at this point in the history
Add generated files for IoTSensorData model
  • Loading branch information
bs-jokri authored Apr 17, 2023
2 parents e0376b7 + 0ff06b4 commit a8ef1ed
Show file tree
Hide file tree
Showing 6 changed files with 3,655 additions and 0 deletions.
1,209 changes: 1,209 additions & 0 deletions io.catenax.iot_sensor_data/1.0.0/gen/IotSensorData-aas.xml

Large diffs are not rendered by default.

200 changes: 200 additions & 0 deletions io.catenax.iot_sensor_data/1.0.0/gen/IotSensorData-schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
{
"$schema" : "http://json-schema.org/draft-04/schema",
"description" : "The data collected by an IoT Sensor Device.",
"type" : "object",
"components" : {
"schemas" : {
"urn_bamm_io.catenax.iot_sensor_data_1.0.0_LatitudeCharacteristic" : {
"type" : "number",
"description" : "Characteristic describing the property latitude."
},
"urn_bamm_io.catenax.iot_sensor_data_1.0.0_LongitudeCharacteristic" : {
"type" : "number",
"description" : "Characteristic describing the property longitude."
},
"urn_bamm_io.catenax.iot_sensor_data_1.0.0_AltitudeCharacteristic" : {
"type" : "number",
"description" : "Characteristic describing the property altitude."
},
"urn_bamm_io.openmanufacturing_characteristic_2.0.0_Timestamp" : {
"type" : "string",
"pattern" : "-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?",
"description" : "Describes a Property which contains the date and time with an optional timezone."
},
"urn_bamm_io.catenax.iot_sensor_data_1.0.0_GeoDataCharacteristic" : {
"description" : "Characteristic to describe the related Geo data.",
"type" : "object",
"properties" : {
"latitude" : {
"description" : "The angle between zenith and a plane parallel to the equator.",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.iot_sensor_data_1.0.0_LatitudeCharacteristic"
},
"longitude" : {
"description" : "Geographic coordinate that specifies the east-west position of a point on the Earth's surface.",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.iot_sensor_data_1.0.0_LongitudeCharacteristic"
},
"altitude" : {
"description" : "Antenna Altitude above/below mean-sea-level (geoid).",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.iot_sensor_data_1.0.0_AltitudeCharacteristic"
},
"geoDataTimestamp" : {
"description" : "The timestamp of the latest sensor reading of the geo data.",
"$ref" : "#/components/schemas/urn_bamm_io.openmanufacturing_characteristic_2.0.0_Timestamp"
}
}
},
"urn_bamm_io.catenax.iot_sensor_data_1.0.0_BatteryLevelCharacteristic" : {
"type" : "number",
"description" : "Characteristic to describe the property battery level."
},
"urn_bamm_io.catenax.iot_sensor_data_1.0.0_HumidityCharacteristic" : {
"type" : "number",
"description" : "Characteristic that describes the property humidity."
},
"urn_bamm_io.catenax.iot_sensor_data_1.0.0_FillingLevelCharacteristic" : {
"type" : "number",
"description" : "Characteristic that describes the property filling level."
},
"urn_bamm_io.catenax.iot_sensor_data_1.0.0_TemperatureCharacteristic" : {
"type" : "number",
"description" : "Characteristic that describes the property temperature."
},
"urn_bamm_io.catenax.iot_sensor_data_1.0.0_LightCharacteristic" : {
"type" : "number",
"description" : "Characteristic that describes the property light."
},
"urn_bamm_io.catenax.iot_sensor_data_1.0.0_AccelerationCharacteristic" : {
"type" : "number",
"description" : "Characteristic that describes the property acceleration."
},
"urn_bamm_io.catenax.iot_sensor_data_1.0.0_WeightCharacteristic" : {
"type" : "number",
"description" : "Characteristic that describes the property weight."
},
"urn_bamm_io.catenax.iot_sensor_data_1.0.0_PressureCharacteristic" : {
"type" : "number",
"description" : "Characteristic that describes the property pressure."
},
"urn_bamm_io.catenax.iot_sensor_data_1.0.0_BinarySensorCharacteristic" : {
"type" : "number",
"description" : "Characteristic that describes the property binary sensor.",
"enum" : [ 0, 1 ]
},
"urn_bamm_io.catenax.iot_sensor_data_1.0.0_SoundSensorCharacteristic" : {
"type" : "number",
"description" : "Characteristic that describes the property sound sensor."
},
"urn_bamm_io.catenax.iot_sensor_data_1.0.0_TransmissionMethodCharacteristic" : {
"type" : "string",
"description" : "Characteristic that describes the property transmission method."
},
"urn_bamm_io.catenax.iot_sensor_data_1.0.0_AnalogSensorNumberCharacteristic" : {
"type" : "number",
"description" : "Characteristic of the analog sensor number property.",
"enum" : [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 1E+1 ]
},
"urn_bamm_io.catenax.iot_sensor_data_1.0.0_AnalogSensorValueCharacteristic" : {
"type" : "number",
"description" : "Characteristic describing the property analog sensor value. "
},
"urn_bamm_io.catenax.iot_sensor_data_1.0.0_AnalogSensorEntity" : {
"description" : "Encapsulates all analog sensor properties.",
"type" : "object",
"properties" : {
"analogSensorNumber" : {
"description" : "Characteristic describing the number of Analog sensor.",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.iot_sensor_data_1.0.0_AnalogSensorNumberCharacteristic"
},
"analogSensorValue" : {
"description" : "The value of the analog sensor. ",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.iot_sensor_data_1.0.0_AnalogSensorValueCharacteristic"
}
},
"required" : [ "analogSensorNumber", "analogSensorValue" ]
},
"urn_bamm_io.catenax.iot_sensor_data_1.0.0_AnalogSensorCharacteristic" : {
"description" : "Characteristic that describes the property analog sensor.",
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/urn_bamm_io.catenax.iot_sensor_data_1.0.0_AnalogSensorEntity"
}
},
"urn_bamm_io.catenax.iot_sensor_data_1.0.0_CatenaXIdTrait" : {
"type" : "string",
"description" : "The provided regular expression ensures that the UUID is composed of five groups of characters separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 hexadecimal characters and 4 hyphens), optionally prefixed by \"urn:uuid:\" to make it an IRI.",
"pattern" : "(^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)|(^urn:uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)"
},
"urn_bamm_io.catenax.iot_sensor_data_1.0.0_ErrorCodeCharacteristic" : {
"type" : "number",
"description" : "A characteristic describing the property error code."
}
}
},
"properties" : {
"geoData" : {
"description" : "Geodata, geographic data or geospatial data, refers to data and information that has explicit or implicit association with a location relative to Earth.",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.iot_sensor_data_1.0.0_GeoDataCharacteristic"
},
"batteryLevel" : {
"description" : "The battery level displays how much charge of the battery has been left.",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.iot_sensor_data_1.0.0_BatteryLevelCharacteristic"
},
"humidity" : {
"description" : "Describes the concentration of water vapor present in the air.",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.iot_sensor_data_1.0.0_HumidityCharacteristic"
},
"fillingLevel" : {
"description" : "Volume percentage of a liquid or solid filling material in a container or vessel.",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.iot_sensor_data_1.0.0_FillingLevelCharacteristic"
},
"temperature" : {
"description" : "Physical quantity that expresses quantitatively the perceptions of hotness and coldness.",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.iot_sensor_data_1.0.0_TemperatureCharacteristic"
},
"timestampSensoric" : {
"description" : "The timestamp of the latest sensor reading.",
"$ref" : "#/components/schemas/urn_bamm_io.openmanufacturing_characteristic_2.0.0_Timestamp"
},
"light" : {
"description" : "The measure of brightness of a light source in terms of energy being emitted.",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.iot_sensor_data_1.0.0_LightCharacteristic"
},
"acceleration" : {
"description" : "The rate of change of the velocity of an object with respect to time.",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.iot_sensor_data_1.0.0_AccelerationCharacteristic"
},
"weight" : {
"description" : "Measured weight at timestamp.",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.iot_sensor_data_1.0.0_WeightCharacteristic"
},
"pressure" : {
"description" : "Force applied over an area.",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.iot_sensor_data_1.0.0_PressureCharacteristic"
},
"binarySensor" : {
"description" : "Binary sensor monitors the state of condition of the parent assets.",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.iot_sensor_data_1.0.0_BinarySensorCharacteristic"
},
"soundSensor" : {
"description" : "Measured sound pressure level - local pressure deviation from the ambient pressure, caused by a sound wave.",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.iot_sensor_data_1.0.0_SoundSensorCharacteristic"
},
"transmissionMethod" : {
"description" : "The method under which the sensing data is transmitted from the source to the remote node.",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.iot_sensor_data_1.0.0_TransmissionMethodCharacteristic"
},
"analogSensor" : {
"description" : "Sensor that produce continuous analog output signal.",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.iot_sensor_data_1.0.0_AnalogSensorCharacteristic"
},
"catenaXId" : {
"description" : "The fully anonymous Catena-X ID of the asset, valid for the Catena-X dataspace.",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.iot_sensor_data_1.0.0_CatenaXIdTrait"
},
"errorCode" : {
"description" : "A numeric code that is used to determine the nature of an error and why it occured. The mapping is defined by the Asset Tracking Platform",
"$ref" : "#/components/schemas/urn_bamm_io.catenax.iot_sensor_data_1.0.0_ErrorCodeCharacteristic"
}
},
"required" : [ "timestampSensoric", "catenaXId" ]
}
Binary file not shown.
1,917 changes: 1,917 additions & 0 deletions io.catenax.iot_sensor_data/1.0.0/gen/IotSensorData.html

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions io.catenax.iot_sensor_data/1.0.0/gen/IotSensorData.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"catenaXId" : "urn:uuid:ed85f17e-29dd-473c-9cb8-d7ad1dc44d2f",
"weight" : 15.50,
"errorCode" : 105,
"pressure" : 2.60,
"geoData" : {
"altitude" : 280.20,
"geoDataTimestamp" : "2023-02-04T14:48:54",
"latitude" : 4807.03,
"longitude" : 1131.02
},
"timestampSensoric" : "2023-02-05T15:48:54",
"acceleration" : 33.528,
"binarySensor" : 0,
"light" : 450.00,
"temperature" : 25.00,
"humidity" : 74.00,
"soundSensor" : 48.00,
"analogSensor" : [ {
"analogSensorNumber" : 1,
"analogSensorValue" : 2.55
} ],
"batteryLevel" : 50.00,
"fillingLevel" : 45.00,
"transmissionMethod" : "LoRaWAN"
}
Loading

0 comments on commit a8ef1ed

Please sign in to comment.