OGC-IoT / ogc-iot-api

http://ogc-iot.github.io/ogc-iot-api/index.html
11 stars 3 forks source link

Sensor (shown in Sensing Profile) should be a subclass of Thing. [Comments from Xiang Su, Teemu Leppänen] #19

Open liangsteve opened 10 years ago

liangsteve commented 10 years ago

[NOTE: This is from #15. The above link has more than one issues. In order to make it easier to track, I decide to split them into individual issues]

**Figure 1, to my understanding, Sensor (shown in Sensing Profile) should be a subclass of Thing.

liangsteve commented 10 years ago

In the latest data model, sensor has a navigational relationship to a Datastream. And in fact, as we follow OData's navigational relationships [1], i.e., one entity can link to the other entity through navigation properties (via a link), the data model is not hierarchical (e.g., no subclass). Our data model is similar to linked data (a graph). User can start with a Sensor and then link to the Datastream of that Sensor and vice versa.

[1] Relationships from one entity to another can be represented as navigation properties. (http://docs.oasis-open.org/odata/odata/v4.0/os/part1-protocol/odata-v4.0-os -part1-protocol.html#_Toc372793592)