Skip to content

Installing DataFAQs

timrdf edited this page Feb 10, 2013 · 19 revisions

What's first

What we'll cover

Let's get to it

Choose where you would like to install DataFAQs and clone the git repository:

cd /opt
sudo git clone git://github.com/timrdf/DataFAQs.git
export DATAFAQS_HOME=/opt/DataFAQs

requires rapper, csv2rdf4lod-automation, will likely require tdb

Installing faqt.py

faqt.py extends sadi.py to provide additional service metadata and provenance. You need to install it if you are developing or deploying a FAqT Service. If you need to avoid installing python libraries as root, check out this blog to see what to put into ~/.pydistutils.cfg and how to add to your PYTHONPATH shell variable.

bash-3.2$ easy_install https://github.com/timrdf/DataFAQs/raw/master/packages/faqt.python/dist/faqt-0.0.1-py2.7.egg

Creating /usr/lib/python2.7.2/site-packages/site.py
Downloading https://github.com/timrdf/DataFAQs/raw/master/packages/faqt.python/dist/faqt-0.0.1-py2.7.egg
Processing faqt-0.0.1-py2.7.egg
Moving faqt-0.0.1-py2.7.egg to /usr/lib/python2.7.2/site-packages
...

Installed /Users/me/usr/lib/python2.7.2/site-packages/faqt-0.0.1-py2.7.egg
...

Installed /Users/me/usr/lib/python2.7.2/site-packages/surf.rdflib-1.0.0_r338-py2.7.egg
...

Installed /Users/me/usr/lib/python2.7.2/site-packages/rdfextras-0.2-py2.7.egg
...

Installed /Users/me/usr/lib/python2.7.2/site-packages/SuRF-1.1.4_r352-py2.7.egg
...

Installed /Users/me/usr/lib/python2.7.2/site-packages/rdflib-3.2.1-py2.7.egg
...

Installed /Users/me/usr/lib/python2.7.2/site-packages/pyparsing-1.5.6-py2.7.egg
...

Installed /usr/lib/python2.7.2/site-packages/simplejson-2.6.1-py2.7-macosx-10.8-intel.egg
...

Installed /usr/lib/python2.7.2/site-packages/isodate-0.4.8-py2.7.egg
Finished processing dependencies for faqt==0.0.1

(Developers can see faqt.python package for how the egg is created.)

Installing sadi.py

DataFAQs maintains a copy of sadi.py that may be ahead of the release on google code.

bash-3.2$ easy_install https://github.com/timrdf/DataFAQs/raw/master/lib/sadi.python/sadi-0.1.5-py2.7.egg
Downloading https://github.com/timrdf/DataFAQs/raw/master/lib/sadi.python/sadi-0.1.5-py2.7.egg
Processing sadi-0.1.5-py2.7.egg
creating /usr/lib/python2.7.2/site-packages/sadi-0.1.5-py2.7.egg
Extracting sadi-0.1.5-py2.7.egg to /usr/lib/python2.7.2/site-packages
Adding sadi 0.1.5 to easy-install.pth file

Installed /usr/lib/python2.7.2/site-packages/sadi-0.1.5-py2.7.egg
Processing dependencies for sadi==0.1.5
Finished processing dependencies for sadi==0.1.5

Installing ckanclient.py

Find the latest tarball from python.org, and easy_install it:

easy_install http://pypi.python.org/packages/source/c/ckanclient/ckanclient-0.10.tar.gz#md5=3056f44374d369887d87882c879a1a86

Processing ckanclient-0.10.tar.gz
...

Installed /usr/lib/python2.7.2/site-packages/ckanclient-0.10-py2.7.egg
Processing dependencies for ckanclient==0.10
Finished processing dependencies for ckanclient==0.10

What's next

Clone this wiki locally