Extension:SMWAskAPI

What can this extension do?
Extends the mediawiki API with support for semantic queries #ask: allow one to execute SMW ask query via API.

As of SMW 1.7, it appears that this functionality is now integrated into SMW (with some modifications to the parameters, such a "q" is now "query").

Usage
After installing it, you can execute a semantic #ask query through the api.

This example:

will look for all pages with a property  set to , and display them along with their   and   values.

Dependencies
This extension depends on Semantic MediaWiki to work.

Both 1.6 and 1.5 versions of Semantic MediaWiki are supported - see below the download section to know where to pick the corresponding archives.

Download instructions
The most up-to-date instructions are contained in the README.txt file on sourceforge

You can either download a ZIP archive containing all the needed files, or export them from SVN.

Download a ZIP archive
Go to the sourceforge download page an pick the most recent ZIP file matching your need. The file names are built this way: SMWAskAPI- -smw-rev.zip

Thus, if you use SMW 1.6, you will be looking for a file looking like SMWAskAPI- -smw1.6-rev.zip Just be sure to take the one with the highest   and , to have the most up-to-date version of the extension

The most recent ZIP archive can also be downloaded directly from this link

The ZIP archive contains a SMWAskAPI folder, which is the extension folder

Via SVN
Get the latest version of the extension from the SVN repository. svn co https://smwaskapi.svn.sourceforge.net/svnroot/smwaskapi/trunk/SMWAskAPI svn co https://smwaskapi.svn.sourceforge.net/svnroot/smwaskapi/branches/smw-1.5/SMWAskAPI
 * For SMW 1.6
 * For SMW 1.5

You will get a SMWAskAPI folder, which is the extension folder

Where to put the files
Move the SMWAskAPI folder into.

Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
After placing the sources into, add following line into LocalSettings.php:

Configuration parameters

 * $wgSMWAskAPI_ActionName: (optional) define the api action name used to execute the ask query. Default is 'ask'

Report a bug / request a feature
Use this link: http://sourceforge.net/apps/trac/smwaskapi/newticket to create a new ticket about a bug or a feature request. You do not need to have a sourceforge account to create a ticket (although it does not hurt)