Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v5
- name: Set up JDK 1.8
- name: Set up JDK 11
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 8
java-version: 11
- name: Install and start Elasticsearch
env:
ES_DOWNLOAD_URL: https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${{ env.ES_VERSION }}.tar.gz
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ lobid-gnd: access GND+EntityFacts data as JSON-LD over HTTP.

### Prerequisites

Java 11

`sbt 0.13` or newer --- [download sbt](http://www.scala-sbt.org/download/)

Elasticsearch 5.6.x (configured in `application.conf`)
Expand Down
14 changes: 8 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ lazy val root = (project in file(".")).enablePlugins(PlayJava)
EclipseKeys.projectFlavor := EclipseProjectFlavor.Java
EclipseKeys.createSrc := EclipseCreateSrc.ValueSet(EclipseCreateSrc.ManagedClasses, EclipseCreateSrc.ManagedResources)

scalaVersion := "2.12.4"
scalaVersion := "2.12.12"

libraryDependencies += guice

Expand All @@ -20,15 +20,15 @@ libraryDependencies += "javax.mail" % "mail" % "1.4.1"

libraryDependencies += "org.apache.jena" % "apache-jena-libs" % "3.7.0"

libraryDependencies += "org.metafacture" % "metafacture-framework" % "5.4.0"
libraryDependencies += "org.metafacture" % "metafacture-framework" % "7.0.0"

libraryDependencies += "org.metafacture" % "metafacture-flowcontrol" % "5.4.0"
libraryDependencies += "org.metafacture" % "metafacture-flowcontrol" % "7.0.0"

libraryDependencies += "org.metafacture" % "metafacture-io" % "5.4.0"
libraryDependencies += "org.metafacture" % "metafacture-io" % "7.0.0"

libraryDependencies += "org.metafacture" % "metafacture-xml" % "5.4.0"
libraryDependencies += "org.metafacture" % "metafacture-xml" % "7.0.0"

libraryDependencies += "org.metafacture" % "metafacture-elasticsearch" % "5.4.0" exclude("com.fasterxml.jackson.core", "jackson-databind")
libraryDependencies += "org.metafacture" % "metafacture-elasticsearch" % "7.0.0" exclude("com.fasterxml.jackson.core", "jackson-databind")

libraryDependencies += "org.elasticsearch" % "elasticsearch" % "5.6.3"

Expand All @@ -46,6 +46,8 @@ libraryDependencies += "org.apache.logging.log4j" % "log4j-api" % "2.16.0"

libraryDependencies += "org.hamcrest" % "hamcrest-library" % "1.3" % Test

javacOptions ++= Seq("-source", "11", "-target", "11")

resolvers += Resolver.mavenLocal

trapExit := false
2 changes: 1 addition & 1 deletion conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ entityfacts {

index {
boot: {
hosts: ["localhost"] # ["weywot3.hbz-nrw.de", "weywot4.hbz-nrw.de", "weywot5.hbz-nrw.de"]
hosts: ["localhost"]
cluster: "elasticsearch" # "weywot"
name: "gnd-boot" # "gnd"
}
Expand Down
6 changes: 4 additions & 2 deletions monit_restart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ HOME="/home/sol"

# it is important to set the proper locale
. $HOME/.locale
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/
JAVA_OPTS=$(echo "$JAVA_OPTS" |sed 's#,#\ #g')

cd $HOME/git/$REPO
Expand All @@ -34,7 +34,9 @@ case $ACTION in
if [ -f target/universal/stage/RUNNING_PID ]; then
kill $(cat target/universal/stage/RUNNING_PID)
fi
JAVA_OPTS="$JAVA_OPTS -XX:+ExitOnOutOfMemoryError" sbt --java-home $JAVA_HOME "start $PORT"
sbt clean
Copy link
Contributor Author

@TobiasNx TobiasNx Feb 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reintroduces sbt clean and sbt stage that @Phu2 dropped before: d7d693f

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like I said, both is fine here, lobid-gnd doesn't log to target.

sbt --java-home $JAVA_HOME stage
JAVA_OPTS="$JAVA_OPTS -XX:+ExitOnOutOfMemoryError" ./target/universal/stage/bin/lobid-gnd -Dhttp.port=$PORT -no-version-check
;;
stop)
if [ -f target/universal/stage/RUNNING_PID ]; then
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=0.13.16
sbt.version=0.13.18
2 changes: 1 addition & 1 deletion test/data/GND.jsonl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
{"index":{"_index":"gnd-test","_type":"authority","_id":"https://d-nb.info/gnd/1077774206"}}
{"geographicAreaCode":[{"id":"https://d-nb.info/standards/vocab/gnd/geographic-area-code#XD-US","label":"USA"}],"biographicalOrHistoricalInformation":["Faculty of Infectious and Tropical Diseases, London School of Hygiene and Tropic𘛌􀁏𘚣𘚾𘛐𘛏􀁌𘛎􀁌𘛓𘛐","Rollins School of Public Health, Emory University, Atlanta, Ga."],"gender":[{"id":"https://d-nb.info/standards/vocab/gnd/gender#male","label":"Männlich"}],"gndIdentifier":"1077774206","id":"https://d-nb.info/gnd/1077774206","preferredName":"Clasen, Thomas","type":["DifferentiatedPerson","Person","AuthorityResource"],"@context":"https://lobid.org/gnd/context.jsonld","preferredNameEntityForThePerson":{"forename":["Thomas"],"surname":["Clasen"]},"sameAs":[{"id":"http://viaf.org/viaf/182144782963056229916","collection":{"id":"http://www.wikidata.org/entity/Q54919","abbr":"VIAF","publisher":"OCLC","icon":"http://viaf.org/viaf/images/viaf.ico","name":"Virtual International Authority File (VIAF)"}}]}
{"index":{"_index":"gnd-test","_type":"authority","_id":"https://d-nb.info/gnd/1072719991"}}
{"gender":[{"id":"https://d-nb.info/standards/vocab/gnd/gender#notKnown","label":"Unbekannt"}],"variantNameEntityForThePerson":[{"forename":["良𩆩"],"surname":["趙"]},{"personalName":["Zhao Liang shu"]},{"personalName":["Zhao Liangshu"]}],"type":["AuthorityResource","DifferentiatedPerson","Person"],"@context":"https://lobid.org/gnd/context.jsonld","geographicAreaCode":[{"id":"https://d-nb.info/standards/vocab/gnd/geographic-area-code#XB-CN","label":"China"}],"biographicalOrHistoricalInformation":["Chines. Gelehrter der Qing-Dynastie, Jinshi-Grad 1795"],"periodOfActivity":["1795-"],"gndIdentifier":"1072719991","id":"https://d-nb.info/gnd/1072719991","preferredName":"Zhao, Liangshu","variantName":["Zhao Liang shu","趙, 良𩆩","Zhao Liangshu"],"preferredNameEntityForThePerson":{"forename":["Liangshu"],"surname":["Zhao"]},"sameAs":[{"id":"http://viaf.org/viaf/316502188","collection":{"id":"http://www.wikidata.org/entity/Q54919","abbr":"VIAF","publisher":"OCLC","icon":"http://viaf.org/viaf/images/viaf.ico","name":"Virtual International Authority File (VIAF)"}}]}
{"gender":[{"id":"https://d-nb.info/standards/vocab/gnd/gender#notKnown","label":"Unbekannt"}],"variantNameEntityForThePerson":[{"personalName":["Zhao Liang shu"]},{"forename":["良𩆩"],"surname":["趙"]},{"personalName":["Zhao Liangshu"]}],"type":["AuthorityResource","DifferentiatedPerson","Person"],"@context":"https://lobid.org/gnd/context.jsonld","geographicAreaCode":[{"id":"https://d-nb.info/standards/vocab/gnd/geographic-area-code#XB-CN","label":"China"}],"biographicalOrHistoricalInformation":["Chines. Gelehrter der Qing-Dynastie, Jinshi-Grad 1795"],"periodOfActivity":["1795-"],"gndIdentifier":"1072719991","id":"https://d-nb.info/gnd/1072719991","preferredName":"Zhao, Liangshu","variantName":["Zhao Liang shu","趙, 良𩆩","Zhao Liangshu"],"preferredNameEntityForThePerson":{"forename":["Liangshu"],"surname":["Zhao"]},"sameAs":[{"id":"http://viaf.org/viaf/316502188","collection":{"id":"http://www.wikidata.org/entity/Q54919","abbr":"VIAF","publisher":"OCLC","icon":"http://viaf.org/viaf/images/viaf.ico","name":"Virtual International Authority File (VIAF)"}}]}
{"index":{"_index":"gnd-test","_type":"authority","_id":null}}
{"@context":"https://lobid.org/gnd/context.jsonld"}