Help:API:ask

The "ask" API module allows you to do ask queries via action "ask" against Semantic MediaWiki using the MediaWiki API and get results back serialized in one of the supported formats. It was introduced with. provided by acts analogous to this module but additionally allows to compound several queries.

The module supports one semantic parameter, " ", which takes the same string you'd feed into an  parser function, but URL-encoded.

Starting with this module supports the " " parameterCiteRef::gh:smw:3052 allowing to choose between the dictionary structure  (version "2", which is the default to ensure backwards compatibility for any consumer that uses the API) and the list structure  (version "3") for the JSON serialization of the resulting data queried with the API.

Example

 * Use "dictionary" structure for JSON serialization
 * → run example


 * Use "list" structure for JSON serialization
 * → run example


 * Further examples