Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into 1888-opacLink
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Sep 28, 2023
2 parents 3e4ea81 + d0af2cf commit d553266
Show file tree
Hide file tree
Showing 18 changed files with 40,519 additions and 13,883 deletions.
553 changes: 279 additions & 274 deletions src/main/java/de/hbz/lobid/helper/EtikettMaker.java

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/de/hbz/lobid/helper/EtikettMakerInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ public interface EtikettMakerInterface {

/**
* Sets the filename of the jsonld-context.
*
*
* @param contextFname the filename of the jsonld-context
*/
public void setContextLocation(String contextFname);

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ public void run() {
fixVariables.put("rpb2.ttl", "../../../../../../vocabs/rpb/rpb2.ttl");
fixVariables.put("rpb-spatial.ttl", "../../../../../../vocabs/rpb/rpb-spatial.ttl");
fixVariables.put("rpb.ttl", "../../../../../../vocabs/rpb/rpb.ttl");
fixVariables.put("nwbib.ttl", "../../../../../../vocabs/nwbib/nwbib.ttl");
fixVariables.put("nwbib-spatial.ttl", "../../../../../../vocabs/nwbib/nwbib-spatial.ttl");
fixVariables.put("hbzId2zdbId.tsv", "./maps/hbzId2zdbId.tsv.gz");
fixVariables.put("isil2opac_hbzId.tsv", "../../../../../../lookup-tables/data/opacLinks/isil2opac_hbzId.tsv");
fixVariables.put("isil2opac_isbn.tsv", "../../../../../../lookup-tables/data/opacLinks/isil2opac_isbn.tsv");
Expand Down
5 changes: 3 additions & 2 deletions src/main/resources/alma/fix/macros.fix
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ do put_macro("alternateGraphicRepresationIsPartOf")
end
else
copy_field("[email protected]","alternateGraphicRepresentation[].$append.script.id")
copy_field("[email protected]","alternateGraphicRepresentation[].$last.script.label")
set_array("alternateGraphicRepresentation[].$last.record.isPartOf[].$last.hasSuperordinate[].$append")
copy_field("[email protected]","alternateGraphicRepresentation[].$last.script.label")
set_array("alternateGraphicRepresentation[].$last.record.isPartOf[]")
set_array("alternateGraphicRepresentation[].$last.record.isPartOf[].$append.hasSuperordinate[]")
copy_field("$880.a","alternateGraphicRepresentation[].$last.record.isPartOf[].$last.hasSuperordinate[].$append.label")
copy_field("$880.v", "alternateGraphicRepresentation[].$last.record.isPartOf[].$last.numbering")
end
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/alma/fix/maps.fix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ put_rdfmap("$[rpb2.ttl]", "rpb2", target: "skos:prefLabel", select_language: "de
put_rdfmap("$[rpb-spatial.ttl]", "rpbr", target: "skos:prefLabel", select_language: "de") # RPB-Raumsystematik aka rpbr
put_rdfmap("$[rpb.ttl]", "rpb", target: "skos:prefLabel", select_language: "de") # RPB-Sachsystematik fka. Systematik der Rheinland-Pfälzischen Bibliographie

# NWBib SKOS Maps
put_rdfmap("$[nwbib-spatial.ttl]", "nwbib-spatial", target: "skos:prefLabel", select_language: "de") # NWBib-Raumsystematik
put_rdfmap("$[nwbib.ttl]", "nwbib", target: "skos:prefLabel", select_language: "de") # Sachsystematik der Nordrhein-Westfälischen Bibliographie

# Formschlagwort/Formangaben-Mapping -> GND (based on: https://wiki.dnb.de/download/attachments/106042227/AH-007.pdf)
put_filemap("$[formangabe.tsv]","formschlagwort2Gnd", sep_char:"\t",key_column:"0",value_column:"1",expected_columns:"-1")
Expand Down
8 changes: 6 additions & 2 deletions src/main/resources/alma/fix/subjects.fix
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ do list(path:"084??", "var":"$i")
do list(path:"$i.0", "var":"$j")
if any_contain("$j","https://nwbib.de/subjects")
copy_field("$j", "subject[].$append.id")
copy_field("$i.a", "subject[].$last.label")
copy_field("$j","$i.@nwbibLabel")
lookup("$i.@nwbibLabel","nwbib")
copy_field("$i.@nwbibLabel", "subject[].$last.label")
if any_match("$j", "https://nwbib.de/subjects#N(.*)$")
copy_field("$j", "subject[].$last.notation")
replace_all("subject[].$last.notation","https://nwbib.de/subjects#N(.*)$","$1")
Expand Down Expand Up @@ -438,7 +440,9 @@ do list(path:"084??", "var":"$i")
# nwbib spatial
if any_contain("$j","https://nwbib.de/spatial#")
copy_field("$j", "spatial[].$append.id")
copy_field("$i.a", "spatial[].$last.label")
copy_field("$j","$i.@nwbib-spatialLabel")
lookup("$i.@nwbib-spatialLabel","nwbib-spatial")
copy_field("$i.@nwbib-spatialLabel", "spatial[].$last.label")
if any_match("$j", "https://nwbib.de/spatial#N(.*)$")
copy_field("$j", "spatial[].$last.notation")
end
Expand Down
3 changes: 0 additions & 3 deletions src/main/resources/alma/index-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -856,9 +856,6 @@
}
}
},
"coverage": {
"type": "text"
},
"isPartOf": {
"properties": {
"hasSuperordinate": {
Expand Down
269 changes: 261 additions & 8 deletions src/main/resources/labels/context-labels.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,26 @@
"label": "Veröffentlichung",
"multilangLabel": {}
},
{
"name": "manufacture",
"container": "@set",
"referenceType": "String",
"uri": "http://purl.org/lobid/lv#manufacture",
"label": "Herstellung",
"multilangLabel": {}
},
{
"name": "manufacturedBy",
"referenceType": "String",
"uri": "http://purl.org/lobid/lv#manufactureBy",
"label": "Hergestellt von",
"multilangLabel": {}
},
{
"uri": "http://schema.org/Event",
"multilangLabel": {},
"name": "Event"
},
{
"name": "location",
"uri": "http://schema.org/location",
Expand Down Expand Up @@ -225,14 +245,6 @@
"multilangLabel": {},
"name": "extent"
},
{
"referenceType": "String",
"uri": "http://purl.org/dc/elements/1.1/coverage",
"label": "Raumsystematik",
"multilangLabel": {},
"name": "coverage",
"container": "@set"
},
{
"multilangLabel": {},
"label": "Inhaltsangabe",
Expand Down Expand Up @@ -759,5 +771,246 @@
"multilangLabel": {},
"name": "langNote",
"uri": "http://purl.org/lobid/lv#langNote"
},
{
"uri": "https://d-nb.info/standards/elementset/gnd#ConferenceOrEvent",
"multilangLabel": {},
"name": "ConferenceOrEvent"
},
{
"name": "CorporateBody",
"multilangLabel": {},
"uri": "https://d-nb.info/standards/elementset/gnd#CorporateBody"
},
{
"name": "Family",
"uri": "https://d-nb.info/standards/elementset/gnd#Family",
"multilangLabel": {}
},
{
"name": "Person",
"multilangLabel": {},
"uri": "https://d-nb.info/standards/elementset/gnd#Person"
},
{
"uri": "https://d-nb.info/standards/elementset/gnd#PlaceOrGeographicName",
"multilangLabel": {},
"name": "PlaceOrGeographicName"
},
{
"uri": "https://d-nb.info/standards/elementset/gnd#SubjectHeading",
"multilangLabel": {},
"name": "SubjectHeading"
},
{
"name": "Work",
"uri": "https://d-nb.info/standards/elementset/gnd#Work",
"multilangLabel": {}
},
{
"name": "Item",
"multilangLabel": {},
"uri": "http://id.loc.gov/ontologies/bibframe/Item"
},
{
"multilangLabel": {},
"name": "CreateAction",
"uri": "http://schema.org/CreateAction"
},
{
"multilangLabel": {},
"name": "DataFeedItem",
"uri": "http://schema.org/DataFeedItem"
},
{
"multilangLabel": {},
"name": "SoftwareApplication",
"uri": "http://schema.org/SoftwareApplication"
},
{
"label": "Kombination",
"multilangLabel": {},
"name": "Combination",
"uri": "http://iflastandards.info/ns/isbd/terms/mediatype/T1008"
},
{
"multilangLabel": {},
"name": "Contribution",
"uri": "http://id.loc.gov/ontologies/bibframe/Contribution",
"label": "Mitwirkung"
},
{
"uri": "http://www.loc.gov/mads/rdf/v1#ComplexSubject",
"name": "ComplexSubject",
"multilangLabel": {}
},
{
"uri": "http://www.w3.org/2004/02/skos/core#Concept",
"name": "Concept",
"multilangLabel": {}
},
{
"uri": "http://id.loc.gov/ontologies/bibframe/Collection",
"multilangLabel": {},
"name": "Collection"
},
{
"name": "IsPartOfRelation",
"label": "IsPartOfRelation",
"uri": "http://purl.org/lobid/lv#IsPartOfRelation",
"multilangLabel": {}
},
{
"uri": "http://schema.org/PublicationEvent",
"multilangLabel": {},
"name": "PublicationEvent"
},
{
"name": "SecondaryPublicationEvent",
"multilangLabel": {},
"uri": "http://purl.org/lobid/lv#SecondaryPublicationEvent"
},
{
"multilangLabel": {},
"uri": "http://purl.org/lobid/lv#ArchivedWebPage",
"name": "ArchivedWebPage"
},
{
"name": "Article",
"multilangLabel": {},
"uri": "http://purl.org/ontology/bibo/Article"
},
{
"name": "BibliographicResource",
"uri": "http://purl.org/dc/terms/BibliographicResource",
"multilangLabel": {}
},
{
"name": "BibliographicDescription",
"uri": "http://purl.org/lobid/lv#BibliographicDescription",
"multilangLabel": {}
},
{
"name": "Bibliography",
"uri": "http://purl.org/lobid/lv#Bibliography",
"multilangLabel": {}
},
{
"name": "Biography",
"uri": "http://purl.org/lobid/lv#Biography",
"multilangLabel": {}
},
{
"uri": "http://purl.org/ontology/bibo/Book",
"multilangLabel": {},
"name": "Book"
},
{
"name": "EditedVolume",
"multilangLabel": {},
"uri": "http://purl.org/lobid/lv#EditedVolume"
},
{
"name": "Festschrift",
"multilangLabel": {},
"uri": "http://purl.org/lobid/lv#Festschrift"
},
{
"name": "Game",
"uri": "http://schema.org/Game",
"multilangLabel": {}
},
{
"name": "Image",
"multilangLabel": {},
"label": "Bild",
"uri": "http://purl.org/ontology/bibo/Image"
},
{
"label": "Karte",
"multilangLabel": {},
"name": "Map",
"uri": "http://purl.org/ontology/bibo/Map"
},
{
"multilangLabel": {},
"uri": "http://purl.org/lobid/lv#Legislation",
"name": "Legislation"
},
{
"name": "Sonstige",
"multilangLabel": {},
"uri": "http://purl.org/lobid/lv#Miscellaneous"
},
{
"name": "MultiVolumeBook",
"uri": "http://purl.org/ontology/bibo/MultiVolumeBook",
"multilangLabel": {}
},
{
"uri": "http://purl.org/ontology/bibo/Newspaper",
"multilangLabel": {},
"name": "Newspaper"
},
{
"name": "OfficialPublication",
"multilangLabel": {},
"uri": "http://purl.org/lobid/lv#OfficialPublication"
},
{
"uri": "http://purl.org/ontology/bibo/Periodical",
"multilangLabel": {},
"name": "Periodical"
},
{
"multilangLabel": {},
"uri": "http://purl.org/ontology/bibo/Proceedings",
"name": "Proceedings"
},
{
"multilangLabel": {},
"name": "PublicationIssue",
"uri": "http://schema.org/PublicationIssue"
},
{
"name": "PublishedScore",
"multilangLabel": {},
"uri": "http://purl.org/ontology/mo/PublishedScore"
},
{
"name": "ReferenceSource",
"uri": "http://purl.org/ontology/bibo/ReferenceSource",
"multilangLabel": {}
},
{
"name": "Report",
"uri": "http://purl.org/ontology/bibo/Report",
"multilangLabel": {}
},
{
"name": "Schoolbook",
"multilangLabel": {},
"uri": "http://purl.org/lobid/lv#Schoolbook"
},
{
"name": "Series",
"multilangLabel": {},
"uri": "http://purl.org/ontology/bibo/Series"
},
{
"name": "Standard",
"uri": "http://purl.org/ontology/bibo/Standard",
"label": "Standard",
"multilangLabel": {}
},
{
"multilangLabel": {},
"name": "Statistics",
"uri": "http://purl.org/lobid/lv#Statistics"
},
{
"name": "Thesis",
"multilangLabel": {},
"uri": "http://purl.org/ontology/bibo/Thesis"
}
]
Loading

0 comments on commit d553266

Please sign in to comment.