-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'almaMarc21XmlToLobidJson' of https://github.com/hbz/lob…
- Loading branch information
Showing
34 changed files
with
4,078 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<metamorph xmlns="http://www.culturegraph.org/metamorph" xmlns:xi="http://www.w3.org/2001/XInclude" version="1"> | ||
<xi:include href="macros.xml"/> | ||
<xi:include href="maps.xml"/> | ||
<rules xmlns="http://www.culturegraph.org/metamorph"> | ||
<call-macro name="static-filter" dname="@portfolio" source="POR .a" filter="POR .M" value="$[member]"/> | ||
<!-- <call-macro name="static-filter" dname="@mmsiz" source="MBD .i" filter="MBD .M" value="$[member]"/>--> | ||
<call-macro name="alma-mms-to-isil" dname="@isil" source="001"/> | ||
<call-macro name="alma-mms-to-isil" dname="@isiliz" source="MBD .i"/> | ||
<combine name="@uid" value="(${isil})${id}"> | ||
<data name="id" source="@mmsiz"/> | ||
<data name="isil" source="@isiliz"/> | ||
</combine> | ||
|
||
<data name="@uid" source="035 .a"> | ||
<regexp match="^\($[catalogid]\).*"/> | ||
</data> | ||
<data name="\@context" source="@id"> | ||
<constant value="http://lobid.org/resources/context.jsonld"/> | ||
</data> | ||
<data name="@uid" source="981 .a"/> | ||
<!-- SISIS CATKey --> | ||
<!-- <entity name="DateFirst"> | ||
<call-macro name="dynamic-filter" dname="date" source="POC .b" filter="@portfolio" value="POC .a"/> | ||
</entity> | ||
<entity name="DateLast"> | ||
<call-macro name="dynamic-filter" dname="date" source="POC .c" filter="@portfolio" value="POC .a"/> | ||
</entity>--> | ||
<data name="almaIdMMS" source="001"/> | ||
<!-- <data name="almaIdMMSIZ" source="@mmsiz"/> --> | ||
<data name="almaIdPID" source="@portfolio"/> | ||
</rules> | ||
<xi:include href="common/item.xml"/> | ||
<xi:include href="common/facets.xml"/> | ||
<xi:include href="common/fields.xml"/> | ||
<xi:include href="common/describedBy.xml"/> | ||
<xi:include href="common/titleOther.xml"/> | ||
<xi:include href="common/RSWK.xml"/> | ||
</metamorph> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<rules xmlns="http://www.culturegraph.org/metamorph"> | ||
|
||
<!-- 6xx --> | ||
<entity name="RSWK[]" flushWith="record"> | ||
<entity name="" flushWith="600??|6[15][01]??|648??" sameEntity="true"> | ||
<if> | ||
<all flushWith="600??|6[15][01]??|648??" sameEntity="true"> | ||
<data source="600??.2|6[15][01]??.2|648??.2"> | ||
<regexp match="^(gnd|swd)$" /> | ||
</data> | ||
</all> | ||
</if> | ||
<data name="subjectTopicName" source="650??.a"> | ||
<occurrence only="1" sameEntity="true" /> | ||
<replace pattern="\.?$" with="" /> | ||
</data> | ||
<data name="subjectGeoName" source="6[105]0??.z|6[15]1??.z|651??.a"> | ||
<occurrence only="1" sameEntity="true" /> | ||
<replace pattern="\.?$" with="" /> | ||
</data> | ||
<data name="subjectChronological" source="6[105]0??.y|6[15]1??.y||648??.a"> | ||
<occurrence only="1" sameEntity="true" /> | ||
<replace pattern="\.?$" with="" /> | ||
</data> | ||
<data name="subjectConference" source="611??.a"> | ||
<occurrence only="1" sameEntity="true" /> | ||
<replace pattern="\.?$" with="" /> | ||
</data> | ||
<data name="subjectCorporateBodyName" source="610??.a"> | ||
<occurrence only="1" sameEntity="true" /> | ||
<replace pattern="\.?$" with="" /> | ||
</data> | ||
<data name="subjectCorporateBodySubUnit" source="610??.b"> | ||
<occurrence only="1" sameEntity="true" /> | ||
<replace pattern="\.?$" with="" /> | ||
</data> | ||
<data name="subjectDate" source="600??.d|611??.d"> | ||
<occurrence only="1" sameEntity="true" /> | ||
<replace pattern="\s?[:.]?$" with="" /> | ||
</data> | ||
<data name="subjectGenre" source="6[105]0??.v|6[15]1??.v"> | ||
<occurrence only="1" sameEntity="true" /> | ||
<replace pattern="\.?$" with="" /> | ||
</data> | ||
<data name="subjectNumbering" source="61[01]??.n"> | ||
<occurrence only="1" sameEntity="true" /> | ||
<replace pattern="^[(]|\s?[);:]?$" with="" /> | ||
</data> | ||
<data name="subjectPersonName" source="600??.a"> | ||
<occurrence only="1" sameEntity="true" /> | ||
<replace pattern="[,.]?$" with="" /> | ||
</data> | ||
<data name="subjectTitleName" source="6[01]0??.t|611??.t"> | ||
<occurrence only="1" sameEntity="true" /> | ||
<replace pattern="\.?$" with="" /> | ||
</data> | ||
<data name="subjectUnit" source="61[10]??.p" > | ||
<occurrence only="1" sameEntity="true" /> | ||
<replace pattern="\.?$" with="" /> | ||
</data> | ||
<data name="subjectNameAddendum" source="600??.c"> | ||
<occurrence only="1" sameEntity="true" /> | ||
<replace pattern="^[(]|[.)]?$" with="" /> | ||
</data> | ||
<data name="subjectGeoAddendum" source="61[01]??.c"> | ||
<occurrence only="1" sameEntity="true" /> | ||
<replace pattern="^[(]|[.)]?$" with="" /> | ||
</data> | ||
|
||
<entity name="subjectIdentifier[]" flushWith="600??|6[15][01]??|648??" sameEntity="true"> | ||
<data name="" source="600??.0|6[15][01]??.0|648??.0" /> | ||
</entity> | ||
<entity name="identifierGND[]" flushWith="600??|6[15][01]??|648??" sameEntity="true"> | ||
<data name="" source="600??.0|6[15][01]??.0|648??.0"> | ||
<regexp match="(?<=\(DE-588\)).*$" /> | ||
</data> | ||
</entity> | ||
</entity> | ||
</entity> | ||
</rules> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<rules xmlns="http://www.culturegraph.org/metamorph"> | ||
|
||
<data source="000" name="Type" /> | ||
|
||
<entity name="TypeMonograph[]" flushWith="record"> | ||
<if> | ||
<data source="007"> | ||
<regexp match="^z\|" /> | ||
</data> | ||
</if> | ||
<data source="007" name="" > | ||
<constant value="mehrbändiges begrenztes Werk" /> | ||
</data> | ||
</entity> | ||
|
||
<entity name="DescriptionOfExpression" flushWith="record"> | ||
<data source="546??.a" name="description" /> | ||
</entity> | ||
|
||
<data source="6[013]0??.a|611??.a|648??.a|65[0135]??.a|689??.a" name="@rswk"> | ||
<unique /> | ||
</data> | ||
<entity name="RSWK[]" flushWith="record"> | ||
<entity name="" flushWith="@rswk" reset="true"> | ||
<data source="@rswk" name="subjectTopicName" /> | ||
</entity> | ||
</entity> | ||
|
||
<!-- <entity name="RecordIdentifierSuper" flushWith="773??"> | ||
<combine name="recordIdentifierSuper" value="($[isil])${id}"> | ||
<data name="id" source="773??.w" /> | ||
</combine> | ||
</entity>--> | ||
|
||
<entity name="IdentifierLocal" flushWith="record"> | ||
<data source="852??.?" name="standardNumber"> | ||
<occurrence only="1" /> | ||
</data> | ||
</entity> | ||
|
||
</rules> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<rules xmlns="http://www.culturegraph.org/metamorph"> | ||
<!-- 7xx --> | ||
<entity name="describedBy" flushWith="record"> | ||
<data name="id" source="@id"> | ||
<regexp match="(.*)" format="http://lobid.org/resources/${1}"/> | ||
</data> | ||
<data name="label" source="@id"> | ||
<regexp match="(.*)" format="Webseite der hbz-Ressource ${1}"/> | ||
</data> | ||
<entity name="type[]"> | ||
<data name="" source="@id"> | ||
<constant value="BibliographicDescription"/> | ||
</data> | ||
</entity> | ||
<call-macro name="simplify-date" dname="dateCreated" dsource="MNG .b"/> | ||
<call-macro name="simplify-date" dname="dateModified" dsource="MNG .d"/> | ||
<entity name="inDataset" > | ||
<data name="id" source="@id"> | ||
<constant value="http://lobid.org/resources/dataset#!"/> | ||
</data> | ||
<data name="label" source="@id"> | ||
<constant value="lobid-resources – Der hbz-Verbundkatalog als Linked Open Data" /> | ||
</data> | ||
</entity> | ||
<entity name="resultOf"> | ||
<entity name="type[]"> | ||
<data name="" source="@id"> | ||
<constant value="CreateAction"/> | ||
</data> | ||
</entity> | ||
<data name="endTime" source="@id"> | ||
<timestamp format="yyyy-MM-dd'T'HH:mm:ss" timezone="Europe/Berlin"/> | ||
</data> | ||
<entity name="instrument"> | ||
<data name="id" source="@id"> | ||
<constant value="https://github.com/hbz/lobid-resources"/> | ||
</data> | ||
<entity name="type[]"> | ||
<data name="" source="@id"> | ||
<constant value="SoftwareApplication"/> | ||
</data> | ||
</entity> | ||
<data name="label" source="@id"> | ||
<constant value="Software lobid-resources"/> | ||
</data> | ||
</entity> | ||
|
||
<entity name="object"> | ||
<data name="id" source="@id"> | ||
<regexp match="(.*)" format="http://lobid.org/hbz01/${1}"/> | ||
</data> | ||
<entity name="type[]"> | ||
<data name="" source="@id"> | ||
<constant value="DataFeedItem"/> | ||
</data> | ||
</entity> | ||
<data name="label" source="@id"> | ||
<regexp match="(.*)" format="hbz-Ressource ${1} im Exportformat MARC21 XML"/> | ||
</data> | ||
<entity name="inDataset"> | ||
<data name="id" source="@id"> | ||
<constant value="https://datahub.io/dataset/hbz_unioncatalog"/> | ||
</data> | ||
<data name="label" source="@id"> | ||
<constant value="hbz_unioncatalog"/> | ||
</data> | ||
</entity> | ||
</entity> | ||
|
||
|
||
|
||
</entity> | ||
<entity name="license[]"> | ||
<entity name=""> | ||
<data name="id" source="@id"> | ||
<constant value="http://creativecommons.org/publicdomain/zero/1.0"/> | ||
</data> | ||
<data name="label" source="@id"> | ||
<constant value="Creative Commons-Lizenz CC0 1.0 Universal"/> | ||
</data> | ||
</entity> | ||
</entity> | ||
<entity name="sourceOrganization"> | ||
<data name="id" source="MNG .g"> | ||
<regexp match="(.*)" format="http://lobid.org/organisations/${1}_todo"/> | ||
</data> | ||
<data name="label" source="MNG .g"> | ||
<constant value="lobid Organisation"/> | ||
</data> | ||
</entity> | ||
|
||
</entity> | ||
</rules> |
Oops, something went wrong.