If your extension includes a JavaScript component, and you need to make the
ask query in the JavaScript, SMW includes the ask query as an API module
(action=ask or action=askargs, depending on what format you prefer to send
in the query).

--
Jason Ji
jason.y...@gmail.com

On Sat, Nov 1, 2014 at 8:38 PM, Jeroen De Dauw <jeroended...@gmail.com>
wrote:

> Hey,
>
> So you'd have something like
>
> {{#gimmeh_datas_in_a_table: [[Category:Some category]]}}
>
> that results in the same output as the #ask call you posted? If that's all
> you're doing you can of course just use a template. Which indeed does not
> work if you want to modify the result in certain ways.
>
> Your parser function would hand the query string to the QueryProcessor,
> get back the result, and then hand the result over to the formatting thing
> (can't recall where this code is). And in between you could try modifying
> the result. Be warned though, the result data structure is... odd... So it
> might not be trivial to do this.
>
> Cheers
>
> --
> Jeroen De Dauw - http://www.bn2vs.com
> Software craftsmanship advocate
> Evil software architect at Wikimedia Germany
> ~=[,,_,,]:3
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Semediawiki-devel mailing list
> Semediawiki-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
>
>
------------------------------------------------------------------------------
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to