I would use SMW ask API for that. The returning json object is little bit complex, but this is not usually a big problem
Yury Katkov, WikiVote

On Thu, Jan 31, 2013 at 4:21 PM, <s9gf4ult@gmail.com> wrote:

Hello, I am hacking SMW, because I need to retrive some data from the mediawiki database and use it to render skin. I know this is the dirty hack, but I do not see another way.


I need execute query like this



#ask: [[Title picture::+]] [[Category: some category]]

| ?Title picture

| format = ## here some special format ? ##

| limit=10



and receive the answer like a simple array


array(0 => array("self" => Title object,

"Title_picture" => Title object),

1 => array("self" => Title objec ....



While the actual data is receiving by format function, specified in the query, I dont have any idea how to receive data like simple array. Do I need to write my own format function ?

Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
Semediawiki-devel mailing list