-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Test description] SPT #58
Comments
{ |
Alternatives to address values / units : option 1: separated properties option 2: value and unit together option 3: reference to a doc that specify the unit |
I would suggest that option 2 above is the cleanest way to handle measurement values where there may be a unit, and wheer applicable, a reason for a null value, using the following object: {"value": "...","uom": "...","nilreason": "..."}, where ... indicates the inserted value. I would also like to propose an "other": property, an object to hold values for properties not ore-defined iwithin another object - it would look something like the following: {"propertyName": "...","value": "...","uom": "..."} I also think that where there is a logical organization of properties (eg. info about equipment or the standard used) that these be combined into objects. Question: Does JSON allow repeated properties of the same name? (eg. cardinality > 1). This should be the case for the "other": object where there may be more than one additional property added. See below an example for SPT that includes test proceure properties also extracted from DIGGS: "@iot.id": 1,
} |
No and Yes. But in the case of this "other" property, the sub-properties in this won't have duplicate names, so the better way of modeling this is:
|
This issue is for the provision of examples of SPT declarations as Sensor instance in STA.
{
"@iot.id": 1,
"sensorType": "Ideally an entry of a controlled vocabulary to identify the type of test that is performed.",
"name": "A name given to the test that was performed. Most of the time the code / name that is used to mentionned the test",
"description": "Free text you can write to describe the test that was performed",
"metadata": "A link to a resource that propose extra information about the test",
"encodingType": "Type of encoding that is used for the metadata",
"properties": {
}
}
The text was updated successfully, but these errors were encountered: