Skip to content

Commit

Permalink
Delete unnecessary coverage related mappings/code #1884
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Sep 27, 2023
1 parent 915536f commit 50f5789
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 66 deletions.
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
8 changes: 0 additions & 8 deletions src/main/resources/labels/context-labels.json
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,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
12 changes: 0 additions & 12 deletions web/app/views/TableRow.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,6 @@ public enum TableRow {
public String process(JsonNode doc, String property, String param,
String label, List<String> values, Optional<List<String>> keys) {
List<String> vs = values;
if (doc.has("coverage")) { // see https://github.com/hbz/nwbib/issues/276
List<String> remove = Arrays.asList(//
"https://nwbib.de/spatial#N10", "https://nwbib.de/spatial#N12",
"https://nwbib.de/spatial#N14", "https://nwbib.de/spatial#N24",
"https://nwbib.de/spatial#N28", "https://nwbib.de/spatial#N35",
"https://nwbib.de/spatial#N36", "https://nwbib.de/spatial#N37",
"https://nwbib.de/spatial#N52", "https://nwbib.de/spatial#N54",
"https://nwbib.de/spatial#N72", "https://nwbib.de/spatial#N74",
"https://nwbib.de/spatial#N96", "https://nwbib.de/spatial#N97");
vs = vs.stream().filter(v -> !remove.contains(v))
.collect(Collectors.toList());
}
return vs.isEmpty() ? ""
: String.format("<tr><td>%s</td><td>%s</td></tr>", label,
vs.stream().map(val -> label(doc, property, param, val, keys))
Expand Down
82 changes: 39 additions & 43 deletions web/conf/context.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@
"focus" : {
"@id" : "http://xmlns.com/foaf/0.1/focus"
},
"SecondaryPublicationEvent" : {
"@id" : "http://purl.org/lobid/lv#SecondaryPublicationEvent"
},
"altLabel" : {
"@id" : "http://www.w3.org/2004/02/skos/core#altLabel"
},
"Image" : {
"@id" : "http://purl.org/ontology/bibo/Image"
"SecondaryPublicationEvent" : {
"@id" : "http://purl.org/lobid/lv#SecondaryPublicationEvent"
},
"type" : {
"@id" : "@type",
"@container" : "@set"
},
"Image" : {
"@id" : "http://purl.org/ontology/bibo/Image"
},
"ReferenceSource" : {
"@id" : "http://purl.org/ontology/bibo/ReferenceSource"
},
Expand All @@ -35,15 +35,15 @@
"@id" : "http://id.loc.gov/ontologies/bibframe/contribution",
"@container" : "@list"
},
"notation" : {
"@id" : "http://www.w3.org/2004/02/skos/core#notation"
},
"Book" : {
"@id" : "http://purl.org/ontology/bibo/Book"
},
"Combination" : {
"@id" : "http://iflastandards.info/ns/isbd/terms/mediatype/T1008"
},
"notation" : {
"@id" : "http://www.w3.org/2004/02/skos/core#notation"
},
"Work" : {
"@id" : "https://d-nb.info/standards/elementset/gnd#Work"
},
Expand Down Expand Up @@ -100,15 +100,15 @@
"bibliographicCitation" : {
"@id" : "http://purl.org/dc/terms/bibliographicCitation"
},
"dateOfBirthAndDeath" : {
"@id" : "https://d-nb.info/standards/elementset/gnd#dateOfBirthAndDeath"
},
"Map" : {
"@id" : "http://purl.org/ontology/bibo/Map"
},
"Person" : {
"@id" : "https://d-nb.info/standards/elementset/gnd#Person"
},
"dateOfBirthAndDeath" : {
"@id" : "https://d-nb.info/standards/elementset/gnd#dateOfBirthAndDeath"
},
"startDate" : {
"@id" : "http://schema.org/startDate"
},
Expand Down Expand Up @@ -146,13 +146,13 @@
"@id" : "http://id.loc.gov/ontologies/bibframe/hasItem",
"@container" : "@set"
},
"Festschrift" : {
"@id" : "http://purl.org/lobid/lv#Festschrift"
},
"alternativeTitle" : {
"@id" : "http://purl.org/dc/terms/alternative",
"@container" : "@set"
},
"Festschrift" : {
"@id" : "http://purl.org/lobid/lv#Festschrift"
},
"lon" : {
"@id" : "http://schema.org/longitude"
},
Expand Down Expand Up @@ -182,19 +182,19 @@
"modifiedBy" : {
"@id" : "http://open-services.net/ns/core#modifiedBy"
},
"PublishedScore" : {
"@id" : "http://purl.org/ontology/mo/PublishedScore"
},
"gndIdentifier" : {
"@id" : "https://d-nb.info/standards/elementset/gnd#gndIdentifier"
},
"PublicationIssue" : {
"@id" : "http://schema.org/PublicationIssue"
"PublishedScore" : {
"@id" : "http://purl.org/ontology/mo/PublishedScore"
},
"oclcNumber" : {
"@id" : "http://purl.org/ontology/bibo/oclcnum",
"@container" : "@set"
},
"PublicationIssue" : {
"@id" : "http://schema.org/PublicationIssue"
},
"corporateBodyForTitle" : {
"@id" : "http://rdaregistry.info/Elements/u/P60327",
"@container" : "@set"
Expand Down Expand Up @@ -336,25 +336,25 @@
"workNumbering" : {
"@id" : "http://rdaregistry.info/Elements/w/P10079"
},
"Thesis" : {
"@id" : "http://purl.org/ontology/bibo/Thesis"
},
"exampleOfWork" : {
"@id" : "http://purl.org/lobid/lv#exampleOfWork"
},
"Thesis" : {
"@id" : "http://purl.org/ontology/bibo/Thesis"
},
"ArchivedWebPage" : {
"@id" : "http://purl.org/lobid/lv#ArchivedWebPage"
},
"BibliographicResource" : {
"@id" : "http://purl.org/dc/terms/BibliographicResource"
},
"license" : {
"@id" : "http://schema.org/license",
"@container" : "@set"
},
"deprecatedUri" : {
"@id" : "https://d-nb.info/standards/elementset/dnb#deprecatedUri"
},
"BibliographicResource" : {
"@id" : "http://purl.org/dc/terms/BibliographicResource"
},
"bibliographicLevel" : {
"@id" : "http://purl.org/lobid/lv#bibliographicLevel"
},
Expand All @@ -374,16 +374,16 @@
"SubjectHeading" : {
"@id" : "https://d-nb.info/standards/elementset/gnd#SubjectHeading"
},
"Sonstige" : {
"@id" : "http://purl.org/lobid/lv#Miscellaneous"
},
"note" : {
"@id" : "http://id.loc.gov/ontologies/bibframe/note",
"@container" : "@set"
},
"langNote" : {
"@id" : "http://purl.org/lobid/lv#langNote"
},
"Sonstige" : {
"@id" : "http://purl.org/lobid/lv#Miscellaneous"
},
"SoftwareApplication" : {
"@id" : "http://schema.org/SoftwareApplication"
},
Expand All @@ -399,9 +399,6 @@
"@id" : "http://www.w3.org/2001/XMLSchema#",
"@container" : "@set"
},
"DataFeedItem" : {
"@id" : "http://schema.org/DataFeedItem"
},
"description" : {
"@id" : "http://purl.org/dc/terms/description",
"@container" : "@set"
Expand All @@ -410,12 +407,15 @@
"@id" : "http://purl.org/ontology/bibo/edition",
"@container" : "@set"
},
"Standard" : {
"@id" : "http://purl.org/ontology/bibo/Standard"
"DataFeedItem" : {
"@id" : "http://schema.org/DataFeedItem"
},
"instrument" : {
"@id" : "http://schema.org/instrument"
},
"Standard" : {
"@id" : "http://purl.org/ontology/bibo/Standard"
},
"medium" : {
"@id" : "http://purl.org/dc/terms/medium",
"@container" : "@set"
Expand Down Expand Up @@ -450,10 +450,6 @@
"CreateAction" : {
"@id" : "http://schema.org/CreateAction"
},
"coverage" : {
"@id" : "http://purl.org/dc/elements/1.1/coverage",
"@container" : "@set"
},
"OfficialPublication" : {
"@id" : "http://purl.org/lobid/lv#OfficialPublication"
},
Expand Down Expand Up @@ -482,26 +478,26 @@
"currentLocation" : {
"@id" : "http://purl.org/lobid/lv#currentLocation"
},
"Series" : {
"@id" : "http://purl.org/ontology/bibo/Series"
},
"hasSuperordinate" : {
"@id" : "http://purl.org/lobid/lv#hasSuperordinate",
"@container" : "@set"
},
"Series" : {
"@id" : "http://purl.org/ontology/bibo/Series"
},
"subjectAltLabel" : {
"@id" : "http://purl.org/lobid/lv#subjectAltLabel",
"@container" : "@set"
},
"itemOf" : {
"@id" : "http://id.loc.gov/ontologies/bibframe/itemOf"
},
"PublicationEvent" : {
"@id" : "http://schema.org/PublicationEvent"
},
"sourceOrganization" : {
"@id" : "http://schema.org/sourceOrganization"
},
"PublicationEvent" : {
"@id" : "http://schema.org/PublicationEvent"
},
"location" : {
"@id" : "http://schema.org/location"
},
Expand Down

0 comments on commit 50f5789

Please sign in to comment.