Re: [SMW-devel] RFC: Value distribution support in result formats

2011-11-29 Thread Jeroen De Dauw
Hey, > modify the query results to contain only the labels and the numbers This was actually the first approach I considered and implemented to some extend. However, the query result object is really not made to be used like this, and the ways to get around of this where just to much of a hack, w

Re: [SMW-devel] RFC: Value distribution support in result formats

2011-11-29 Thread Michael Erdmann
Hi Jeroen, we had a similar request like this already a couple of times. Although I think that having distribution=on (which actually is a count for groups) is often not sufficient, e.g. instead of the pure number users want the percentage (compared to all values), i.e. 42,8% instead of 3

Re: [SMW-devel] RFC: Value distribution support in result formats

2011-11-08 Thread Stephan Gambke
Hi Jeroen, nice work, this was long overdue! For the discussion: What about something like this: {{#ask: [[Category:Locations]] [[Has location type::City]] | ?Located in | ?count(*) | group by=Located in | format=jqplotpie | mainlabel=- | limit=500 }} I guess GROUP BY and COUNT() functionality

Re: [SMW-devel] RFC: Value distribution support in result formats

2011-11-08 Thread Dan Bolser
Great work! I really like this feature. It has been requested many times, so it's really cool that its been done. Thanks for doing this. We briefly discussed how this could be implemented a while back, and, although the proposal back then may push the balance of implementation in the direction of