-
Notifications
You must be signed in to change notification settings - Fork 6
Setup new Site
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.
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;
.
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"
.
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.
<ontowikiroot>/extensions/site.ini
:
enabled = true
[private]
defaultSite = "example"
<ontowikiroot>/extensions/site/sites/example/config.ini
:
model = "http://example.com/"
name = "Example Site"