-
Notifications
You must be signed in to change notification settings - Fork 6
Setup Example Site
This Page describes how to setup the site extension with an example site in OntoWiki.
A working installation of OntoWiki is required. In this tutorial we assume it is available at http://localhost/Site/
.
If your OntoWiki-installation is available under a different URI you have to adjust the base-URIs later in the model.
Note: <ontowikiroot>
stands for the path to your OntoWiki installation.
From within <ontowikiroot>/extensions
run
git clone https://github.com/AKSW/site.ontowiki.git site
(make sure the directory is called site
after cloning, replace the URI with [email protected]:AKSW/site.ontowiki.git
if you have developer access)
If the site-extension is enabled automatically you have to access your OntoWiki using the OntoWiki URI followed by /Index
e.g. http://localhost/Index
.
First you have to create a model e.g. http://localhost/Site/
in OntoWiki which will hold the contents of your new site.
To get the example data, import <ontowikiroot>/extensions/site/sites/example/data/model.n3
into the just created model.
If you chose a model URI different from http://localhost/Site/
you have to adjust the @base
-URI in <ontowikiroot>/extensions/site/sites/example/data/model.n3
accordingly before importing it. Also you have to adjust the URIs in <ontowikiroot>/extensions/site/sites/example/config.ini
(The model URI should be in the namespace of your OntoWiki installation, e.g. if the OntoWiki is available at http://localhost/ontowiki/
you could use http://localhost/ontowiki/Site
for your model. Caution, if you use Site
directly below your OntoWiki URL make sure to spell it upper-case, site
is a reserved name.)
If the site-extension isn't enabled automatically enable it through extension configuration or by creating a file <ontowikiroot>/extensions/site.ini
and inserting enabled = true;
.
Now you can open the example site with your browser by navigating to http://localhost/Site/Welcome
.
If you've successfully configured the example site you can continue reading Create a new Site.