Help talk:Result Formats

From semantic-mediawiki.org
(Redirected from Help talk:Result Formats)
These discussions were held with LiquidThreads. Each post's history is on its old Thread page, which now redirects here (list).

Math Results Format

I see there is a format for sum and product. Is there one for difference and divide? AdamBomb (talk) 05:38, 20 December 2012 (UTC)

No, perhaps some parser functions will do the trick for you. [[kgh]] (talk) 17:17, 20 December 2012 (UTC)
I don't even see how that would work... if you have four values, would a "difference" format give you A - B - C - D? Yaron Koren (talk) 04:33, 12 December 2013 (UTC)

Sum converting to bar chart

I'm trying to figure out how to get the jqplotchart to display a simple bar chart based on a "sum" from a property.

I would appreciate it if anyone has a link to examples of how this could be done.

Thanks in advance Dave88008 (talk) 22:10, 7 December 2013 (UTC)

If you were trying to do "count" instead, that would be easy to do, using the "distribution" parameter. Doing a "sum" is harder... does each grouping of values correspond to a page? If so, maybe the best solution is to have each of those pages store its own sum, using a combination of #set and #ask; and then query on all of those semantically-stored sums. Yaron Koren (talk) 22:33, 9 December 2013 (UTC)
See [1], since SMW 1.9/SRF 1.9 parameter |aggregation=property or |aggregation=subject should do the trick.
[1] https://semantic-mediawiki.org/wiki/Demo:Jqplotchart/Aggregatable_bar_charts James Hong Kong (talk) 00:51, 10 December 2013 (UTC)
Ooh, I didn't know about that! It sounds great... does it always just do a "sum"? Yaron Koren (talk) 14:38, 10 December 2013 (UTC)
Thank you. Looks like the Aggregation parameter will do what I want. Very slick!
One more reason to stop procrastinating about upgrading from SMW 1.8/SRF 1.8 Dave88008 (talk) 23:41, 11 December 2013 (UTC)

Bug report

Where does one report bugs for this extension?

The gallery format seems to have some issues with trailing spaces. If I delete the space, it renders fine, but it shows as a bulleted list with the space. This wouldn't be a big if runJobs.php didn't seem to add the trailing space back every time it runs. The1gofer (talk) 23:04, 23 October 2020 (UTC)

Thanks for asking and noting. Bugs can be reported via the Semantic Result Formats issue tracker. [[kgh]] (talk) 09:26, 24 October 2020 (UTC)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.