Yes, you use GET in this case. If you use API from your javascript, it's
good enough and very common.

The other way is to construct the query on a server-side. I have some
amount of examples here, but some of them are outdated since the class
structure have changed:

http://semantic-mediawiki.org/wiki/User:Ganqqwerty/programming_examples
http://wikimedia.7.n6.nabble.com/How-to-get-property-values-from-SMW-Was-The-right-type-for-storing-IP-addresses-td4982384.html-
here are two ways (mine is dirty and slow but universal and Markus' is
clean but specifically for the task) to make queries from PHP

Cheers!
-----
Yury Katkov, WikiVote



On Fri, Feb 1, 2013 at 9:38 AM, <s9gf4...@gmail.com> wrote:

> > 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 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
>
------------------------------------------------------------------------------
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

Reply via email to