OWLIM-Lite + Tomcat7 + Apache and Sgvizler
Thanks to Raoul Jean Pierre Bonnal for writing up this how-to.
Setup done on/with:
- OSX 10.8
- Homebrew: ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
- Ruby+RVM: \curl -L https://get.rvm.io | bash -s stable --ruby
- Git: bew install git
brew install tomcat
After you have downloaded and unpacked the archive, you must simply copy: openrdf-sesame.war and openrdf-workbench.war to /usr/local/Cellar/tomcat/7.0.29/libexec/webapps/ then open http://localhost:8080/openrdf-workbench/ to check if everything is working.
I suggest to install a Ruby gem gem install owlim-ruby Katayama san developed this gem to better interact with owlim, you can list, create, drop, import datasets to ontotext's triple store. Doc and source code here: https://github.com/ktym/owlim-ruby.
Apache 2.2 is already installed in OSX 10.8, the only problem is that there is no more GUI for configuration. We'll install a test web site under our home directory.
sudo vim /etc/apache2/users/yourusername.conf
Copy and paste text below:
<Directory "/Users/yourusername/Sites/"> Options Indexes MultiViews AllowOverride All Order allow,deny Allow from all </Directory> <Location /openrdf-sesame > ProxyPass http://localhost:8080/openrdf-sesame ProxyPassReverse http://localhost:8080/openrdf-sesame </Location>
Location is needed to avoid Same origin policy as reported in official Sgvizler documentation and link below.
sudo apachectl (re)start
At this point you must copy your html page with your Sgvizler intallation in
and that's it
from terminal open /Users/yourusername/Sites/wonderfoul-charts-with-sgvizler.html