Skip to content

Commit

Permalink
Merge pull request #102 from hbz/hbz-lobid-resources-17-personAndCoor…
Browse files Browse the repository at this point in the history
…porateBodiesWithoutGndIdToArray

Hbz lobid resources 17 person and coorporate bodies without gnd id to array
  • Loading branch information
dr0i authored Sep 1, 2016
2 parents 6c94d78 + a99fcbe commit 46b02b1
Show file tree
Hide file tree
Showing 8 changed files with 162 additions and 9 deletions.
14 changes: 14 additions & 0 deletions src/main/resources/morph-hbz01-to-lobid.xml
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,20 @@
<data source="@contributorLabel"/>
<data source="@nameOfContributingCorporateBody"/>
</choose>
<entity name="http://purl.org/dc/terms/contributor" sameEntity="true">
<data source="@contributorNameOrId" name="http://d-nb.info/standards/elementset/gnd#preferredName">
<regexp match="^[^http].*"/>
</data>
<data source="@contributorNameOrId" name="http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
<regexp match="^[^http].*" format="http://d-nb.info/standards/elementset/gnd#Person"/>
</data>
</entity>
<entity name="http://purl.org/dc/terms/contributor" sameEntity="true">
<data source="2?[02468]-1.a" name="http://d-nb.info/standards/elementset/gnd#preferredName"/>
<data source="2?[02468]-1.a" name="http://www.w3.org/1999/02/22-rdf-syntax-ns#type">
<regexp match=".*" format="http://d-nb.info/standards/elementset/gnd#CorporateBody"/>
</data>
</entity>
<!-- ####################### -->
<!-- ################ koerperschaften -->
<!-- ####################### -->
Expand Down
67 changes: 58 additions & 9 deletions src/test/resources/hbz01.es.nt

Large diffs are not rendered by default.

Binary file modified src/test/resources/hbz01XmlClobs.tar.bz2
Binary file not shown.
3 changes: 3 additions & 0 deletions src/test/resources/jsonld/HT018700720
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"id" : "http://d-nb.info/gnd/115325859",
"preferredName" : "Wolter, Birgit",
"preferredNameForThePerson" : "Wolter, Birgit"
}, {
"preferredName" : "Ottovay, Kathrin",
"type" : [ "http://d-nb.info/standards/elementset/gnd#Person" ]
}, {
"id" : "http://d-nb.info/gnd/129961604",
"preferredName" : "Heusinger, Josefine",
Expand Down
62 changes: 62 additions & 0 deletions src/test/resources/jsonld/TT002234042
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"@context" : "http://lobid.org/download/contextTmp-staging.json",
"contributor" : [ {
"preferredName" : "Lierschied",
"type" : [ "http://d-nb.info/standards/elementset/gnd#CorporateBody" ]
} ],
"contributorOrder" : [ "Lierschied" ],
"describedby" : [ {
"dateCreated" : "20030707",
"dateModified" : "20160609",
"id" : "http://lobid.org/resources/TT002234042"
} ],
"exemplar" : [ {
"id" : "http://lobid.org/items/TT002234042:DE-929:#!"
} ],
"fulltextOnline" : [ {
"id" : "https://www.edoweb-rlp.de/resource/edoweb:1638076"
}, {
"id" : "http://edoweb-rlp.de/resource/edoweb:1638076"
}, {
"id" : "http://www.edoweb-rlp.de/resource/edoweb:1638076"
}, {
"id" : "http://digitool.hbz-nrw.de:1801/webclient/DeliveryManager?pid=1638077&custom_att_2=simple_viewer"
} ],
"hasVersion" : [ {
"id" : "https://www.edoweb-rlp.de/resource/edoweb:1638076"
}, {
"id" : "http://edoweb-rlp.de/resource/edoweb:1638076"
}, {
"id" : "http://www.edoweb-rlp.de/resource/edoweb:1638076"
}, {
"id" : "http://digitool.hbz-nrw.de:1801/webclient/DeliveryManager?pid=1638077&custom_att_2=simple_viewer"
} ],
"hbzId" : [ "TT002234042" ],
"id" : "http://lobid.org/resources/TT002234042#!",
"isPrimaryTopicOf" : [ {
"id" : "http://193.30.112.134/F/?func=find-c&ccl_term=IDN%3DTT002234042"
} ],
"issued" : [ "2001" ],
"language" : [ {
"id" : "http://id.loc.gov/vocabulary/iso639-2/deu"
} ],
"medium" : [ {
"id" : "http://rdvocab.info/termList/RDACarrierType/1018"
}, {
"id" : "http://rdvocab.info/termList/RDACarrierType/1010"
} ],
"publicationStatement" : [ "2001" ],
"sameAs" : [ {
"id" : "http://hub.culturegraph.org/resource/HBZ-TT002234042"
} ],
"similar" : [ {
"id" : "http://nbn-resolving.de/urn:nbn:de:hbz:929:02-1513"
} ],
"subject" : [ {
"id" : "http://dewey.info/class/350/"
} ],
"subjectLabel" : [ "Lierschied", "Haushaltsplan", "Gemeindehaushalt" ],
"title" : [ "2. Nachtragshaushaltssatzung und 1. Nachtragshaushaltsplan 2001" ],
"type" : [ "http://purl.org/ontology/bibo/Book", "http://purl.org/dc/terms/BibliographicResource" ],
"urn" : [ "urn:nbn:de:hbz:929:02-1513" ]
}
14 changes: 14 additions & 0 deletions src/test/resources/jsonld/TT002234042:DE-929:
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"@context" : "http://lobid.org/download/contextTmp-staging.json",
"describedby" : [ {
"id" : "http://lobid.org/items/TT002234042:DE-929:"
} ],
"exemplarOf" : [ {
"id" : "http://lobid.org/resources/TT002234042#!"
} ],
"id" : "http://lobid.org/items/TT002234042:DE-929:#!",
"owner" : [ {
"id" : "http://lobid.org/organisation/DE-929"
} ],
"type" : [ "http://purl.org/vocab/frbr/core#Item" ]
}
7 changes: 7 additions & 0 deletions src/test/resources/jsonld/TT002234459
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"@context" : "http://lobid.org/download/contextTmp-staging.json",
"contributor" : [ {
"preferredName" : "Kranz, Heinrich",
"type" : [ "http://d-nb.info/standards/elementset/gnd#Person" ]
}, {
"preferredName" : "Müller, Guntram",
"type" : [ "http://d-nb.info/standards/elementset/gnd#Person" ]
} ],
"contributorLabel" : [ "Kranz, Heinrich", "Müller, Guntram" ],
"contributorName" : [ "Kranz, Heinrich", "Müller, Guntram" ],
"contributorOrder" : [ "Kranz, Heinrich | Müller, Guntram" ],
Expand Down
4 changes: 4 additions & 0 deletions src/test/resources/jsonld/TT050409948
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"@context" : "http://lobid.org/download/contextTmp-staging.json",
"contributor" : [ {
"preferredName" : "Irlenbusch, Lars",
"type" : [ "http://d-nb.info/standards/elementset/gnd#Person" ]
} ],
"contributorLabel" : [ "Siekmann, Holger", "Irlenbusch, Lars" ],
"contributorName" : [ "Irlenbusch, Lars" ],
"contributorOrder" : [ "Siekmann, Holger | Irlenbusch, Lars" ],
Expand Down

0 comments on commit 46b02b1

Please sign in to comment.