https://bugzilla.wikimedia.org/show_bug.cgi?id=32251
Web browser: --- Bug #: 32251 Summary: General support for property value distribution visualization Product: MediaWiki extensions Version: any Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: Unprioritized Component: Semantic MediaWiki AssignedTo: wikibugs-l@lists.wikimedia.org ReportedBy: jeroen_ded...@yahoo.com CC: jeroen_ded...@yahoo.com, mar...@semantic-mediawiki.org Classification: Unclassified Created attachment 9376 --> https://bugzilla.wikimedia.org/attachment.cgi?id=9376 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. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l