API module "Ask"

From semantic-mediawiki.org
Jump to: navigation, search
Ask
Allows to do ask queries
Keywords
API · API module · ask query · action ask · ask
Further Information
Provided by: Semantic MediaWiki
Added: 1.7.0
Removed: still available

The "Ask" API module allows you to do ask queries via action "ask" (?action=ask) 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 "CompoundQuery" API module provided by Semantic Compound Queries extension acts analogous to this module but additionally allows to compound several queries.

The module supports one semantic parameter, "query" (../api.php?action=ask&query=..), which takes the same string you'd feed into an #ask parser function, but URL-encoded.

Example

../api.php?action=ask&query=[[Modification date::%2B]]|%3FModification date|sort%3DModification date|order%3Ddesc&format=jsonfm

run example