Skip to content

Commit 74e13a9

Browse files
committed
Merge branch '464-updatebaselineShForJava11' of https://github.com/hbz/lobid-gnd
Resolves #464
2 parents 270ba30 + 7989a82 commit 74e13a9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

baseline.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ set -uo pipefail # See http://redsymbol.net/articles/unofficial-bash-strict-mode
66

77
export TODAY=$(date +'%Y%m%d')
88

9+
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/
10+
911
# get entityfacts baseline file
1012
cd data/entityfacts/
1113
wget --quiet https://data.dnb.de/opendata/authorities-gnd_entityfacts.jsonld.gz
1214
gunzip < authorities-gnd_entityfacts.jsonld.gz > authorities-gnd_entityfacts.jsonld
1315
cd ../..
1416

1517
# index entityfacts JSON
16-
sbt \
18+
sbt --java-home $JAVA_HOME \
1719
-Dindex.entityfacts.index=entityfacts_$TODAY \
1820
"runMain apps.Index entityfacts" \
1921
> IndexEntityfacts_$TODAY.log 2>&1
@@ -30,7 +32,7 @@ cd ../..
3032
mkdir data/index/gnd_lds_$TODAY
3133

3234
# convert RDF_XML to JSON lines
33-
sbt \
35+
sbt --java-home $JAVA_HOME \
3436
-Ddata.rdfmxl=data/gnd_lds \
3537
-Dindex.entityfacts.index=entityfacts_$TODAY \
3638
-Dindex.prod.name=gnd_$TODAY \

0 commit comments

Comments
 (0)