Re: [SMW-devel] property defined by function

2010-01-31 Thread Zeev Pekar
Hi, 1) and what if I let "gnuplot" do the job? wouldn't it be easier to implement? and the performance should be better, right? Is there a similar extension that I can take as example? One that takes several parameters, delegates it to a command line program and then takes results back and incorpo

Re: [SMW-devel] property defined by function

2010-01-29 Thread zehetner
Hi, I would also look into the ArrayExtension (http://www.mediawiki.org/wiki/Extension:ArrayExtension) If you have something like [[HeightLength::1;4]] [[HeightLength::2;5]] you can extract and assign a HeightArray and a LengthArray by queries (see examples on extension page). Unfortunately th

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