Skip to content

Commit

Permalink
Fix describedBy.resultof.object.inDataset #1340
Browse files Browse the repository at this point in the history
This resulted in invalid json files with regard to the schema
  • Loading branch information
TobiasNx committed Aug 10, 2022
1 parent 70edff0 commit b5b98ea
Show file tree
Hide file tree
Showing 79 changed files with 548 additions and 236 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/alma/fix/describedBy.fix
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ append("describedBy.resultOf.object.label"," im Exportformat MARC21 XML")
# <data name="id" source="@almaMmsId">
# <constant value="https://datahub.io/dataset/hbz_unioncatalog"/>
# </data>
add_field("describedBy.inDataset.id", "https://datahub.io/dataset/hbz_unioncatalog")
add_field("describedBy.resultOf.object.inDataset.id", "https://datahub.io/dataset/hbz_unioncatalog")

# <data name="label" source="@almaMmsId">
# <constant value="hbz_unioncatalog"/>
# </data>
# </entity>
add_field("describedBy.inDataset.label", "hbz_unioncatalog")
add_field("describedBy.resultOf.object.inDataset.label", "hbz_unioncatalog")

# </entity>
#
Expand Down
10 changes: 7 additions & 3 deletions src/test/resources/alma-fix/(CKB)2550000000015245.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"dateCreated" : "20210429",
"dateModified" : "20210429",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
"id" : "http://lobid.org/resources/dataset#!",
"label" : "lobid-resources – Der hbz-Verbundkatalog als Linked Open Data"
},
"resultOf" : {
"type" : [ "CreateAction" ],
Expand All @@ -37,7 +37,11 @@
"object" : {
"id" : "https://lobid.org/hbz01/99370746459806441",
"type" : [ "DataFeedItem" ],
"label" : "hbz-Ressource 99370746459806441 im Exportformat MARC21 XML"
"label" : "hbz-Ressource 99370746459806441 im Exportformat MARC21 XML",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
}
}
},
"license" : [ {
Expand Down
10 changes: 7 additions & 3 deletions src/test/resources/alma-fix/(CKB)2940000000001369.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"dateCreated" : "20210419",
"dateModified" : "20210419",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
"id" : "http://lobid.org/resources/dataset#!",
"label" : "lobid-resources – Der hbz-Verbundkatalog als Linked Open Data"
},
"resultOf" : {
"type" : [ "CreateAction" ],
Expand All @@ -38,7 +38,11 @@
"object" : {
"id" : "https://lobid.org/hbz01/99370699582506441",
"type" : [ "DataFeedItem" ],
"label" : "hbz-Ressource 99370699582506441 im Exportformat MARC21 XML"
"label" : "hbz-Ressource 99370699582506441 im Exportformat MARC21 XML",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
}
}
},
"license" : [ {
Expand Down
10 changes: 7 additions & 3 deletions src/test/resources/alma-fix/(CKB)4100000010077918.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"dateCreated" : "20210504",
"dateModified" : "20220329",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
"id" : "http://lobid.org/resources/dataset#!",
"label" : "lobid-resources – Der hbz-Verbundkatalog als Linked Open Data"
},
"resultOf" : {
"type" : [ "CreateAction" ],
Expand All @@ -38,7 +38,11 @@
"object" : {
"id" : "https://lobid.org/hbz01/99370763433806441",
"type" : [ "DataFeedItem" ],
"label" : "hbz-Ressource 99370763433806441 im Exportformat MARC21 XML"
"label" : "hbz-Ressource 99370763433806441 im Exportformat MARC21 XML",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
}
}
},
"license" : [ {
Expand Down
10 changes: 7 additions & 3 deletions src/test/resources/alma-fix/(CKB)5280000000199164.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"dateCreated" : "20210419",
"dateModified" : "20210419",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
"id" : "http://lobid.org/resources/dataset#!",
"label" : "lobid-resources – Der hbz-Verbundkatalog als Linked Open Data"
},
"resultOf" : {
"type" : [ "CreateAction" ],
Expand All @@ -39,7 +39,11 @@
"object" : {
"id" : "https://lobid.org/hbz01/99370682219806441",
"type" : [ "DataFeedItem" ],
"label" : "hbz-Ressource 99370682219806441 im Exportformat MARC21 XML"
"label" : "hbz-Ressource 99370682219806441 im Exportformat MARC21 XML",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
}
}
},
"license" : [ {
Expand Down
10 changes: 7 additions & 3 deletions src/test/resources/alma-fix/(DE-6)1523217-49hbz_ulm.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"type" : [ "BibliographicDescription" ],
"dateCreated" : "20220711",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
"id" : "http://lobid.org/resources/dataset#!",
"label" : "lobid-resources – Der hbz-Verbundkatalog als Linked Open Data"
},
"resultOf" : {
"type" : [ "CreateAction" ],
Expand All @@ -25,7 +25,11 @@
"object" : {
"id" : "https://lobid.org/hbz01/991000688209706449",
"type" : [ "DataFeedItem" ],
"label" : "hbz-Ressource 991000688209706449 im Exportformat MARC21 XML"
"label" : "hbz-Ressource 991000688209706449 im Exportformat MARC21 XML",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
}
}
},
"license" : [ {
Expand Down
10 changes: 7 additions & 3 deletions src/test/resources/alma-fix/(DE-605)BT000003404.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"dateCreated" : "20210406",
"dateModified" : "20210408",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
"id" : "http://lobid.org/resources/dataset#!",
"label" : "lobid-resources – Der hbz-Verbundkatalog als Linked Open Data"
},
"resultOf" : {
"type" : [ "CreateAction" ],
Expand All @@ -25,7 +25,11 @@
"object" : {
"id" : "https://lobid.org/hbz01/990110509950206441",
"type" : [ "DataFeedItem" ],
"label" : "hbz-Ressource 990110509950206441 im Exportformat MARC21 XML"
"label" : "hbz-Ressource 990110509950206441 im Exportformat MARC21 XML",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
}
}
},
"license" : [ {
Expand Down
10 changes: 7 additions & 3 deletions src/test/resources/alma-fix/(DE-605)BT000041593.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"dateCreated" : "20210405",
"dateModified" : "20210408",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
"id" : "http://lobid.org/resources/dataset#!",
"label" : "lobid-resources – Der hbz-Verbundkatalog als Linked Open Data"
},
"resultOf" : {
"type" : [ "CreateAction" ],
Expand All @@ -34,7 +34,11 @@
"object" : {
"id" : "https://lobid.org/hbz01/990110881770206441",
"type" : [ "DataFeedItem" ],
"label" : "hbz-Ressource 990110881770206441 im Exportformat MARC21 XML"
"label" : "hbz-Ressource 990110881770206441 im Exportformat MARC21 XML",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
}
}
},
"license" : [ {
Expand Down
10 changes: 7 additions & 3 deletions src/test/resources/alma-fix/(DE-605)HT000161712.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"dateCreated" : "20210406",
"dateModified" : "20210407",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
"id" : "http://lobid.org/resources/dataset#!",
"label" : "lobid-resources – Der hbz-Verbundkatalog als Linked Open Data"
},
"resultOf" : {
"type" : [ "CreateAction" ],
Expand All @@ -37,7 +37,11 @@
"object" : {
"id" : "https://lobid.org/hbz01/990001412590206441",
"type" : [ "DataFeedItem" ],
"label" : "hbz-Ressource 990001412590206441 im Exportformat MARC21 XML"
"label" : "hbz-Ressource 990001412590206441 im Exportformat MARC21 XML",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
}
}
},
"license" : [ {
Expand Down
10 changes: 7 additions & 3 deletions src/test/resources/alma-fix/(DE-605)HT000312236.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"dateCreated" : "20210405",
"dateModified" : "20210407",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
"id" : "http://lobid.org/resources/dataset#!",
"label" : "lobid-resources – Der hbz-Verbundkatalog als Linked Open Data"
},
"resultOf" : {
"type" : [ "CreateAction" ],
Expand All @@ -23,7 +23,11 @@
"object" : {
"id" : "https://lobid.org/hbz01/990053976760206441",
"type" : [ "DataFeedItem" ],
"label" : "hbz-Ressource 990053976760206441 im Exportformat MARC21 XML"
"label" : "hbz-Ressource 990053976760206441 im Exportformat MARC21 XML",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
}
}
},
"license" : [ {
Expand Down
10 changes: 7 additions & 3 deletions src/test/resources/alma-fix/(DE-605)HT001039253.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"dateCreated" : "20210405",
"dateModified" : "20220308",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
"id" : "http://lobid.org/resources/dataset#!",
"label" : "lobid-resources – Der hbz-Verbundkatalog als Linked Open Data"
},
"resultOf" : {
"type" : [ "CreateAction" ],
Expand All @@ -38,7 +38,11 @@
"object" : {
"id" : "https://lobid.org/hbz01/990059571560206441",
"type" : [ "DataFeedItem" ],
"label" : "hbz-Ressource 990059571560206441 im Exportformat MARC21 XML"
"label" : "hbz-Ressource 990059571560206441 im Exportformat MARC21 XML",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
}
}
},
"license" : [ {
Expand Down
10 changes: 7 additions & 3 deletions src/test/resources/alma-fix/(DE-605)HT002619538.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"dateCreated" : "20210406",
"dateModified" : "20210407",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
"id" : "http://lobid.org/resources/dataset#!",
"label" : "lobid-resources – Der hbz-Verbundkatalog als Linked Open Data"
},
"resultOf" : {
"type" : [ "CreateAction" ],
Expand All @@ -39,7 +39,11 @@
"object" : {
"id" : "https://lobid.org/hbz01/990054215550206441",
"type" : [ "DataFeedItem" ],
"label" : "hbz-Ressource 990054215550206441 im Exportformat MARC21 XML"
"label" : "hbz-Ressource 990054215550206441 im Exportformat MARC21 XML",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
}
}
},
"license" : [ {
Expand Down
10 changes: 7 additions & 3 deletions src/test/resources/alma-fix/(DE-605)HT003109553.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"dateCreated" : "20210405",
"dateModified" : "20210407",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
"id" : "http://lobid.org/resources/dataset#!",
"label" : "lobid-resources – Der hbz-Verbundkatalog als Linked Open Data"
},
"resultOf" : {
"type" : [ "CreateAction" ],
Expand All @@ -38,7 +38,11 @@
"object" : {
"id" : "https://lobid.org/hbz01/990011470300206441",
"type" : [ "DataFeedItem" ],
"label" : "hbz-Ressource 990011470300206441 im Exportformat MARC21 XML"
"label" : "hbz-Ressource 990011470300206441 im Exportformat MARC21 XML",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
}
}
},
"license" : [ {
Expand Down
10 changes: 7 additions & 3 deletions src/test/resources/alma-fix/(DE-605)HT003176544.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"dateCreated" : "20210405",
"dateModified" : "20210407",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
"id" : "http://lobid.org/resources/dataset#!",
"label" : "lobid-resources – Der hbz-Verbundkatalog als Linked Open Data"
},
"resultOf" : {
"type" : [ "CreateAction" ],
Expand All @@ -27,7 +27,11 @@
"object" : {
"id" : "https://lobid.org/hbz01/990054301770206441",
"type" : [ "DataFeedItem" ],
"label" : "hbz-Ressource 990054301770206441 im Exportformat MARC21 XML"
"label" : "hbz-Ressource 990054301770206441 im Exportformat MARC21 XML",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
}
}
},
"license" : [ {
Expand Down
10 changes: 7 additions & 3 deletions src/test/resources/alma-fix/(DE-605)HT003538502.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"dateCreated" : "20210406",
"dateModified" : "20210408",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
"id" : "http://lobid.org/resources/dataset#!",
"label" : "lobid-resources – Der hbz-Verbundkatalog als Linked Open Data"
},
"resultOf" : {
"type" : [ "CreateAction" ],
Expand All @@ -36,7 +36,11 @@
"object" : {
"id" : "https://lobid.org/hbz01/990063549080206441",
"type" : [ "DataFeedItem" ],
"label" : "hbz-Ressource 990063549080206441 im Exportformat MARC21 XML"
"label" : "hbz-Ressource 990063549080206441 im Exportformat MARC21 XML",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
}
}
},
"license" : [ {
Expand Down
10 changes: 7 additions & 3 deletions src/test/resources/alma-fix/(DE-605)HT003864492.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"dateCreated" : "20210405",
"dateModified" : "20210407",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
"id" : "http://lobid.org/resources/dataset#!",
"label" : "lobid-resources – Der hbz-Verbundkatalog als Linked Open Data"
},
"resultOf" : {
"type" : [ "CreateAction" ],
Expand All @@ -36,7 +36,11 @@
"object" : {
"id" : "https://lobid.org/hbz01/990014830510206441",
"type" : [ "DataFeedItem" ],
"label" : "hbz-Ressource 990014830510206441 im Exportformat MARC21 XML"
"label" : "hbz-Ressource 990014830510206441 im Exportformat MARC21 XML",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
}
}
},
"license" : [ {
Expand Down
10 changes: 7 additions & 3 deletions src/test/resources/alma-fix/(DE-605)HT004285445.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"dateCreated" : "20210405",
"dateModified" : "20210407",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
"id" : "http://lobid.org/resources/dataset#!",
"label" : "lobid-resources – Der hbz-Verbundkatalog als Linked Open Data"
},
"resultOf" : {
"type" : [ "CreateAction" ],
Expand All @@ -38,7 +38,11 @@
"object" : {
"id" : "https://lobid.org/hbz01/990016782920206441",
"type" : [ "DataFeedItem" ],
"label" : "hbz-Ressource 990016782920206441 im Exportformat MARC21 XML"
"label" : "hbz-Ressource 990016782920206441 im Exportformat MARC21 XML",
"inDataset" : {
"id" : "https://datahub.io/dataset/hbz_unioncatalog",
"label" : "hbz_unioncatalog"
}
}
},
"license" : [ {
Expand Down
Loading

0 comments on commit b5b98ea

Please sign in to comment.