I just wanted to note that, though it's true that there's no SMWStore::getAllPropertyValues(), the function SMWStore::getPropertyValues() can be called with a subject of 'NULL', which will in fact return all the values that a property points to.


On Tue, Jun 10, 2008 at 11:08 PM, S Page <info@skierpage.com> wrote:
ablum wrote:
> Thanks Yaron
> No that doesn't help. I think there is a problem with the formatting of the
> Property:xxxxxx page (or at least something that could be improved/ optional
> output).
> What you suggest is fine only for things that are not very heavily
> marked-up.
> ...
(You might want to consider more informative or active property names,
e.g. Property:Involves_person.)

> The problem is that all of the many hundreds of Persons indexed are hidden
> under a ....

Indeed.  In SMW 1.1, the limit of display to three values is hardcoded
in SMW_PropertyPage.php in the function shortList() in the two lines:
   $ropts->limit = 4;
   if ($i < 4) {

If you want to display, say, up to 50 values for each property, then you
can make a backup of this file and change those two lines to:
   # LOCAL CHANGE: Increase max number displayed
   $ropts->limit = 50 + 1;
   # LOCAL CHANGE: Increase max number displayed
   if ($i <= 50) {
There's a performance impact to increasing it, though the list is cached
somewhere in MediaWiki

Maybe there should be a setting to change the default.  I filed
enhancement bug https://bugzilla.wikimedia.org/show_bug.cgi?id=14506

> What I really want to see if something like
> http://www.thejabberwock.org/wiki/index.php?title=Category:Person
> (or better)
> Which at the moment I can only do by making the property type Page,
> crearting a page for every instance of the property, and putting each page
> in a category. For some properties I may want to do that, but for most I
> don't.
> The information is obviously there - but what would be useful is essentially
> a flipped version of the current Property:xxxxxxx page.

Right.  Instead of
  Pages using the property "Located in"
     Berlin            Germany, Europe, Prussia,
     Stuttgart         Germany

you want
  Values of the property ""Located in"
     Germany           Berlin, Karlruhe, Stuttgart, ...
     Prussia           Berlin

I filed enhancement bug https://bugzilla.wikimedia.org/show_bug.cgi?id=14505

SMWStore has getAllPropertySubjects(), but it doesn't have
getAllPropertyValues(), so it's a fairly complicated enhancement.

=S Page

Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
Semediawiki-user mailing list