Re: [SMW-devel] property defined by function

2010-01-28 Thread Yaron Koren
Hi, "Has allowed value set" is just an example property name - it's not a pre-defined property; you could use any name. Sorry for the confusion. And my strong guess is that, for this specific data need, of a specific mathematical formula and pre-set values, you would have to have a custom extensi

Re: [SMW-devel] property defined by function

2010-01-28 Thread Zeev Pekar
> > First, when you use "Square" in your examples, I'm pretty sure you > actually mean "Area". you are right, I meant "Area" - its good to look up terms before using them. > Second - I think the idea of custom code for handling functions/rules > in SMW is a non-starter - too difficult to implem

Re: [SMW-devel] property defined by function

2010-01-28 Thread Yaron Koren
Zeev: First, when you use "Square" in your examples, I'm pretty sure you actually mean "Area". Second - I think the idea of custom code for handling functions/rules in SMW is a non-starter - too difficult to implement for too little value. The Semantic Rules extension mentioned earlier might be ab

Re: [SMW-devel] property defined by function

2010-01-28 Thread Hauke Pribnow
Zeev, do you know about the ParserFunctions extension? If not, have a look at it: http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions You should already be able to implement something like this by using this extension and some templates. Cheers, Hauke

[SMW-devel] property defined by function

2010-01-28 Thread Zeev Pekar
Hi, I've just added an enhancement request: https://bugzilla.wikimedia.org/show_bug.cgi?id=22303 Do you think it is interesting enough so that SMW developers will implement it? If yes, how long might it take? If no, could you please tell me, whether it is hard to implement such extension and whic

[SMW-devel] [SRF] Patch: New parameters for timeline

2010-01-28 Thread Andre Spiegel
Hello, I made a small change to the timeline and eventline result formats, adding two new parameters: 1) timelinelabelwidth -- as the name suggests, allows longer labels to be displayed properly 2) timelinelabelmode -- either 'full' or 'subpage'. The 'subpage' mode removes any leading prefix fro