Azure / opendigitaltwins-dtdl

Digital Twins Definition Language
Creative Commons Attribution 4.0 International
473 stars 161 forks source link

Add a more generic semantic type for percentages #140

Open mwdhont-auge opened 1 year ago

mwdhont-auge commented 1 year ago

It would be good to also have a more generic type where one can express that the values should be filled in with percentages, or a double between 0 and 1.

rido-min commented 1 year ago

Hi @mwdhont-auge

We are reviewing DTDL v3 with a revised quantitativeTypes

Can you take a look and see if the Unitless percent matches your needs?

mwdhont-auge commented 1 year ago

Hi,

I should have been more specific in my request. More specifically I'm looking for cases where efficiency is expressed. Would it be possible to add 'Efficiency' as Semantic Type?

Best, Michiel

rido-min commented 1 year ago

/c @jrdouceur

helynranta commented 1 year ago

+1 for adding some generic semantic type. We have many properties which are some unique percentage that are not covered in quantitativeTypes extension. It would be great to have a generic/universal semantic type that would allow using any of the units in extension for adding metadata.

koppor commented 10 months ago

This relates to the discussion at https://github.com/Azure/opendigitaltwins-dtdl/issues/173.

Currently, I am very much in favor to make use of QUDT - 'Quantity, Unit, Dimension and Type' collection. At https://github.com/Azure/opendigitaltwins-dtdl/issues/173#issuecomment-1831700955, I provided examples for it.