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

Feature Request: Add type of measure and scale and/or relationships #7

Open
mkllnk opened this issue Aug 28, 2023 · 3 comments
Open
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@mkllnk
Copy link

mkllnk commented Aug 28, 2023

Implementing the interpretation of measurements, I'm mapping all units into a common, scalable data format consisting of:

  • type of measure: item, weight or volume
  • unit name: litre, tonne, basket, six pack, ...
  • unit scale: 1, 1000, 1, 6

This could be done in the DFC Connector to not repeat it in every application but we could also store it in the measures.json. It contains the name already. It could either have one of the three types and a scale or each measure could refer to a reference measure of that type with scale. For example, a six-pack could say it's 6 x piece. A millilitre would be 0.001 x litre. We could use SI base units for this.

It would enable every application to compute the total weight or volume of a product without knowing all units. And if the DFC adds a Li (Chinese mile) to the database then all applications would understand it without adding any logic.

mkllnk added a commit to mkllnk/openfoodnetwork that referenced this issue Aug 30, 2023
We still have the scale stored in two places but in our current system
that's part of a unit's "id".

If the DFC adds that value to its standard then we can use it for lookup
and don't need to repeat it.

* datafoodconsortium/taxonomies#7
mkllnk added a commit to mkllnk/openfoodnetwork that referenced this issue Aug 30, 2023
We still have the scale stored in two places but in our current system
that's part of a unit's "id".

If the DFC adds that value to its standard then we can use it for lookup
and don't need to repeat it.

* datafoodconsortium/taxonomies#7
drummer83 pushed a commit to drummer83/openfoodnetwork that referenced this issue Sep 9, 2023
We still have the scale stored in two places but in our current system
that's part of a unit's "id".

If the DFC adds that value to its standard then we can use it for lookup
and don't need to repeat it.

* datafoodconsortium/taxonomies#7
@RaggedStaff RaggedStaff added the enhancement New feature or request label Jan 14, 2024
@RaggedStaff RaggedStaff added this to the 1.4 milestone May 2, 2024
@RaggedStaff
Copy link

We have identified the QUDT ontology to align with for unit conversion.

@Alcoz will match our measures values with sameAs

We need to select which units to link

@mkllnk
Copy link
Author

mkllnk commented May 3, 2024

I guess that you are referring to https://qudt.org/. Looks comprehensive, and huge.

I wonder if any semantic web system has to know most of the semantic web ontologies because it's all connected. 😉

@RaggedStaff
Copy link

I guess that you are referring to https://qudt.org/. Looks comprehensive, and huge.

Yep, sorry not clear. I was rushing.

We won't be using all of it - just referencing the measures we need to with SameAs & that will allow apps to pull in the conversion logic.

I wonder if any semantic web system has to know most of the semantic web ontologies because it's all connected. 😉

Definitely... and, it seems to me, no-one has that knowledge & wheels are being reinvented all over the place! 🙄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

4 participants