forked from trungdong/notebooks
-
Notifications
You must be signed in to change notification settings - Fork 6
/
bootstrap.sh
executable file
·48 lines (37 loc) · 1.59 KB
/
bootstrap.sh
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
#!/usr/bin/env bash
sudo apt-get update
sudo apt-get -y install rasqal-utils
sudo apt-get -y install raptor2-utils
sudo apt-get -y install redland-utils
sudo apt-get -y install libxml2-utils
sudo apt-get -y install graphviz
sudo apt-get -y install curl
sudo apt-get -y install unzip
sudo apt-get -y install openjdk-7-jdk
sudo apt-get -y install git
sudo apt-get -y install python-pip
sudo apt-get -y install maven
sudo apt-get -y install wdiff
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get -y install nodejs
sudo apt-get -y install npm
export LC_ALL=en_US.UTF-8
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
echo "export LC_ALL=en_US.UTF-8" >> .bashrc
echo "export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/" >> .bashrc
echo "export JENAROOT=/usr/local/bin/apache-jena-2.12.0" >> .bashrc
echo "export PATH=$PATH:/usr/local/bin/provToolbox/bin:/usr/local/bin/apache-jena-2.12.0/bin" >> .bashrc
echo "update-alternatives --set java /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java" >> .bashrc
curl -O http://apache.websitebeheerjd.nl//jena/binaries/apache-jena-2.12.0.zip
unzip apache-jena-2.12.0.zip
sudo mv ./apache-jena-2.12.0 /usr/local/bin
curl -O http://search.maven.org/remotecontent?filepath=org/openprovenance/prov/toolbox/0.6.1/toolbox-0.6.1-release.zip
unzip toolbox-0.6.1-release.zip
sudo mv ./provToolbox/ /usr/local/bin/
npm config set registry http://registry.npmjs.org/
npm install -g git2prov
pip install rdflib
git clone https://github.com/Data2Semantics/prov-o-matic.git
git clone https://github.com/gambl/wikipedia-provenance.git
cd ./wikipedia-provenance
mvn package