[Wikidata-bugs] [Maniphest] [Commented On] T85298: Figure out quantity representation

2015-02-02 Thread Smalyshev
Smalyshev added a comment. Also we probably need to get to implementing value ranges/precision eventually. TASK DETAIL https://phabricator.wikimedia.org/T85298 REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign . EMAIL PREFERENCES https://

[Wikidata-bugs] [Maniphest] [Commented On] T85298: Figure out quantity representation

2015-01-13 Thread Lydia_Pintscher
Lydia_Pintscher added a comment. Yeah agreed. And for the units where we don't have conversions we can only offer querying for them as they are anyway. TASK DETAIL https://phabricator.wikimedia.org/T85298 REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscri

[Wikidata-bugs] [Maniphest] [Commented On] T85298: Figure out quantity representation

2015-01-13 Thread Lydia_Pintscher
Lydia_Pintscher added a comment. I think the idea is to do the conversion when the data gets into the query index and then query only on homogenous data. TASK DETAIL https://phabricator.wikimedia.org/T85298 REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubsc

[Wikidata-bugs] [Maniphest] [Commented On] T85298: Figure out quantity representation

2015-01-13 Thread Smalyshev
Smalyshev added a comment. @JanZerebecki right, so we need to figure out how to efficiently represent this, because indexes can not work with values expressed in different units. Right now the engine assumes all the quantities are homogeneous, but if they are not, how one would compare them? I'

[Wikidata-bugs] [Maniphest] [Commented On] T85298: Figure out quantity representation

2014-12-30 Thread Smalyshev
Smalyshev added a comment. Titan allows indexing the floats, but not in vertex-centric indexes. Elasticsearch indexes support floats, for example. I'm not sure what is the actual impact of this limitation yet - it probably depends on the kind of lookups we would do, as for some vertix-centered

[Wikidata-bugs] [Maniphest] [Commented On] T85298: Figure out quantity representation

2014-12-30 Thread daniel
daniel added a comment. Float would be ok, double would be better. Either should work for most applications, but may cause incorrect results for very small or very large numbers (say, mega-lightyears measured in meters). I think this is acceptable, at least for now. But Titan not allowing floa

[Wikidata-bugs] [Maniphest] [Commented On] T85298: Figure out quantity representation

2014-12-24 Thread Smalyshev
Smalyshev added a comment. From WDQ source , WDQ treats it as double. So maybe Double precision is enough? TASK DETAIL https://phabricator.wikimedia.org/T85298 REPLY