-
Notifications
You must be signed in to change notification settings - Fork 8
Installing Py4s
wwaites edited this page Sep 13, 2010
·
12 revisions
- Install RDFlib either the release or SVN version will do
- Install Cython version 0.12 – beware that the debian/ubuntu packaged version is too old
easy_install cython
orpip install cython
— - Install the latest version of Raptor and Rasqal from Redland – with the usual method of installing source packages if your operating system does not include recent enough versions
./configure && make && make install
- Make sure when installing Rasqal to configure using ‘—enable-query-languages=sparql rdql laqrs’
- Get the latest 4store from https://github.com/garlik/4store or from https://github.com/wwaites/4store — the latter supports multiple simultaneous clients, but is very new
- Configure and build as normal:
~/src/4store$ ./configure && make && make test
- Install and optionally create a test triplestore:
~/src/4store$ 4s-backend-setup py4s_test ; 4s-backend py4s_test
- Build the Py4s bindings:
~/src/py4s$ python setup.py build
- Install in the normal way:
~/src/py4s$ python setup.py install
- Run the tests:
~/src/py4s$ nosetests -v -s
Note that though Py4s is distributed on the cheeseshop, easy_install cannot be used because it
requires the presence of the 4store sources in order to build.