Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Remove Q25267 (degree Celsius) from conversion config. | operations/mediawiki-config | master | +1 -7 |
Related Objects
Event Timeline
Temperatures are a bit tricky, since unlike most other units, conversion is not simple multiplicative.
I guess the dev question is if one wants simple code for this or wait for more complex use cases that might require a dedicated server
it could be helpful if the query server had directly a psn triple for temperatures in Fahrenheit or Kelvin.
I don’t think we should have multiple psn triples for several units – the point of psn is to normalize everything to one unit. In this case, I assume that unit should be Kelvin. It would then be the query author’s job to convert the quantities they need into Kelvin when writing the query.
I’m confused about the status quo now… according to some sandbox experiments, there are psn: triples if the unit is Kelvin, or degrees Celsius (unconverted, in both cases!), but not if the unit is degrees Rankine. That just seems broken to me, but perhaps I’m missing something.
We did some experiments with https://www.wikidata.org/wiki/Property:P2370 on some of these. Maybe that's why.
I see conversion config for Q25267/degrees Celsius, which is normalized to itself (probably wrong). Kelvin is a SI unit, so it is right to have normalized value, but Q25267 should not be there. I think until we support non-multiplicative conversions, we should take Q25267 out of norm config.
Change 374892 had a related patch set uploaded (by Smalyshev; owner: Smalyshev):
[operations/mediawiki-config@master] Remove Q25267 (degree Celsius) from conversion config.
Change 374892 merged by jenkins-bot:
[operations/mediawiki-config@master] Remove Q25267 (degree Celsius) from conversion config.
To solve the initial problem, would it be possible to interpret something like:
- ($1+459.67)* 5/9
- criterion used: kelvin (Q11579)
at https://www.wikidata.org/w/index.php?title=Q42289&oldid=549477986#P370 (°F>°K)
More at:
- https://www.wikidata.org/w/index.php?title=Q25267&oldid=549483649#P370 (°C>°K)
- https://www.wikidata.org/w/index.php?title=Q37732658&oldid=549479149#P370 (°R>°K)
List: query (should show the three formulas linked above, might not work anymore)
Alternative: query by units. Sample: https://www.wikidata.org/wiki/Property_talk:P6591#Query_with_%C2%B0F/%C2%B0C_conversion