Skip to content

Commit

Permalink
Adjust transformation for fetching hebis records
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Dec 3, 2024
1 parent d52a7b6 commit c3d159e
Show file tree
Hide file tree
Showing 17 changed files with 98 additions and 22 deletions.
8 changes: 7 additions & 1 deletion conf/fetchAndTransformHebisRecord.flux
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
default IDS = FLUX_DIR + "hebisTestIds.txt";
createEndTime = "1"; //needed for lobid transformation
createEndTime = "0"; //needed for lobid transformation

IDS
| open-file
| as-lines
| match(pattern="^(.*)$", replacement="http://sru.hebis.de/sru/DB=2.1?query=pica.ppn+%3D+%22$1%22&version=1.1&operation=searchRetrieve&stylesheet=http%3A%2F%2Fsru.hebis.de%2Fsru%2F%3Fxsl%3DsearchRetrieveResponse&recordSchema=marc21&maximumRecords=10&startRecord=1&recordPacking=xml&sortKeys=LST_Y%2Cpica%2C0%2C%2C")
| write(FLUX_DIR + "hebisSruLinks.txt")
;

FLUX_DIR + "hebisSruLinks.txt"
| open-file
| as-lines
| open-http(accept="application/xml")
| decode-xml
| handle-marcxml
Expand Down
14 changes: 14 additions & 0 deletions conf/hebisSruLinks.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
http://sru.hebis.de/sru/DB=2.1?query=pica.ppn+%3D+%22514226781%22&version=1.1&operation=searchRetrieve&stylesheet=http%3A%2F%2Fsru.hebis.de%2Fsru%2F%3Fxsl%3DsearchRetrieveResponse&recordSchema=marc21&maximumRecords=10&startRecord=1&recordPacking=xml&sortKeys=LST_Y%2Cpica%2C0%2C%2C
http://sru.hebis.de/sru/DB=2.1?query=pica.ppn+%3D+%22512839662%22&version=1.1&operation=searchRetrieve&stylesheet=http%3A%2F%2Fsru.hebis.de%2Fsru%2F%3Fxsl%3DsearchRetrieveResponse&recordSchema=marc21&maximumRecords=10&startRecord=1&recordPacking=xml&sortKeys=LST_Y%2Cpica%2C0%2C%2C
http://sru.hebis.de/sru/DB=2.1?query=pica.ppn+%3D+%22512013683%22&version=1.1&operation=searchRetrieve&stylesheet=http%3A%2F%2Fsru.hebis.de%2Fsru%2F%3Fxsl%3DsearchRetrieveResponse&recordSchema=marc21&maximumRecords=10&startRecord=1&recordPacking=xml&sortKeys=LST_Y%2Cpica%2C0%2C%2C
http://sru.hebis.de/sru/DB=2.1?query=pica.ppn+%3D+%22512849919%22&version=1.1&operation=searchRetrieve&stylesheet=http%3A%2F%2Fsru.hebis.de%2Fsru%2F%3Fxsl%3DsearchRetrieveResponse&recordSchema=marc21&maximumRecords=10&startRecord=1&recordPacking=xml&sortKeys=LST_Y%2Cpica%2C0%2C%2C
http://sru.hebis.de/sru/DB=2.1?query=pica.ppn+%3D+%22516707701%22&version=1.1&operation=searchRetrieve&stylesheet=http%3A%2F%2Fsru.hebis.de%2Fsru%2F%3Fxsl%3DsearchRetrieveResponse&recordSchema=marc21&maximumRecords=10&startRecord=1&recordPacking=xml&sortKeys=LST_Y%2Cpica%2C0%2C%2C
http://sru.hebis.de/sru/DB=2.1?query=pica.ppn+%3D+%22475390555%22&version=1.1&operation=searchRetrieve&stylesheet=http%3A%2F%2Fsru.hebis.de%2Fsru%2F%3Fxsl%3DsearchRetrieveResponse&recordSchema=marc21&maximumRecords=10&startRecord=1&recordPacking=xml&sortKeys=LST_Y%2Cpica%2C0%2C%2C
http://sru.hebis.de/sru/DB=2.1?query=pica.ppn+%3D+%22488844266%22&version=1.1&operation=searchRetrieve&stylesheet=http%3A%2F%2Fsru.hebis.de%2Fsru%2F%3Fxsl%3DsearchRetrieveResponse&recordSchema=marc21&maximumRecords=10&startRecord=1&recordPacking=xml&sortKeys=LST_Y%2Cpica%2C0%2C%2C
http://sru.hebis.de/sru/DB=2.1?query=pica.ppn+%3D+%22487803779%22&version=1.1&operation=searchRetrieve&stylesheet=http%3A%2F%2Fsru.hebis.de%2Fsru%2F%3Fxsl%3DsearchRetrieveResponse&recordSchema=marc21&maximumRecords=10&startRecord=1&recordPacking=xml&sortKeys=LST_Y%2Cpica%2C0%2C%2C
http://sru.hebis.de/sru/DB=2.1?query=pica.ppn+%3D+%22478607776%22&version=1.1&operation=searchRetrieve&stylesheet=http%3A%2F%2Fsru.hebis.de%2Fsru%2F%3Fxsl%3DsearchRetrieveResponse&recordSchema=marc21&maximumRecords=10&startRecord=1&recordPacking=xml&sortKeys=LST_Y%2Cpica%2C0%2C%2C
http://sru.hebis.de/sru/DB=2.1?query=pica.ppn+%3D+%22090680634%22&version=1.1&operation=searchRetrieve&stylesheet=http%3A%2F%2Fsru.hebis.de%2Fsru%2F%3Fxsl%3DsearchRetrieveResponse&recordSchema=marc21&maximumRecords=10&startRecord=1&recordPacking=xml&sortKeys=LST_Y%2Cpica%2C0%2C%2C
http://sru.hebis.de/sru/DB=2.1?query=pica.ppn+%3D+%22090358163%22&version=1.1&operation=searchRetrieve&stylesheet=http%3A%2F%2Fsru.hebis.de%2Fsru%2F%3Fxsl%3DsearchRetrieveResponse&recordSchema=marc21&maximumRecords=10&startRecord=1&recordPacking=xml&sortKeys=LST_Y%2Cpica%2C0%2C%2C
http://sru.hebis.de/sru/DB=2.1?query=pica.ppn+%3D+%22090363000%22&version=1.1&operation=searchRetrieve&stylesheet=http%3A%2F%2Fsru.hebis.de%2Fsru%2F%3Fxsl%3DsearchRetrieveResponse&recordSchema=marc21&maximumRecords=10&startRecord=1&recordPacking=xml&sortKeys=LST_Y%2Cpica%2C0%2C%2C
http://sru.hebis.de/sru/DB=2.1?query=pica.ppn+%3D+%22508037980%22&version=1.1&operation=searchRetrieve&stylesheet=http%3A%2F%2Fsru.hebis.de%2Fsru%2F%3Fxsl%3DsearchRetrieveResponse&recordSchema=marc21&maximumRecords=10&startRecord=1&recordPacking=xml&sortKeys=LST_Y%2Cpica%2C0%2C%2C
http://sru.hebis.de/sru/DB=2.1?query=pica.ppn+%3D+%22487803779%22&version=1.1&operation=searchRetrieve&stylesheet=http%3A%2F%2Fsru.hebis.de%2Fsru%2F%3Fxsl%3DsearchRetrieveResponse&recordSchema=marc21&maximumRecords=10&startRecord=1&recordPacking=xml&sortKeys=LST_Y%2Cpica%2C0%2C%2C
2 changes: 1 addition & 1 deletion conf/hebisTestIds.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
514226781
512839662
512839662
512013683
512849919
516707701
Expand Down
2 changes: 1 addition & 1 deletion conf/output/test-hebis-to-lobid-output-0.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"resultOf" : {
"type" : [ "CreateAction" ],
"endTime" : "2024-12-03T10:18:30",
"endTime" : "0000-00-00T00:00:00",
"instrument" : {
"id" : "https://github.com/hbz/lobid-resources",
"type" : [ "SoftwareApplication" ],
Expand Down
70 changes: 63 additions & 7 deletions conf/output/test-hebis-to-lobid-output-1.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,92 @@
{
"@context" : "http://lobid.org/resources/context.jsonld",
"id" : "http://lobid.org/resources/#!",
"type" : [ "BibliographicResource", "Miscellaneous" ],
"id" : "http://lobid.org/resources/512839662#!",
"type" : [ "BibliographicResource", "Book" ],
"medium" : [ {
"label" : "Sonstige",
"id" : "http://purl.org/lobid/lv#Miscellaneous"
"label" : "Print",
"id" : "http://rdaregistry.info/termList/RDAproductionMethod/1010"
} ],
"title" : "Alter Dom St. Johannis",
"almaMmsId" : "512839662",
"oclcNumber" : [ "1407066536" ],
"otherTitleInformation" : [ "1500 Jahre Geschichte im Herzen von Mainz" ],
"publication" : [ {
"startDate" : "2023",
"type" : [ "PublicationEvent" ],
"location" : [ "Mainz" ],
"publishedBy" : [ "Evangelisches Dekanat Mainz" ]
} ],
"describedBy" : {
"id" : "http://lobid.org/resources/512839662",
"label" : "Webseite der hbz-Ressource 512839662",
"type" : [ "BibliographicDescription" ],
"inDataset" : {
"id" : "http://lobid.org/resources/dataset#!",
"label" : "lobid-resources – Der hbz-Verbundkatalog als Linked Open Data"
},
"resultOf" : {
"type" : [ "CreateAction" ],
"endTime" : "2024-12-03T10:18:31",
"endTime" : "0000-00-00T00:00:00",
"instrument" : {
"id" : "https://github.com/hbz/lobid-resources",
"type" : [ "SoftwareApplication" ],
"label" : "Software lobid-resources"
},
"object" : {
"id" : "https://lobid.org/marcxml/512839662",
"type" : [ "DataFeedItem" ],
"label" : "hbz-Ressource 512839662 im Exportformat MARC21 XML",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
}
},
"sourceOrganization" : {
"id" : "http://lobid.org/organisations/DE-603#!",
"label" : "Hessisches BibliotheksInformationsSystem hebis"
},
"provider" : {
"id" : "http://lobid.org/organisations/DE-603#!",
"label" : "Hessisches BibliotheksInformationsSystem hebis"
},
"modifiedBy" : [ {
"id" : "http://lobid.org/organisations/DE-603#!",
"label" : "Hessisches BibliotheksInformationsSystem hebis"
} ]
}
},
"license" : [ {
"id" : "http://creativecommons.org/publicdomain/zero/1.0",
"label" : "Creative Commons-Lizenz CC0 1.0 Universal"
} ]
}
},
"sameAs" : [ {
"id" : "http://worldcat.org/oclc/1407066536",
"label" : "OCLC Ressource"
} ],
"related" : [ {
"note" : [ "Parallele Sprachausgabe englisch" ],
"label" : "The ancient cathedral St. John"
} ],
"language" : [ {
"id" : "http://id.loc.gov/vocabulary/iso639-2/ger",
"label" : "Deutsch"
} ],
"extent" : "1 gefaltetes Blatt ( 16 Seiten) : Illustrationen",
"bibliographicLevel" : {
"label" : "Monograph/Item",
"id" : "https://www.loc.gov/marc/bibliographic/bdleader.html#Monograph_Item"
},
"responsibilityStatement" : [ "Evangelisches Dekanat Mainz" ],
"contribution" : [ {
"agent" : {
"gndIdentifier" : "1123222142",
"id" : "https://d-nb.info/gnd/1123222142",
"label" : "Evangelische Kirche in Hessen und Nassau. Evangelisches Dekanat Mainz",
"type" : [ "CorporateBody" ]
},
"role" : {
"id" : "http://id.loc.gov/vocabulary/relators/isb"
},
"type" : [ "Contribution" ]
} ]
}
2 changes: 1 addition & 1 deletion conf/output/test-hebis-to-lobid-output-10.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"resultOf" : {
"type" : [ "CreateAction" ],
"endTime" : "2024-12-03T10:18:33",
"endTime" : "0000-00-00T00:00:00",
"instrument" : {
"id" : "https://github.com/hbz/lobid-resources",
"type" : [ "SoftwareApplication" ],
Expand Down
2 changes: 1 addition & 1 deletion conf/output/test-hebis-to-lobid-output-11.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"resultOf" : {
"type" : [ "CreateAction" ],
"endTime" : "2024-12-03T10:18:33",
"endTime" : "0000-00-00T00:00:00",
"instrument" : {
"id" : "https://github.com/hbz/lobid-resources",
"type" : [ "SoftwareApplication" ],
Expand Down
2 changes: 1 addition & 1 deletion conf/output/test-hebis-to-lobid-output-12.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"resultOf" : {
"type" : [ "CreateAction" ],
"endTime" : "2024-12-03T10:18:33",
"endTime" : "0000-00-00T00:00:00",
"instrument" : {
"id" : "https://github.com/hbz/lobid-resources",
"type" : [ "SoftwareApplication" ],
Expand Down
2 changes: 1 addition & 1 deletion conf/output/test-hebis-to-lobid-output-13.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"resultOf" : {
"type" : [ "CreateAction" ],
"endTime" : "2024-12-03T10:18:34",
"endTime" : "0000-00-00T00:00:00",
"instrument" : {
"id" : "https://github.com/hbz/lobid-resources",
"type" : [ "SoftwareApplication" ],
Expand Down
2 changes: 1 addition & 1 deletion conf/output/test-hebis-to-lobid-output-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"resultOf" : {
"type" : [ "CreateAction" ],
"endTime" : "2024-12-03T10:18:31",
"endTime" : "0000-00-00T00:00:00",
"instrument" : {
"id" : "https://github.com/hbz/lobid-resources",
"type" : [ "SoftwareApplication" ],
Expand Down
2 changes: 1 addition & 1 deletion conf/output/test-hebis-to-lobid-output-3.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"resultOf" : {
"type" : [ "CreateAction" ],
"endTime" : "2024-12-03T10:18:32",
"endTime" : "0000-00-00T00:00:00",
"instrument" : {
"id" : "https://github.com/hbz/lobid-resources",
"type" : [ "SoftwareApplication" ],
Expand Down
2 changes: 1 addition & 1 deletion conf/output/test-hebis-to-lobid-output-4.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"resultOf" : {
"type" : [ "CreateAction" ],
"endTime" : "2024-12-03T10:18:32",
"endTime" : "0000-00-00T00:00:00",
"instrument" : {
"id" : "https://github.com/hbz/lobid-resources",
"type" : [ "SoftwareApplication" ],
Expand Down
2 changes: 1 addition & 1 deletion conf/output/test-hebis-to-lobid-output-5.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"resultOf" : {
"type" : [ "CreateAction" ],
"endTime" : "2024-12-03T10:18:32",
"endTime" : "0000-00-00T00:00:00",
"instrument" : {
"id" : "https://github.com/hbz/lobid-resources",
"type" : [ "SoftwareApplication" ],
Expand Down
2 changes: 1 addition & 1 deletion conf/output/test-hebis-to-lobid-output-6.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"resultOf" : {
"type" : [ "CreateAction" ],
"endTime" : "2024-12-03T10:18:32",
"endTime" : "0000-00-00T00:00:00",
"instrument" : {
"id" : "https://github.com/hbz/lobid-resources",
"type" : [ "SoftwareApplication" ],
Expand Down
2 changes: 1 addition & 1 deletion conf/output/test-hebis-to-lobid-output-7.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"resultOf" : {
"type" : [ "CreateAction" ],
"endTime" : "2024-12-03T10:18:32",
"endTime" : "0000-00-00T00:00:00",
"instrument" : {
"id" : "https://github.com/hbz/lobid-resources",
"type" : [ "SoftwareApplication" ],
Expand Down
2 changes: 1 addition & 1 deletion conf/output/test-hebis-to-lobid-output-8.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"resultOf" : {
"type" : [ "CreateAction" ],
"endTime" : "2024-12-03T10:18:33",
"endTime" : "0000-00-00T00:00:00",
"instrument" : {
"id" : "https://github.com/hbz/lobid-resources",
"type" : [ "SoftwareApplication" ],
Expand Down
2 changes: 1 addition & 1 deletion conf/output/test-hebis-to-lobid-output-9.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"resultOf" : {
"type" : [ "CreateAction" ],
"endTime" : "2024-12-03T10:18:33",
"endTime" : "0000-00-00T00:00:00",
"instrument" : {
"id" : "https://github.com/hbz/lobid-resources",
"type" : [ "SoftwareApplication" ],
Expand Down

0 comments on commit c3d159e

Please sign in to comment.