-
Notifications
You must be signed in to change notification settings - Fork 1
OpenTSDB mapping schema
Maxim Kolchin edited this page Mar 14, 2016
·
1 revision
SemIoT Platform uses OpenTSDB for storing sensor observations, but since OpenTSDB doesn't support RDF, a mapping RDF descriptions of the observations was created.
- Metric - is filled by the Device ID, e.g.
3026516628. - Tags:
-
property- is the URI of thessn:observedPropertyvalue; -
feature_of_interest- is the URI of thessn:featureOfInterestvalue, iff a triple with this predicate exists; -
value_type- is the URI of the observation value type.qudt:Enumerationandqudt:QuantityValueare supported; -
sensor_uri- is the URI of thessn:observedByvalue; -
enum_value- is filled by the URI of the Enumeration value, iff value_type is equal toqudt:Enumeration.
-
Since OpenTSDB doesn't allow to store URLs in tags, the following encoding algorithms is used:
- Encode the given URI,
- Replace all
%characters with/.
The decode algorithm is the following:
- Replace all
/characters with%, - Decode the given URI.