Re: [SMW-devel] Create semantic property as simple long text

2013-02-26 Thread s9gf4ult
This works, thanks ! -- 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_feb

[SMW-devel] Create semantic property as simple long text

2013-02-25 Thread s9gf4ult
Hello, I am trying to create semantic property just like that. [[Teaser::some long text . ]] But when I am doing the ask query like that {{#ask: [[Teaser::+]] | ?Teaser }} the result is empty, until I reduce the length of [[Teaser::]] content. And when I reduce the length of the teaser

Re: [SMW-devel] Obtain data as simple array

2013-02-01 Thread s9gf4ult
--- $result = array(); $query = [[Title picutre::+]] [[Category: some category]] ?Title picture; $result = SF_Utils::getAllPagesForQuery( $query ); Very interesting, but doesnt work for me % php

Re: [SMW-devel] Obtain data as simple array

2013-02-01 Thread s9gf4ult
Yes, you use GET in this case. If you use API from your javascript No, I dont need to get data from javascript, I need to receive data with php on server side and generate the page, I hoped that I can do it with some Semantic API, but it is not so simple as I

[SMW-devel] Obtain data as simple array

2013-01-31 Thread s9gf4ult
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 =

Re: [SMW-devel] Obtain data as simple array

2013-01-31 Thread s9gf4ult
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 I was affraid of this answer, that means I must parse json by the same program it was

Re: [SMW-devel] Obtain data as simple array

2013-01-31 Thread s9gf4ult
I would use SMW ask API for that. Is this means I must use HTTP GET query to retrive the data from myself ? Can I receive JSON encoded data without query ? -- Everyone hates slow websites. So do we. Make your web apps