Skip to content
Sebastian Tramp edited this page Jun 25, 2013 · 5 revisions

Setup Site Extension

This Page describes how to setup the site extension in OntoWiki. A working installation of OntoWiki is required, it should be available at http://localhost/ else you have to adjust the URIs in the model.

Note: <ontowikiroot> stands for the path to your OntoWiki installation.

Clone from github and activate

From within <ontowikiroot>/extensions run

git clone [email protected]:AKSW/site.ontowiki.git site.

If the site-extension isn't enabled automatically enable it through extension configuration or by by creating a file <ontowikiroot>/extensions/site.ini and inserting enabled = true;.

Create a new Site

First you have to create a model e.g. model = "http://example.com/" in OntoWiki which will hold the contents of your new site.

As second step go to <ontowikiroot>/extensions/site.ontowiki/sites/ and copy the directory generic and rename it (e.g. example). Create a new file <ontowikiroot>/extensions/site.ontowiki/sites/example/config.ini and specify the site model e.g. model = "http://example.com/" and a name for the site e.g. name = "Example Site".

Configure the Site

Set the just created site as default in <ontowikiroot>/extensions/site.ini (if the file doesn't exist create it) by setting defaultSite = "example" in the [private]-section.

The Example Files

<ontowikiroot>/extensions/site.ini:

enabled = true
[private]
defaultSite = "example"

<ontowikiroot>/extensions/site/sites/example/config.ini:

model = "http://example.com/"
name = "Example Site"
Clone this wiki locally