ontology icon indicating copy to clipboard operation
ontology copied to clipboard

Units with prefixes and composed units

Open chrwm opened this issue 2 years ago • 9 comments

Description of the issue

When annotating data in practice some units might not be present in the OEO. This could be specific units, as cited below, or units that appear more frequently in our domain, such as kW, MW, GW - which are all not present in the OEO yet.

I understand the units are imported from the "Unit Ontology" and find it strange that some units have more detailed prefixes, e.g. mass unit -> picogram, gram, kilogram, ..., than others.

Unit with prefix annotation: If units have a prefix such as kilo, giga etc. it is usually appended to the unit with k-, g- etc. and this way a part of the unit. Sometimes it happens that there is column with a certain measurement magnitude e.g., column “passengers (thousand)”. How should the “thousand” in such a case be handled? As a kilo to the unit like a normal prefix or as a kilo-concept to the parameter reference?

Originally posted by @lumi321 in https://github.com/OpenEnergyPlatform/oeplatform/discussions/1107#discussioncomment-4147168

Composed and rather rare units I'd consider to implement on demand in the future.

Ideas of solution

Add units that are frequently used in domain but still missing in OEO, such as

  • kilowatt
  • megawatt
  • gigawatt
  • ...

TODO check rest of UO to complete list

Workflow checklist

  • [x] I am aware of the workflow for this repository

chrwm avatar Nov 16 '22 20:11 chrwm

Composed and rather rare units I'd consider to implement on demand in the future.

But implementing on demand might be slow. We should at least discuss how to deal with composed units in general, e.g. €/MW.

stap-m avatar Nov 17 '22 10:11 stap-m

This is a very important issue and we probably won't solve it as issue discussion. So I put it on the agenda for the next oeo dev meeting. https://etherpad.wikimedia.org/p/oeo-dev-49

l-emele avatar Nov 18 '22 08:11 l-emele

Related to this is issue OpenEnergyPlatform/oeo-extended#10 about specific units.

lumi321 avatar Nov 18 '22 14:11 lumi321

We had yesterday the physical meeting on composed concepts. We made progress, but do not have a final solution. Thus I postpone this issue.

l-emele avatar Jan 26 '23 13:01 l-emele

Related to OpenEnergyPlatform/ontology#1690

stap-m avatar Nov 28 '23 14:11 stap-m

@chrwm : I suggest to close this issue now:

  • With issue OpenEnergyPlatform/ontology#1815 / PR OpenEnergyPlatform/ontology#1816 we implement the necessary object property for relating units to the unit components.
  • With the oeo-extended we have place to manually (and in future automatically) add composed units,

If you agree, please close this issue.

l-emele avatar Feb 23 '24 12:02 l-emele

I reopen this issue. We need a relation between units and prefixes. Either we use 'has part' or create a subproperty 'has prefix': For example: Gigawatt EquivalentTo watt and 'has prefix' some giga This is important for oeo-extended as well.

stap-m avatar Mar 20 '24 14:03 stap-m

The units ontology has the object property has_prefix. My understanding was that this will be imported, but seemingly we forgot this in OpenEnergyPlatform/ontology#1690

l-emele avatar Mar 20 '24 14:03 l-emele

For an example of quantity-related classes (OO software) see https://github.com/OpenEnergyPlatform/ontology/issues/1510

UStucky avatar Mar 21 '24 13:03 UStucky

The units ontology has the object property has_prefix. My understanding was that this will be imported, but seemingly we forgot this in OpenEnergyPlatform/ontology#1690

The thing is that the IRI of has_prefix http://purl.obolibrary.org/obo/has_prefix leads to an error...

stap-m avatar Apr 16 '24 08:04 stap-m

I'd propose to create a proper oeo relation has prefix and add the "may be identical to" annotation to relate to the above mentioned obo relation. A def could be: A relation between a unit and a prefix that indicate the magnitude of the unit.

stap-m avatar Apr 16 '24 08:04 stap-m