Skip to content

Commit

Permalink
Merge branch '256-label' of https://github.com/hbz/lobid-gnd
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed May 13, 2024
2 parents be551d5 + 87b8b35 commit 92d96db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/GndOntology.java
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ private static void process(String f) throws SAXException, IOException {
String classId = c.getAttribute("rdf:about");
if (classId.contains("#")) {
String shortId = classId.split("#")[1];
String label = $(c).find(or(//
String label = $(c).children(or( //
selector("label"), //
selector("prefLabel"))).filter(attr("lang", "de")).content();
if (label != null) {
Expand Down
2 changes: 2 additions & 0 deletions test/models/GndOntologyLabelTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public static Collection<Object[]> data() {
{ "gndIdentifier", "GND-Nummer" }, //
{ "ZZ", "Land unbekannt" }, //
{ "https://d-nb.info/standards/vocab/gnd/gnd-sc#ZZ", "Land unbekannt" }, //
{ "XA-CH", "Schweiz" }, //
{ "https://d-nb.info/standards/vocab/gnd/gnd-sc#XA-CH", "Schweiz" }, //
{ "36", "Basteln, Handarbeiten, Heimwerken" }, //
{ "https://d-nb.info/standards/vocab/gnd/geographic-area-code#36", "Basteln, Handarbeiten, Heimwerken" }, //
{ "notKnown", "Unbekannt" }, //
Expand Down

0 comments on commit 92d96db

Please sign in to comment.