Last modified: 2011-11-15 12:45:57 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 T34251, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32251 - General support for property value distribution visualization
General support for property value distribution visualization
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-08 00:16 UTC by Jeroen De Dauw
Modified: 2011-11-15 12:45 UTC (History)
2 users (show)

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


Attachments
initial poke at this, not completed (3.53 KB, patch)
2011-11-08 00:16 UTC, Jeroen De Dauw
Details

Description Jeroen De Dauw 2011-11-08 00:16:15 UTC
Created attachment 9376 [details]
initial poke at this, not completed

This is to keep track of a proposed enhancement that I partially implemented, but did not finish since it seemed to much of a hack.

The idea is to have result formats that can display numerical data, such as charts, can instead of showing the queries values, show their distribution (ie the occurrence count of each value). This is similar to what the tagcloud and valuerank formats in SRF do, but the implementation would be in SMW itself, or at least on base QueryPrinter level, so that all formats supporting numerical results support this kind of behavior without further modifications.

Copied from an Email to Markus about this code:

I'm trying to create some new feature in the base QP that allows getting the occurrence count of a certain value for some property in the result, and then changes the SMWQueryResult result object to contain this data, in this format:

fake page with the value of the property as label => special "has occurrence count" property => occurrence count

This way you can do a query such as

{{
#Ask: [[some conditions]]
| ?Has genre
| format=somechart
| countproperty=Has genre
}}

which will then get you the values (unique) with their occurrence count, somehow visualized, ie showing the amount of times a genre occurs.

I currently have the code that gets these counts and creates number DIs for them. I'm having problems with creating a new SMWQueryResult with these DIs though. I was quite surprised to find that it does not actually hold this data, but that it's obtained in loadContent in SMWResultArray created when you request the DIs or DVs.
Comment 1 Jeroen De Dauw 2011-11-15 12:45:57 UTC
Ended up going in another direction with the implementation: http://goo.gl/Lbx6I

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


Navigation
Links