fablabbcn / smartcitizen-api

The Smart Citizen Engine
https://developer.smartcitizen.me
GNU Affero General Public License v3.0
10 stars 4 forks source link

Extra fields to measurements and sensors #295

Closed oscgonfer closed 1 week ago

oscgonfer commented 5 months ago

So, as part of our efforts to be a bit more FAIR and given that we are currently forwarding data to other Standard platforms (see https://citiobs.demo.secure-dimensions.de/staplus/v1.1), I suggest an enhancement to our Measurements and Sensors model to contain additional information, that would make our platform more traceable and more "interoperable".

Measurements

Add definition field, with type str, to contain a link to a standard vocabulary definition for the measured property, such as: https://vocabs.lter-europe.net/envthes/en/page/?uri=http://vocabs.lter-europe.net/EnvThes/21579

Sensors

Add three fields: datasheet, encoding and unit_definition:

~These properties should be subject to CRUD operations by admin role only once we work on: https://github.com/fablabbcn/smartcitizen-api/issues/229~

timcowlishaw commented 2 weeks ago

Addressed in #332