Last modified: 2014-06-30 09:26:15 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T68580, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66580 - Better support for exact values in Quantity DataType
Better support for exact values in Quantity DataType
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Normal major with 1 vote (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=frontend p=0
:
Depends on:
Blocks: 54318
  Show dependency treegraph
 
Reported: 2014-06-13 12:16 UTC by Daniel Kinzler
Modified: 2014-06-30 09:26 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Daniel Kinzler 2014-06-13 12:16:35 UTC
Some quantity properties "intrinsically" have exact values - like the number of people in a parliament, the number of planets in the solar system, etc. It's confusing to users that Wikibase will guess a margin of uncertainty of +/-1 in such cases. 

Considering that this guess would be correct for e.g. the number of square meters in a room, we can't use a general rule for avoiding this problem. We need some kind of hint to the parser what heuristic to apply for guessing the uncertainty. That hint could be

a) A per-property flag (possibly represented by a claim) 
b) A separate "amount" or "number" DataType, which would also use QuantityValue, but would have different parsing rules from the "quantity" DataType used for measured values.

Note btw that "population" is a natural number count but should *not* default to exact values, but apply the +/-1 rule.
Comment 1 John Mark Vandenberg 2014-06-19 17:20:05 UTC
Sorry if this is the wrong bug.  It appears the same problem occurs from the database.

When I wbsetclaim a quantity with value amount:+0.044405586 , it returns successful, but the value is amount:+0.04440558599999999689345031583798117935657501220703125

https://test.wikidata.org/wiki/Q484?action=history
Comment 2 John Mark Vandenberg 2014-06-19 17:24:19 UTC
s/database/API/
Comment 3 Henning 2014-06-30 09:26:15 UTC
Still unclear to me why there is any "margin of uncertainty" by default at all. The quantity value is extracted from a reference. It is each particular reference that defines the margin. If there is no margin specified by the reference, there is no way to guess what the margin would be. And still, that is what is trying to be achieved here with even more complicated logic. How would one determine that 100 has an uncertainty margin of 1, 10 or 100 if it is not stated by the reference?

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links