Hi,

> Even though Semantic Tasks is unmaintained, I found some piece of code
> that could inspire you as well:
> https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FSemanticTasks/5363a0ba564c5c3708c246a4c316260d781da1e1/SemanticTasks.classes.php

Please try not follow these as general guideline because things like
[0] will not work in 1.9 or 2.0* and is a rather odd practice to
invoke the `QueryProcessor`.

If you need examples on how to use a particular class or an
integration scenario try to have a look at [1] and if you can't find
an appropriate example then add a request to [2] with a clear
description of a possible test example.

[0] 
https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FSemanticTasks/5363a0ba564c5c3708c246a4c316260d781da1e1/SemanticTasks.classes.php#L321

[1] https://github.com/SemanticMediaWiki/SemanticMediaWiki/tree/master/tests

[2] https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/445

Cheers

On 11/2/14, Toni Hermoso Pulido <toni...@softcatala.cat> wrote:
> Hi James,
>
> I found this link some weeks ago:
> https://semantic-mediawiki.org/wiki/User:Yury_Katkov/programming_examples
>
> Even though Semantic Tasks is unmaintained, I found some piece of code
> that could inspire you as well:
> https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FSemanticTasks/5363a0ba564c5c3708c246a4c316260d781da1e1/SemanticTasks.classes.php
>
> Hope it helps,
>
> El 01/11/14 a les 19:18, James Montalvo ha escrit:
>> I'm creating a parser function in which I'm going to include an ask
>> query.
>> In this particular case I'd like it just return a normal HTML table of
>> results, as if I were to do:
>>
>> {{#ask: [[Category:Some category]]
>> |? Property 1
>> |? Property 2
>> | limit = 10
>> | sort = Property 2
>> }}
>>
>> Once I understand this I'll probably have cases where I need to modify
>> the
>> results of the query before passing it to a result formatter or
>> formatting
>> the results manually. What is the best way to do this using existing SMW
>> methods?
>>
>> Thanks,
>> James
>>
>
> --
> Toni Hermoso Pulido
> http://www.cau.cat
> http://www.similis.cc
>
> ------------------------------------------------------------------------------
> _______________________________________________
> 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