Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add labels of complex subject #667

Merged
merged 2 commits into from Jan 12, 2018
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
364 changes: 325 additions & 39 deletions src/main/resources/morph-hbz01-to-lobid.xml

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions src/test/resources/hbz01.es.json
Expand Up @@ -121,6 +121,13 @@
"label" : "Culturegraph Ressource"
} ],
"subject" : [ {
"id" : "http://purl.org/lobid/nwbib#s611030",
"label" : "Kirchengemeinden",
"source" : {
"id" : "http://purl.org/lobid/nwbib",
"label" : "Sachsystematik der Nordrhein-Westfälischen Bibliographie"
}
}, {
"componentList" : [ {
"altLabel" : [ "Pfarrei Sankt Joseph und Sankt Antonius Bergisch Gladbach", "Katholische Kirchengemeinde St. Joseph und St. Antonius Bergisch Gladbach", "Katholische Kirchengemeinde Sankt Joseph und Sankt Antonius Bergisch Gladbach" ],
"id" : "http://d-nb.info/gnd/1060772442",
Expand All @@ -143,14 +150,8 @@
"label" : "Geschichte",
"type" : [ "SubjectHeading" ]
} ],
"label" : "Pfarrei St. Joseph und St. Antonius Bergisch Gladbach | Pfarrei Sankt Antonius Abbas Herkenrath | Geschichte ",
"type" : [ "ComplexSubject" ]
}, {
"id" : "http://purl.org/lobid/nwbib#s611030",
"label" : "Kirchengemeinden",
"source" : {
"id" : "http://purl.org/lobid/nwbib",
"label" : "Sachsystematik der Nordrhein-Westfälischen Bibliographie"
}
} ],
"subjectAltLabel" : [ "Pfarrgemeinderat Sankt Antonius Abbas Herkenrath", "Pfarrei Sankt Antonius Abbas Herkenrath. Pfarrgemeinderat", "Pfarrei St. Antonius Abbas Herkenrath", "Pfarrei Sankt Joseph und Sankt Antonius Bergisch Gladbach", "Katholische Kirchengemeinde St. Joseph und St. Antonius Bergisch Gladbach", "Pfarrei Sankt Antonius Abbas Bergisch Gladbach- Herkenrath", "Katholische Kirchengemeinde Sankt Joseph und Sankt Antonius Bergisch Gladbach", "Pfarrgemeinderat (Pfarrei Sankt Antonius Abbas Herkenrath)" ],
"subjectOrder" : [ "http://d-nb.info/gnd/1060772442, http://d-nb.info/gnd/2175350-7, Geschichte" ],
Expand Down
328 changes: 210 additions & 118 deletions src/test/resources/hbz01.es.nt

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/test/resources/jsonld/BT000002852
Expand Up @@ -73,6 +73,7 @@
},
"type" : [ "SubjectHeading" ]
} ],
"label" : "Freudenberg, Kreis Siegen-Wittgenstein | Geschichte",
"type" : [ "ComplexSubject" ]
}, {
"id" : "http://purl.org/lobid/nwbib#s240000",
Expand Down
14 changes: 8 additions & 6 deletions src/test/resources/jsonld/BT000003404
Expand Up @@ -61,17 +61,18 @@
} ],
"subject" : [ {
"componentList" : [ {
"id" : "http://d-nb.info/gnd/4115393-5",
"label" : "Niedersachsen, Süd",
"id" : "http://d-nb.info/gnd/4042570-8",
"label" : "Nordrhein-Westfalen",
"source" : {
"id" : "http://d-nb.info/gnd/7749153-1",
"label" : "Gemeinsame Normdatei (GND)"
},
"type" : [ "PlaceOrGeographicName", "SubjectHeading" ]
"type" : [ "PlaceOrGeographicName" ]
}, {
"label" : "Karte",
"type" : [ "SubjectHeading" ]
} ],
"label" : "Nordrhein-Westfalen | Karte",
"type" : [ "ComplexSubject" ]
}, {
"id" : "http://purl.org/lobid/nwbib-spatial#n01",
Expand All @@ -89,17 +90,18 @@
}
}, {
"componentList" : [ {
"id" : "http://d-nb.info/gnd/4042570-8",
"label" : "Nordrhein-Westfalen",
"id" : "http://d-nb.info/gnd/4115393-5",
"label" : "Niedersachsen, Süd",
"source" : {
"id" : "http://d-nb.info/gnd/7749153-1",
"label" : "Gemeinsame Normdatei (GND)"
},
"type" : [ "PlaceOrGeographicName" ]
"type" : [ "PlaceOrGeographicName", "SubjectHeading" ]
}, {
"label" : "Karte",
"type" : [ "SubjectHeading" ]
} ],
"label" : "Niedersachsen, Süd | Karte",
"type" : [ "ComplexSubject" ]
} ],
"subjectAltLabel" : [ "NRW", "Nord-Westphalie", "Noordrijn-Westfalen", "NW", "Südliches Niedersachsen", "Südniedersachsen", "Norte-Westfalia", "North Rhine-Westphalia" ],
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/jsonld/BT000014215
Expand Up @@ -91,6 +91,7 @@
},
"type" : [ "Work" ]
} ],
"label" : "Dreikönigsschrein",
"type" : [ "ComplexSubject" ]
}, {
"id" : "http://purl.org/lobid/nwbib-spatial#n62",
Expand Down
8 changes: 2 additions & 6 deletions src/test/resources/jsonld/BT000040377
Expand Up @@ -61,21 +61,17 @@
}
}, {
"componentList" : [ {
"label" : "Rheine",
"type" : [ "SubjectHeading" ]
}, {
"label" : "Vogelschutz",
"type" : [ "SubjectHeading" ]
} ],
"label" : "Rheine, Vogelschutz",
"type" : [ "ComplexSubject" ]
}, {
"componentList" : [ {
"label" : "Vogelschutz",
"type" : [ "SubjectHeading" ]
}, {
"label" : "Rheine",
"type" : [ "SubjectHeading" ]
} ],
"label" : "Vogelschutz, Rheine",
"type" : [ "ComplexSubject" ]
} ],
"subjectOrder" : [ "Vogelschutz", "Rheine" ],
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/jsonld/BT000103077
Expand Up @@ -68,6 +68,7 @@
"label" : "Herne",
"type" : [ "SubjectHeading" ]
} ],
"label" : "Schulgeschichte, Herne",
"type" : [ "ComplexSubject" ]
}, {
"id" : "http://purl.org/lobid/nwbib#s783000",
Expand Down
15 changes: 8 additions & 7 deletions src/test/resources/jsonld/BT000110055
Expand Up @@ -59,6 +59,13 @@
"id" : "http://purl.org/lobid/nwbib",
"label" : "Sachsystematik der Nordrhein-Westfälischen Bibliographie"
}
}, {
"id" : "http://purl.org/lobid/nwbib#s582000",
"label" : "Umweltschutz",
"source" : {
"id" : "http://purl.org/lobid/nwbib",
"label" : "Sachsystematik der Nordrhein-Westfälischen Bibliographie"
}
}, {
"componentList" : [ {
"label" : "Umweltschutz",
Expand All @@ -67,14 +74,8 @@
"label" : "Kall",
"type" : [ "SubjectHeading", "CorporateBody" ]
} ],
"label" : "Umweltschutz, Kall",
"type" : [ "ComplexSubject" ]
}, {
"id" : "http://purl.org/lobid/nwbib#s582000",
"label" : "Umweltschutz",
"source" : {
"id" : "http://purl.org/lobid/nwbib",
"label" : "Sachsystematik der Nordrhein-Westfälischen Bibliographie"
}
} ],
"subjectOrder" : [ "Kall" ],
"title" : "Kall im Naturpark Nordeifel",
Expand Down
24 changes: 13 additions & 11 deletions src/test/resources/jsonld/BT000128754
Expand Up @@ -56,16 +56,9 @@
"label" : "Culturegraph Ressource"
} ],
"subject" : [ {
"id" : "http://purl.org/lobid/nwbib#s736050",
"label" : "Sportvereine",
"source" : {
"id" : "http://purl.org/lobid/nwbib",
"label" : "Sachsystematik der Nordrhein-Westfälischen Bibliographie"
}
}, {
"componentList" : [ {
"id" : "http://d-nb.info/gnd/2041907-7",
"label" : "Verein für Leibesübungen Borussia 1900 Mönchengladbach",
"id" : "http://d-nb.info/gnd/2050419-6",
"label" : "1. Fußball-Club Köln 01/07",
"source" : {
"id" : "http://d-nb.info/gnd/7749153-1",
"label" : "Gemeinsame Normdatei (GND)"
Expand All @@ -75,11 +68,19 @@
"label" : "Geschichte",
"type" : [ "SubjectHeading" ]
} ],
"label" : "1. Fußball-Club Köln 01/07 | Geschichte",
"type" : [ "ComplexSubject" ]
}, {
"id" : "http://purl.org/lobid/nwbib#s736050",
"label" : "Sportvereine",
"source" : {
"id" : "http://purl.org/lobid/nwbib",
"label" : "Sachsystematik der Nordrhein-Westfälischen Bibliographie"
}
}, {
"componentList" : [ {
"id" : "http://d-nb.info/gnd/2050419-6",
"label" : "1. Fußball-Club Köln 01/07",
"id" : "http://d-nb.info/gnd/2041907-7",
"label" : "Verein für Leibesübungen Borussia 1900 Mönchengladbach",
"source" : {
"id" : "http://d-nb.info/gnd/7749153-1",
"label" : "Gemeinsame Normdatei (GND)"
Expand All @@ -89,6 +90,7 @@
"label" : "Geschichte",
"type" : [ "SubjectHeading" ]
} ],
"label" : "Verein für Leibesübungen Borussia 1900 Mönchengladbach | Geschichte",
"type" : [ "ComplexSubject" ]
} ],
"subjectAltLabel" : [ "1. FC Köln 01/07", "1. Fußball-Club Köln 01/07 e.V.", "Erster Fußball-Club Köln 01/07", "Erster FC Köln", "Borussia Mönchengladbach", "Erster Fußball-Klub Köln 01/07", "1. FC Köln", "VfL Borussia Mönchengladbach" ],
Expand Down
38 changes: 20 additions & 18 deletions src/test/resources/jsonld/BT000168595
Expand Up @@ -52,20 +52,6 @@
"label" : "Culturegraph Ressource"
} ],
"subject" : [ {
"id" : "http://purl.org/lobid/nwbib-spatial#n01",
"label" : "Nordrhein-Westfalen",
"source" : {
"id" : "http://purl.org/lobid/nwbib-spatial",
"label" : "Raumsystematik der Nordrhein-Westfälischen Bibliographie"
}
}, {
"id" : "http://purl.org/lobid/nwbib#s724040",
"label" : "Frauen",
"source" : {
"id" : "http://purl.org/lobid/nwbib",
"label" : "Sachsystematik der Nordrhein-Westfälischen Bibliographie"
}
}, {
"componentList" : [ {
"id" : "http://d-nb.info/gnd/4042570-8",
"label" : "Nordrhein-Westfalen",
Expand All @@ -75,8 +61,8 @@
},
"type" : [ "PlaceOrGeographicName" ]
}, {
"id" : "http://d-nb.info/gnd/4033581-1",
"label" : "Kulturpolitik",
"id" : "http://d-nb.info/gnd/4246263-0",
"label" : "Kulturbetrieb",
"source" : {
"id" : "http://d-nb.info/gnd/7749153-1",
"label" : "Gemeinsame Normdatei (GND)"
Expand All @@ -91,7 +77,22 @@
},
"type" : [ "SubjectHeading" ]
} ],
"label" : "Nordrhein-Westfalen | Kulturbetrieb | Frau",
"type" : [ "ComplexSubject" ]
}, {
"id" : "http://purl.org/lobid/nwbib-spatial#n01",
"label" : "Nordrhein-Westfalen",
"source" : {
"id" : "http://purl.org/lobid/nwbib-spatial",
"label" : "Raumsystematik der Nordrhein-Westfälischen Bibliographie"
}
}, {
"id" : "http://purl.org/lobid/nwbib#s724040",
"label" : "Frauen",
"source" : {
"id" : "http://purl.org/lobid/nwbib",
"label" : "Sachsystematik der Nordrhein-Westfälischen Bibliographie"
}
}, {
"id" : "http://purl.org/lobid/nwbib#s731000",
"label" : "Kulturpolitik",
Expand All @@ -109,8 +110,8 @@
},
"type" : [ "PlaceOrGeographicName" ]
}, {
"id" : "http://d-nb.info/gnd/4246263-0",
"label" : "Kulturbetrieb",
"id" : "http://d-nb.info/gnd/4033581-1",
"label" : "Kulturpolitik",
"source" : {
"id" : "http://d-nb.info/gnd/7749153-1",
"label" : "Gemeinsame Normdatei (GND)"
Expand All @@ -125,6 +126,7 @@
},
"type" : [ "SubjectHeading" ]
} ],
"label" : "Nordrhein-Westfalen | Kulturpolitik | Frau",
"type" : [ "ComplexSubject" ]
} ],
"subjectAltLabel" : [ "NRW", "Nord-Westphalie", "Noordrijn-Westfalen", "NW", "Weibliche Erwachsene", "Erwachsene Frau", "Norte-Westfalia", "Frauen", "North Rhine-Westphalia", "Weib" ],
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/jsonld/CT001004829
Expand Up @@ -111,6 +111,7 @@
"label" : "Online-Publikation",
"type" : [ "SubjectHeading" ]
} ],
"label" : "Otto (-1150), von Rheineck | Theaterstück | Online-Publikation",
"type" : [ "ComplexSubject" ]
}, {
"id" : "https://w3id.org/lobid/rpb2#n140",
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/jsonld/HT001039253
Expand Up @@ -169,6 +169,7 @@
},
"type" : [ "SubjectHeading" ]
} ],
"label" : "Feder | Norm",
"type" : [ "ComplexSubject" ]
} ],
"subjectAltLabel" : [ "Normschrift (Norm)", "Metallfeder" ],
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/jsonld/HT001898812
Expand Up @@ -276,6 +276,7 @@
},
"type" : [ "SubjectHeading" ]
} ],
"label" : "Polnisch | Wörterbuch | Deutsch",
"type" : [ "ComplexSubject" ]
} ],
"subjectAltLabel" : [ "Hochdeutsch", "Polnische Sprache", "Neuhochdeutsch", "Deutsche Sprache" ],
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/jsonld/HT003160768
Expand Up @@ -123,6 +123,7 @@
},
"type" : [ "SubjectHeading" ]
} ],
"label" : "Bezirk Münster (Westf) | Landesplanung ",
"type" : [ "ComplexSubject" ]
}, {
"id" : "http://purl.org/lobid/nwbib-spatial#n96",
Expand Down
2 changes: 2 additions & 0 deletions src/test/resources/jsonld/HT003651380
Expand Up @@ -117,6 +117,7 @@
},
"type" : [ "SubjectHeading" ]
} ],
"label" : "Sozialphilosophie | Aufsatzsammlung",
"type" : [ "ComplexSubject" ]
}, {
"componentList" : [ {
Expand All @@ -139,6 +140,7 @@
"label" : "Montréal <1983>",
"type" : [ "SubjectHeading" ]
} ],
"label" : "Sozialphilosophie | Kongress | Montréal <1983> ",
"type" : [ "ComplexSubject" ]
} ],
"subjectAltLabel" : [ "Kongresse", "Gesellschaftstheorie (Sozialphilosophie)", "Künstlersymposion", "Einzelbeiträge", "Gesellschaftsphilosophie", "Vortragssammlung", "Sammelwerk (Formschlagwort)", "Tagung (Kongress)", "Sommerschule (Kongress)", "Beiträge (Formschlagwort)", "Symposion (Kongress)", "Kolloquium", "Symposium (Kongress)" ],
Expand Down
23 changes: 12 additions & 11 deletions src/test/resources/jsonld/HT003654516
Expand Up @@ -75,6 +75,18 @@
"id" : "http://d-nb.info/gnd/4149423-4",
"label" : "Dewey-Dezimalklassifikation"
}
}, {
"componentList" : [ {
"id" : "http://d-nb.info/gnd/4128022-2",
"label" : "Bericht",
"source" : {
"id" : "http://d-nb.info/gnd/7749153-1",
"label" : "Gemeinsame Normdatei (GND)"
},
"type" : [ "SubjectHeading" ]
} ],
"label" : "Bericht",
"type" : [ "ComplexSubject" ]
}, {
"label" : "Wirtschaft",
"notation" : "330",
Expand All @@ -89,17 +101,6 @@
"id" : "http://d-nb.info/gnd/4149423-4",
"label" : "Dewey-Dezimalklassifikation"
}
}, {
"componentList" : [ {
"id" : "http://d-nb.info/gnd/4128022-2",
"label" : "Bericht",
"source" : {
"id" : "http://d-nb.info/gnd/7749153-1",
"label" : "Gemeinsame Normdatei (GND)"
},
"type" : [ "SubjectHeading" ]
} ],
"type" : [ "ComplexSubject" ]
}, {
"label" : "Chemische Verfahrenstechnik und verwandte Technologien",
"notation" : "660",
Expand Down
16 changes: 9 additions & 7 deletions src/test/resources/jsonld/HT004381366
Expand Up @@ -103,6 +103,13 @@
"label" : "Culturegraph Ressource"
} ],
"subject" : [ {
"id" : "http://purl.org/lobid/nwbib-spatial#n10",
"label" : "Westfälische Bucht",
"source" : {
"id" : "http://purl.org/lobid/nwbib-spatial",
"label" : "Raumsystematik der Nordrhein-Westfälischen Bibliographie"
}
}, {
"componentList" : [ {
"id" : "http://d-nb.info/gnd/4040619-2",
"label" : "Münsterland",
Expand All @@ -120,6 +127,7 @@
},
"type" : [ "SubjectHeading" ]
} ],
"label" : "Münsterland | Regionalplan ",
"type" : [ "ComplexSubject" ]
}, {
"componentList" : [ {
Expand All @@ -139,14 +147,8 @@
},
"type" : [ "SubjectHeading" ]
} ],
"label" : "Bezirk Münster (Westf) | Landesplanung",
"type" : [ "ComplexSubject" ]
}, {
"id" : "http://purl.org/lobid/nwbib-spatial#n10",
"label" : "Westfälische Bucht",
"source" : {
"id" : "http://purl.org/lobid/nwbib-spatial",
"label" : "Raumsystematik der Nordrhein-Westfälischen Bibliographie"
}
}, {
"id" : "http://purl.org/lobid/nwbib#s572030",
"label" : "Regionalplanung",
Expand Down