API module "AskArgs"
|Allows to do ask queries with as little ask query specific syntax as possible|
|Provided by:||Semantic MediaWiki|
The "AskArgs" API module allows you to do ask queries via action "askargs" (
?action=askargs) against Semantic MediaWiki using the MediaWiki API and get results back serialized in one of the supported formats. It was introduced with Semantic MediaWiki 1.7.0.
The module supports three parameters in un-serialized form, so with as little syntax as possible specific to the
#ask parser function:
conditions": The query conditions, i.e. the requirements for a subject (page or subobject) to be included
printouts": The query printouts, i.e, the properties to show per subject (page or subobject)
parameters": The query parameters, i.e. all non-condition and non-printout arguments
- Limit and offset
As in regular inline (ask) queries, both "limit" and "offset" are specified in the parameter list, e.g. to get the first 10 results:
The API result contains a "query-continue-offset" key, which can be used to fetch additional results:
¶meters=offset%3D10|limit%3D10. If there is no "query-continue-offset" key in the result, the end of the result set was reached.
- API call includes the three parameters as explained earlier on this page
|" character as demonstrated for the
parametersmodule in the example above.