Skip to content

Commit

Permalink
Add 610 as subject (type: concept) (#1221)
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed May 5, 2021
1 parent cec2cd7 commit e07854c
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 1 deletion.
24 changes: 24 additions & 0 deletions src/main/resources/alma/common/subjects.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<rules xmlns="http://www.culturegraph.org/metamorph">
<entity name="subject[]" flushWith="record">
<!-- 610 CorporateBody -->
<entity name="" flushWith="610??" sameEntity="true" reset="true">
<entity name="type[]" sameEntity="true" reset="true">
<data source="610??.a">
<constant value="Concept"/>
</data>
</entity>
<entity name="source" sameEntity="true" reset="true" flushWith="610??">
<data source="610?0.a" name="label">
<constant value="Library of Congress Subject Headings"/>
</data>
<data source="610?0.a" name="id">
<constant value="https://id.loc.gov/authorities/subjects.html"/>
</data>
<data source="610?4.a" name="label">
<constant value="Freie Verschlagwortung"/>
</data>
<data source="610?4.a" name="id">
<constant value="https://www.wikidata.org/wiki/Q47524318"/>
</data>
</entity>
<data name="label" source="610??.a" />
</entity>

<!-- 650 Topical Term -->
<entity name="" flushWith="650??" sameEntity="true" reset="true">
<entity name="type[]" sameEntity="true" reset="true">
Expand Down
58 changes: 57 additions & 1 deletion src/test/resources/alma/(DE-605)HT003176544.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
},
"resultOf" : {
"type" : [ "CreateAction" ],
"endTime" : "2021-05-03T15:46:14",
"endTime" : "2021-05-05T13:50:10",
"instrument" : {
"id" : "https://github.com/hbz/lobid-resources",
"type" : [ "SoftwareApplication" ],
Expand All @@ -94,6 +94,62 @@
} ]
},
"subject" : [ {
"type" : [ "Concept" ],
"label" : "Berlin",
"source" : {
"label" : "Freie Verschlagwortung",
"id" : "https://www.wikidata.org/wiki/Q47524318"
}
}, {
"type" : [ "Concept" ],
"label" : "Bremen",
"source" : {
"label" : "Freie Verschlagwortung",
"id" : "https://www.wikidata.org/wiki/Q47524318"
}
}, {
"type" : [ "Concept" ],
"label" : "Hamburg",
"source" : {
"label" : "Freie Verschlagwortung",
"id" : "https://www.wikidata.org/wiki/Q47524318"
}
}, {
"type" : [ "Concept" ],
"label" : "Nordrhein-Westfalen",
"source" : {
"label" : "Freie Verschlagwortung",
"id" : "https://www.wikidata.org/wiki/Q47524318"
}
}, {
"type" : [ "Concept" ],
"label" : "Niedersachsen",
"source" : {
"label" : "Freie Verschlagwortung",
"id" : "https://www.wikidata.org/wiki/Q47524318"
}
}, {
"type" : [ "Concept" ],
"label" : "Rheinland-Pfalz",
"source" : {
"label" : "Freie Verschlagwortung",
"id" : "https://www.wikidata.org/wiki/Q47524318"
}
}, {
"type" : [ "Concept" ],
"label" : "Saarland",
"source" : {
"label" : "Freie Verschlagwortung",
"id" : "https://www.wikidata.org/wiki/Q47524318"
}
}, {
"type" : [ "Concept" ],
"label" : "Schleswig-Holstein",
"source" : {
"label" : "Freie Verschlagwortung",
"id" : "https://www.wikidata.org/wiki/Q47524318"
}
}, {
"type" : [ "Concept" ],
"label" : "Hotel- und Gaststättengewerbe",
"source" : {
Expand Down

0 comments on commit e07854c

Please sign in to comment.