-
It will install Django 1.3, Django-pistons 0.2.2, as well as mechanize, beautifulsoup and setuptools using apt-get.
#Clone the git repo git clone https://github.com/juanique99/RDFAdmin.git RDFAdmin cd RDFAdmin
#Install dependencies ./dependencies.sh
#Create local settings, edit the file as necessary. cp local_settings.py.example local_settings.py
#Run the server python manage.py runserver
-
Open http://localhost:8000/ on your web browser.
-
You may need to install Python 2.6, Django and other Python libs. See the requirements section to see how to install them.
-
Get the code
-
Copy +local_settings.py.example+ to +local_settings.py+ and edit it according to your local config. In particular, make sure to set your Virtuoso access variables.
3.3 If using a DB diferent that the default in memory sqlite3, make sure to create the app tables
python manage.py syncdb
-
Run with
python manage.py runserver
-
You will need to install apache2 mod wsgi library
sudo apt-get install libapache2-mod-wsgi
-
Update your apache configuration (in ubuntu /etc/apache2/sites-enabled/default). Change the appropiate path for the djang.wsgi file at the root of the project.
<VirtualHost *> WSGIScriptAlias / /home/user/RDFAdmin/django.wsgi
<Directory /home/user/RDFAdmin> Order allow,deny allow from all </Directory>
-
Setup your support database. It is not recomended to use the default in-memory database When using apache. A simple example for the local settings using sqlite3 would be
DATABASES = { 'file': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': '/tmp/rdfadmin.sqlite3', #Make sure apache can read/write to this file } }
-
Create database tables.
python manage.py syncdb
- Python 2.6
- Django 1.3
-
If you don't have the Virtuoso triple store yet, install it
sudo apt-get install virtuoso-opensource-6.1
-
Install Django
Django 1.3 isn't as a package in current distributions of Debian/Ubuntu, so yo must install it using the tarball.
wget http://www.djangoproject.com/download/1.3/tarball/ tar xzvf Django-1.3.tar.gz cd Django-1.3 sudo python setup.py install
-
Install Django pistons
wget http://bitbucket.org/jespern/django-piston/downloads/django-piston-0.2.2.tar.gz tar -xvzf django-piston-0.2.2.tar.gz cd django-piston sudo python setup.py install
-
Install Beatiful Soup and Mechanize
This packages are in current Debian/Ubuntu distributions so you can install them using the package manager.
sudo apt-get install python-beautifulsoup python-mechanize
-
Edit /etc/virtuoso-opensource-6.0/virtuoso.ini and add the settings.VIRTUOSO_WORK_DIR to the DirsAllowed variable, you can use the following command which will add the PROJECTPATH/data/ subdirectories to the virtuoso.ini DirsAllowed variable.
reset.sh virtuoso-autoset-dir
-
If using the php proxy for sparql queries (optional)
sudo apt-get install php5-curl
RDFAdmin uses a relational database to save session data and indices. The default settings in local_settings.py use a simple sqlite3 file. But you can use any database engine supported by Django (See Djando documentation).