Help:AskMany

From Tetherless World Wiki

Jump to: navigation, search
AskMany
Name: AskMany Extension
Project Lead: Evan Patton
Participants: Evan Patton
Release Date: November 22, 2008

Contents

About AskMany Extension

The AskMany Extension can be used to query wikis for data which use Semantic MediaWiki in combination with the AskMany extension. This extension is currently used by TW members to duplicate queries on different group wikis as well as consolidate data spread across various project wikis into a single page for easy access.

AskMany has only been tested on SMW 1.3. If you have a version other than 1.3 and would like to help us test out our extension, please let us know.

The AskMany extension is inserted into a wiki document using the <AskMany> tag. Within the <AskMany> tag, one can specify one or more <site> tags, a <query> tag, and an (optional) <printout> tag. All of the wikis listed by <site> tags will be queried with <query> through their Special:AskMany interfaces in table form with optional columns as specified by <printout>. Results returned by those wikis will then be compiled into a single table to be displayed in the local wiki.

Install

require:

 php-xml

check out code using SVN

svn checkout http://smwbp.googlecode.com/svn/trunk/mediawiki/extensions/AskMany/

add these two lines in LocalSettings.php

require_once('extensions/AskManyExtension/includes/SMW_AM_Main.php');
enableAskMany();

Example

<askmany>
<site>http://example1.org/wiki/</site>
<site>http://example2.org/info/</site>
<site>http://example3.org/items/index.php</site>
<query>
[Category:Part]
[[Has Price::+]]
[[Has Part No::+]]
[[Has Manufacturer::XYZ Corp]]
</query>
<printout>
?Has Part No
?Has Price
</printout>
</askmany>


Current Release

AskMany-current

All releases

AskMany-v0.1 (current)

Personal tools