-
Notifications
You must be signed in to change notification settings - Fork 5
/
README
50 lines (39 loc) · 1.36 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
LODStats uses Redland (librdf) to access files adhering to the Resource
Description Framework (RDF) and compute various configurable statistics
about them.
Extending LODStats with custom statistics is easily accomplished.
Installation instructions:
sudo apt-get update
sudo apt-get install python-pip python-dev librdf0-dev python-librdf
sudo apt-get install git raptor2-utils
# Install virtualenvwrapper
sudo pip install virtualenvwrapper
mkdir $HOME/.virtualenvs
mkdir $HOME/Devel
echo '' >> $HOME/.bashrc
echo '#python virtualenvwrapper configuration' >> $HOME/.bashrc
echo 'export WORKON_HOME=$HOME/.virtualenvs' >> $HOME/.bashrc
echo 'export PROJECT_HOME=$HOME/Devel' >> $HOME/.bashrc
echo 'source /usr/local/bin/virtualenvwrapper.sh' >> $HOME/.bashrc
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Devel
source /usr/local/bin/virtualenvwrapper.sh
# End install virtualenvwrapper
# Alternative:
# sudo apt-get install virtualenvwrapper
mkvirtualenv --system-site-packages lodstats
cdvirtualenv
mkdir src
cd src/
git clone git://github.com/AKSW/LODStats.git
cd LODStats/
python setup.py install
cd ../
git clone git://github.com/earthquakesan/CSV2RDF-WIKI.git
cd CSV2RDF-WIKI/
add2virtualenv ./
./deploy-for-lodstats.sh
(lodstats) $ lodstats --help
Usage: lodstats [options] [-m model.{rdf,nt,...}] file/URI
[...]
(lodstats) $ lodstats -vp some_rdf_file.nt