INCA Extension for Mediawiki
From OpenVCE
The aim of this article is to describe an extension to Mediawiki that can be used to formally represent procedural knowledge using the <I-N-C-A> ontology.
Introduction: SOPs
Many communities have a need for Standard Operating Procedures (SOP). For example, in the area of personnel recovery there are manuals describing procedures in detail. Similarly, emergency responders will have plans for emergencies that are likely to occur in their areas. An SOP can be seen as a generic plan.
The INCA extension for Mediawiki provides a formal framework for the representation of procedural knowledge that is based on the <I-N-C-A> ontology which is a fundamental representation used in AI planning.
Installing the INCA Extension
All the files belonging to the INCA extension should be unpacked into a single directory in Mediawiki's extensions directory, e.g. extensions/inca. This makes the extension available to Mediawiki.
Before the extension can be used, tables in the database must be created. Create the tables using the commands from the file setup_db.sql in the extensions/inca directory. The default is to use the mw_ prefix for all tables in the Mediawiki database. If your database uses a different prefix (or none) the table creation commands must be modified accordingly. To create the required table in the MediaWiki database, the following command should work:
php maintenance/sql.php extensions/inca/setup_db.sql
To actually load the INCA extension the file LocalSettings.php in Mediawiki's main directory must modified by adding the following (e.g. at the end, or where other extensions are loaded):
## load the INCA extension require_once( "$IP/extensions/inca/inca.setup.php" );
This file defines the INCA namespace. The default value is 4622, and if this clashes with another namespace, the value can be changed here. Also by default, the INCA namespace is searchable, that is, all searches may return pages defined in the INCA namespace (but not in the associated talk-namespace). To verify that this namespace is available, go to "All pages" (special page) and verify that the choice of namespaces includes "INCA" and "INCA talk".
