|operations/mediawiki-config||master||+1 -7||Remove Q25267 (degree Celsius) from conversion config.|
The query currently finds:
- P2101 melting point in wd:Q42289 degree Fahrenheit: 571
- P2102 boiling point in wd:Q42289 degree Fahrenheit : 476
- P2128 flash point in wd:Q42289 degree Fahrenheit : 341
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.
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.
To solve the initial problem, would it be possible to interpret something like:
- ($1+459.67)* 5/9
- criterion used: kelvin (Q11579)
- 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)