-
Notifications
You must be signed in to change notification settings - Fork 7
/
publish.sh
executable file
·53 lines (41 loc) · 2.28 KB
/
publish.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
49
50
51
#!/bin/sh
#clean
mvn clean
# update owl files:
for f in `find . -name "*.ttl" | grep -v previous | grep -v format | grep -v misc `
do
FILE=$(echo $f | sed 's/.ttl$//')
rapper -i turtle -o rdfxml-abbrev $f > $FILE".owl"
done
# sync run
rsync -rav --delete nif-core/ [email protected]:/data/homewww/nlp2rdf/webdir/ontologies/nif-core/
rsync -rav --delete rlog/ [email protected]:/data/homewww/nlp2rdf/webdir/ontologies/rlog
rsync -rav --delete testcase/ [email protected]:/data/homewww/nlp2rdf/webdir/ontologies/testcase
rsync -rav --delete pom.xml [email protected]:/data/homewww/nlp2rdf/webdir/ontologies
rsync -rav --delete dev/misc/resources.ttl [email protected]:/data/homewww/nlp2rdf/webdir/ontologies/dev/misc/resources.ttl
rsync -rav .htaccess [email protected]:/data/homewww/nlp2rdf/webdir/ontologies
#sync vm
rsync -rav --delete vm [email protected]:/data/homewww/nlp2rdf/webdir/ontologies/
#docu
ONTO="nif-core/nif-core nif-core/nif-stanbol rlog/rlog testcase/stc vm/dep/stanford vm/lexo/lexo vm/itsrdf/its-rdf"
for doc in $ONTO
do
curl "http://www.essepuntato.it/lode/http://persistence.uni-leipzig.org/nlp2rdf/ontologies/""$doc"".owl" > /tmp/docu.html
if [ -s /tmp/docu.html ]
then
cp /tmp/docu.html "$doc"".html"
fi
done
# sync run
rsync -rav --delete nif-core/ [email protected]:/data/homewww/nlp2rdf/webdir/ontologies/nif-core
rsync -rav --delete rlog/ [email protected]:/data/homewww/nlp2rdf/webdir/ontologies/rlog
rsync -rav --delete testcase/ [email protected]:/data/homewww/nlp2rdf/webdir/ontologies/testcase
rsync -rav --delete pom.xml [email protected]:/data/homewww/nlp2rdf/webdir/ontologies
rsync -rav .htaccess [email protected]:/data/homewww/nlp2rdf/webdir/ontologies
#sync vm
rsync -rav --delete vm [email protected]:/data/homewww/nlp2rdf/webdir/ontologies/
curl -I http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core | grep -E "(303|Location)"
curl -I -H "Accept: application/rdf+xml " http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core | grep -E "(303|Location)"
curl -I -H "Accept: text/html " http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core | grep -E "(303|Location)"
#push any changes
#git push server