Hi-hi! 

I would use SMW ask API for that. The returning json object is little bit complex, but this is not usually a big problem
http://semantic-mediawiki.org/wiki/Ask_API
-----
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:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel