%META:TOPICPARENT{name="Ods"}%

%TOC%

---++What is <nowiki>MediaWiki</nowiki>?

<nowiki>MediaWiki</nowiki> is a popular open-source wiki engine written in PHP. The guide below shows how to run it in Virtuoso.

---+++Install VAD

   1. Start virtuoso db using the hosting_php.so ( .dll for win users). To use this plugin, it must be included in your virtuoso ini file as follows:
<verbatim>
...
[Plugins]
# for ex. here the location of the plugins is the plugin folder
LoadPath = ./plugin
...
Load6    = Hosting,hosting_php.so
...
</verbatim>
   1. Setup "Local Virtuoso" DSN (note the empty space in the name!) in order to access any of the application URLs.
      * For windows users, please perform the following steps:
         1.  Go to Start >> Settings >> Control Panel >> Administrative Tools >> Data Sources (ODBC)
         1. Go to tab "User DSN" and click "Add"
         1. Select the "OpenLink Virtuoso (version)" driver and click "Finish"
         1. Enter "Name": <nowiki><code>Local Virtuoso</code</nowiki>
         1. Enter "Description": <nowiki><code>My Local Virtuoso</code</nowiki>
         1. For "Server", enter your Virtuoso's hostname and ISQL port, e.g., <nowiki><code>localhost:1116</code</nowiki>
         1. Click "Next"
         1. Enter a username for "Login ID", e.g., <nowiki><code>dba</code</nowiki>
         1. Enter the user's "Password". For dba, the default password is <nowiki><code>dba</code</nowiki>.
         1. Click "Next"
         1. Click "Finish".
   1. From ISQL, execute:
<verbatim>
SQL> DB.DBA.VAD_INSTALL('tmp/mediawiki_fs.vad',0);
</verbatim>

---+++RDF View Scripts

   1. After you have installed the <nowiki>MediaWiki</nowiki> mediawiki_fs.vad package, using ISQL execute the <a href="%ATTACHURLPATH%/MediaWiki_rdf_views_script.sql" style="wikiautogen"><nowiki>MediaWiki_rdf_views_script</nowiki>.sql</a> file, which contains the RDF Views scripts for <nowiki>MediaWiki</nowiki>:
<verbatim>
isql localhost:1116 dba dba MediaWiki_rdf_views_script.sql
</verbatim>
      * You can find the <nowiki>MediaWiki</nowiki> RDF Views scripts also  [[VirtRDFViewMediaWiki][here]].

---+++Configuration

   1. In case you want to change the dba password, you need to locate the file below in your FS and change the <b>$wgDBpassword<b/> value:
<verbatim>
vad\vsp\mediawiki\LocalSettings.php
</verbatim>
   1. After you have successfully installed the <nowiki>MediaWiki</nowiki> mediawiki_fs.vad package and have run the RDF Views <nowiki>MediaWiki_rdf_views_script</nowiki>.sql, access the <nowiki>MediaWiki</nowiki> home page: http://host:port/mediawiki:
%BR%%BR%<img src="%ATTACHURLPATH%/mw1.png" style="wikiautogen"/>%BR%%BR%
   1. You may want to register your own user in MediaWiki. Click the "Log in / create account" link.
%BR%%BR%<img src="%ATTACHURLPATH%/mw2.png" style="wikiautogen"/>%BR%%BR%
   1. In the shown form click the "Create an account" link and fill in the fields the shown form. Finally click the "Create account" button.
%BR%%BR%<img src="%ATTACHURLPATH%/mw3.png" style="wikiautogen"/>%BR%%BR%
   1. As result you should be redirected to your MediaWiki user home page.
%BR%%BR%<img src="%ATTACHURLPATH%/mw4.png" style="wikiautogen"/>%BR%%BR%
   1. Enter in the "Search" field at the left sight: <nowiki>SimpleTest</nowiki> and click enter.
%BR%%BR%<img src="%ATTACHURLPATH%/mw5.png" style="wikiautogen"/>%BR%%BR%
   1. As result should be shown the message as shown bellow. Click the "create this page." link.
   1. Enter some text in the shown text area and click the button "Save page".
%BR%%BR%<img src="%ATTACHURLPATH%/mw6.png" style="wikiautogen"/>%BR%%BR%
   1. As result your first article will be created.
%BR%%BR%<img src="%ATTACHURLPATH%/mw7.png" style="wikiautogen"/>%BR%%BR%
   1. Click the "Discussion" tab.
   1. Enter in the shown text area some message and click the "Save page" button.
%BR%%BR%<img src="%ATTACHURLPATH%/mw8.png" style="wikiautogen"/>%BR%%BR%
   1. As result your Talk for the created article will be started.

---+++URI Schemes
<verbatim>
http://<your-instance-cname>/mediawiki/user/<ods-user-id>
</verbatim>

---++Download

   * You can download the <nowiki>MediaWiki</nowiki> VAD package from [[http://download.openlinksw.com/packages/5.0/virtuoso/mediawiki_fs.vad][here]].

---++References

   * [[http://www.mediawiki.org/][MediaWiki]]

---+++See Also

   * [[MediaWikiSIOCRef][MediaWiki SIOC Reference]]


CategoryRDF CategorySIOC CategorySPARQL CategoryWiki  CategoryVirtuoso CategoryMediaWiki