Skip to content
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

URIs as unit values #12

Closed
cabo opened this issue Jan 11, 2021 · 5 comments
Closed

URIs as unit values #12

cabo opened this issue Jan 11, 2021 · 5 comments

Comments

@cabo
Copy link
Member

@cabo cabo commented Jan 11, 2021

Should we explicitly add that non-colon values for the "unit" quality are registered SenML units and colon-containing values are general URIs?
(OneDM can still decide which of these it wants to use and when, but the language would be more flexible.)

[Via discussion at OneDM call 2021-01-11]

@cabo cabo added the 1.next label Jan 12, 2021
@akeranen
Copy link
Collaborator

@akeranen akeranen commented Jan 12, 2021

This seems like a good way to cover units that are not suitable for the SenML IANA registry. Such units would not provide the same level of interoperability so primary option, when possible (i.e., the units are reasonable engineering units), should be to add new units to the IANA registry and provide the scale/offset mapping when needed.

Perhaps we should revisit this issue when we get first use cases of models with units not suitable for the IANA registry.

@cabo
Copy link
Member Author

@cabo cabo commented Apr 21, 2021

We now seem to have a potential use case: the unit "slug" is defined in Microsoft DTDL, but is not currently scheduled to be added to the SenML second registry.

Ways out:

  • set up the SenML second registry to be the kitchen sink, by needing a registration even for less likely units,
  • open up to URIs.

The latter has a certain danger in that it is easier to create an ecosystem-specific URI than to register a (likely common) SenML unit, so it promotes fragmentation. There is also the discovery problem: How does one find the right URI even for a well-defined ecosystem?

@akeranen
Copy link
Collaborator

@akeranen akeranen commented Sep 20, 2021

Discussed today in OneDM call: perhaps 3-level approach makes sense: 1) SenML units as default option 2) set of registered CURIE prefixes to most common unit ontologies (ucum, qudt, om, etc.) 3) full URIs if 1 or 2 don't work (with appropriate warnings for challenges with interop when using 2 or 3).

Also having ontology mapping from SenML units to other common units ontologies to help with translations.

@cabo
Copy link
Member Author

@cabo cabo commented Sep 20, 2021

@cabo
Copy link
Member Author

@cabo cabo commented Nov 12, 2021

closed by #39 (e0b6423)

@cabo cabo closed this Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants