Commit 0247f5f7 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Remove old scripts

parent 208ba180
This diff is collapsed.
#!/usr/bin/env bash
inputdir=./raw
outputdir=./out
xslt=./configs/transform.xslt
cp=./libs/saxon9he.jar
nr=1
echo "start transformation"
for datei in $inputdir/*
do
echo "file: "$datei
java -Xms8024m -Xmx8024m -cp $cp net.sf.saxon.Transform -s:$datei -xsl:$xslt -o:$outputdir/`basename "$datei" .xml`_flatxml.xml
nr=$(($nr+1))
done
\ No newline at end of file
# How to generate object_map.map for production
Call `script.py` for generating object_map.txt
and then transform it to DBM format for fast access in live environment.
```
httxt2dbm -i object_map.txt -o object_map.map
```
This diff is collapsed.
## Old institutionID-recordsetID to new recordset id
##
## recordset_map.txt - {old institution ID}-{recordset ID} to {new recordset ID} map file
##
## See https://memobase.atlassian.net/wiki/spaces/TBER/pages/625836131/URL+Rewrite+Requirements
##
## Basierend auf erstellt am 2021-04-11
##
ADG-68432 adg-001
AfZ-Lutz afz-001
AfZ-Bosshard afz-002
AfZ-Becker-Audiovisuals afz-003
AfZ-IB_humem-Archiv afz-004
ArchivioDonetta-Donetta fad-001
ArCJ-SAC acj-001
ArCJ-SP acj-002
ASTi-FPC ati-002
ASTi-Fototeca ati-003
ASTi-Monotti ati-001
AVL-FIC avl-001
BAB-PA_43 bab-001
BAR-SABZ bar-002
BAR-E27 bar-003
BAZ-B_MEI baz-001
BCUF-Thevoz bcf-001
BMF-Ton bmf-001
BMF-Video bmf-002
BPUN-WIRI bpu-001
Burgerbib-Thierstein bbb-002
Burgerbib-Krebser bbb-001
BVCF-VCH-BVFSP_RC bvc-002
BVCF-Club44 bvc-001
Cde-LEYDI cde-001
CdT-SON cdt-001
CdT-gar cdt-002
CentroElisarion-vonKupffervonMayer mem-001
CIC-ASG cag-001
CL-Leuzinger clg-001
CS-CS_CF csa-001
FER-RPN fer-001
FHNW_HGK-VWW hgk-001
Fonoteca-CHRISTEN snp-001
Fonoteca-VC-YM snp-002
FotoGR-GR-1000 fgr-001
FSS-19 fss-001
FSS-Blum fss-002
FSS-ES fss-003
FSS-HM fss-004
FSS-KG fss-005
FSS-Braun fss-006
FSS-SWB fss-007
FSS-Unikat fss-009
FSS-DAL fss-008
HSLU_DuK-JAW hsl-001
IASA-Collart ias-001
ICRC-V-F-CR-H cic-001
ICRC-V-S cic-002
IFRC-FILM ikr-001
IKG-Liedersammlung_Dr__Alfons_Maissen ikg-001
KanalK-SendungsArchiv kak-001
KBGR-AV kbg-001
KH_ZH-VS khz-001
KlosterEinsiedeln-KAE__F6_0 kek-001
LAGL-PA_111_Sch_Y agl-001
LJ-Filmbestand_Langjahr_GmbH lfg-001
LoRa-Sendungsarchiv rra-001
LS-film lkb-001
MCA-VideoArt mcl-001
MdL-ML mdl-001
Mediatheque-Schmid mws-001
Mediatheque-Sonore mws-002
Mediatheque-f0047E mws-003
Mediatheque-f0199 mws-004
Memoriav-MB_alt_film mav-001
Memoriav-MB_alt_foto mav-002
mfk-FLM mfk-001
MHL-Constant mhl-001
Museegruerien-Morel mgb-001
Museegruerien-Prangey mgb-002
Museegruerien-Glasson mgb-003
MuseeLaNeuveville-Hirt kmm-001
NB-IMVOCS snb-001
PlansFixes-All apf-001
Radio_Stadtfilter-archiv raf-001
Radiotelevisionesvizzera-Documentario rti-001
Radiotelevisionesvizzera-DM rti-002
Radiotelevisionesvizzera-Archiv rti-003
RadioX-Agenda rxb-002
RadioX-Kampagnen rxb-003
RadioX-Kulturtipp rxb-004
RadioX-Politspecial rxb-001
RTR-Radiobestand_Il_Patnal rtr-001
RTR-DM rtr-002
RTS-DM_GE rts-001
RTS-DM_LS rts-002
RTS-Patois rts-003
RTS-Bonsoir rts-004
RTS-CSV rts-005
SFW_CJS_CGS-SFW_CJS_CGS bar-001
SIK-VK sik-001
SMA-IBA maa-001
SMA-SK maa-002
SNM-Arbeit lmz-001
sonohr-sammlung son-001
SozArch-Sozarch_F_9045 soz-005
SozArch-F_9005 soz-001
SozArch-F_9004 soz-002
SozArch-F_9003 soz-003
SozArch-F_5146 soz-004
SozArch-F_5003 soz-015
SozArch-F_1005 soz-010
SozArch-F_1006 soz-008
SozArch-F_1032 soz-006
SozArch-F_1030 soz-007
SozArch-F_1015 soz-009
SozArch-F_1013 soz-011
SozArch-F_1000 soz-012
SozArch-F_9013 soz-013
SozArch-F_9011 soz-014
SozArch-F_StadtInBewegung soz-016
SRF-bv8 srf-001
SRF-BPBV8 srf-002
SRF-CH-M srf-003
SRF-Karussell srf-004
SRF-Kassensturz srf-005
SRF-LSR srf-006
SRF-MTW srf-007
SRF-Netto srf-008
SRF-PDW srf-009
SRF-RJ srf-010
SRF-RS srf-011
SRF-TS srf-012
SRF-Duer srf-028
SRF-AkustischesErbeFR srf-013
SRF-EMusik srf-014
SRF-Feuilleton srf-015
SRF-Hoerspiele srf-016
SRF-Information srf-017
SRF-Jazz srf-018
SRF-Kultur srf-019
SRF-PERSOENLICH srf-020
SRF-REGI srf-021
SRF-Sport srf-023
SRF-UMusik srf-024
SRF-Unterhaltung srf-025
SRF-DM srf-026
SRF-2000 srf-027
StAAG-ATP-Personen aag-001
StaBE-Jost abe-001
STD-Dimitri atd-001
StLu-JL klu-001
StLu-MAW klu-002
STS-INV_STS sap-027
StSh-V_I_02 sts-001
Swissinfo-All swi-001
Tanzarchiv-42858 sap-001
Tanzarchiv-10369 sap-002
Tanzarchiv-44780 sap-003
Tanzarchiv-9 sap-004
Tanzarchiv-CabaretA sap-005
Tanzarchiv-121 sap-006
Tanzarchiv-31344 sap-007
Tanzarchiv-36135 sap-008
Tanzarchiv-34420 sap-009
Tanzarchiv-35303 sap-010
Tanzarchiv-34695 sap-011
Tanzarchiv-98 sap-012
Tanzarchiv-35414 sap-013
Tanzarchiv-49114 sap-014
Tanzarchiv-39538 sap-015
Tanzarchiv-31345 sap-016
Tanzarchiv-45858 sap-017
Tanzarchiv-132 sap-018
Tanzarchiv-395 sap-019
Tanzarchiv-163 sap-020
Tanzarchiv-36560 sap-021
Tanzarchiv-45857 sap-022
Tanzarchiv-128 sap-023
Tanzarchiv-141 sap-024
Tanzarchiv-161 sap-025
Tanzarchiv-31026 sap-026
UBB-000121332 ubb-001
USI_B-195 baa-001
Verkehrshaus-video vks-001
ZB-Mus_NL_147 zbz-001
ZEM-F zem-001
ZHdK-Schneckenburger mgz-001
ZHdK_A-Viper azh-001
\ No newline at end of file
from simple_elastic import ElasticIndex
if __name__ == '__main__':
index = ElasticIndex('documents-v20', url='localhost:8080')
query = {
"_source": {
"includes": ["id", "oldMemobaseId"]
},
"query": {
"exists": {
"field": "oldMemobaseId"
}
}
}
with open('object_map.txt', 'w') as fp:
for items in index.scroll(query=query, size=1000):
for item in items:
fp.write(f'{item["oldMemobaseId"]} {item["id"]}\n')
from datetime import datetime
from simple_elastic import ElasticIndex
if __name__ == '__main__':
index = ElasticIndex('documents-v8', url='localhost:8080')
print(f'Start: {datetime.now()}')
for items in index.scroll():
for item in items:
index.update({'published': True}, item['id'])
print(f'End: {datetime.now()}')
\ No newline at end of file
#!/usr/bin/env bash
export HELM_EXPERIMENTAL_OCI=1
REGISTRY="cr.gitlab.switch.ch/memoriav/memobase-2020/services/elastic-services/search-doc-service"
VERSION="0.11.0-chart"
helm chart pull ${REGISTRY}:${VERSION}
helm chart export ${REGISTRY}:${VERSION} -d charts/
_:Bbfb08e8aX2D5fd5X2D42faX2D8c2fX2D2bb9ddb693ea <https://www.ica.org/standards/RiC/ontology#name> "DJ Bobo; Yello" .
_:Bbfb08e8aX2D5fd5X2D42faX2D8c2fX2D2bb9ddb693ea <https://www.ica.org/standards/RiC/ontology#agentIsTargetOfCreationRelation> _:Bffff3a58X2D8450X2D4ba0X2D946dX2D19c6647cc27e .
_:Bbfb08e8aX2D5fd5X2D42faX2D8c2fX2D2bb9ddb693ea <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Agent> .
_:Bf329afb8X2D339bX2D41e7X2D900aX2Df66131a59404 <https://www.ica.org/standards/RiC/ontology#name> "Tedesco" .
_:Bf329afb8X2D339bX2D41e7X2D900aX2Df66131a59404 <https://www.ica.org/standards/RiC/ontology#type> "caption" .
_:Bf329afb8X2D339bX2D41e7X2D900aX2Df66131a59404 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Language> .
_:Bc3df593bX2D3169X2D4d00X2Da5ebX2D5eec69d37fb5 <https://www.ica.org/standards/RiC/ontology#title> "Titel Radio vom 1999" .
_:Bc3df593bX2D3169X2D4d00X2Da5ebX2D5eec69d37fb5 <https://www.ica.org/standards/RiC/ontology#type> "broadcast" .
_:Bc3df593bX2D3169X2D4d00X2Da5ebX2D5eec69d37fb5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Title> .
_:Bedec2d1cX2D92afX2D4027X2D94f8X2D7792b1d055f6 <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/record/mav-001-03> .
_:Bedec2d1cX2D92afX2D4027X2D94f8X2D7792b1d055f6 <https://www.ica.org/standards/RiC/ontology#name> "Rechteinhaber <br> und weiteres" .
_:Bedec2d1cX2D92afX2D4027X2D94f8X2D7792b1d055f6 <https://www.ica.org/standards/RiC/ontology#type> "holder" .
_:Bedec2d1cX2D92afX2D4027X2D94f8X2D7792b1d055f6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Rule> .
_:B263eea72X2Da1e5X2D4022X2D83b3X2Dfa719b6a1f90 <https://www.ica.org/standards/RiC/ontology#creationRelationHasTarget> _:B3d71dc7fX2Da157X2D4c46X2Daa96X2Dee2757ce3a4d .
_:B263eea72X2Da1e5X2D4022X2D83b3X2Dfa719b6a1f90 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#CreationRelation> .
_:B263eea72X2Da1e5X2D4022X2D83b3X2Dfa719b6a1f90 <https://www.ica.org/standards/RiC/ontology#creationRelationHasSource> <https://memobase.ch/record/mav-001-03> .
_:B263eea72X2Da1e5X2D4022X2D83b3X2Dfa719b6a1f90 <https://www.ica.org/standards/RiC/ontology#type> "creator" .
_:B42b822f2X2D5053X2D41e2X2D9191X2Dbbc35870a539 <https://www.ica.org/standards/RiC/ontology#name> "General Guisan, Tschingis, Karate Kid" .
_:B42b822f2X2D5053X2D41e2X2D9191X2Dbbc35870a539 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Agent> .
_:B8f22347aX2D77adX2D4d8bX2D8647X2D07272dd51599 <http://www.w3.org/2004/02/skos/core#prefLabel> "Dokumentarfilm" .
_:B8f22347aX2D77adX2D4d8bX2D8647X2D07272dd51599 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
_:Bb779e4a3X2D55f2X2D48e1X2D9486X2D98398fa2e3a5 <http://www.w3.org/2004/02/skos/core#prefLabel> "Maus" .
_:Bb779e4a3X2D55f2X2D48e1X2D9486X2D98398fa2e3a5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
_:B5ded7744X2D3bacX2D409cX2Da52bX2Db0d1521554c0 <https://www.ica.org/standards/RiC/ontology#title> "Titel Radio" .
_:B5ded7744X2D3bacX2D409cX2Da52bX2Db0d1521554c0 <https://www.ica.org/standards/RiC/ontology#type> "series" .
_:B5ded7744X2D3bacX2D409cX2Da52bX2Db0d1521554c0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Title> .
_:B7259d4ceX2D9cbeX2D402aX2D9536X2De415f03adefb <https://www.ica.org/standards/RiC/ontology#identifier> "03" .
_:B7259d4ceX2D9cbeX2D402aX2D9536X2De415f03adefb <https://www.ica.org/standards/RiC/ontology#type> "original" .
_:B7259d4ceX2D9cbeX2D402aX2D9536X2De415f03adefb <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Identifier> .
_:Bb4e0a5faX2Da9efX2D4feeX2Dbba5X2D7c8eca0229c6 <https://www.ica.org/standards/RiC/ontology#creationRelationHasTarget> _:B11e5e938X2De3b3X2D4753X2D9e86X2D07e00422c479 .
_:Bb4e0a5faX2Da9efX2D4feeX2Dbba5X2D7c8eca0229c6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#CreationRelation> .
_:Bb4e0a5faX2Da9efX2D4feeX2Dbba5X2D7c8eca0229c6 <https://www.ica.org/standards/RiC/ontology#creationRelationHasSource> <https://memobase.ch/record/mav-001-03> .
_:Bb4e0a5faX2Da9efX2D4feeX2Dbba5X2D7c8eca0229c6 <https://www.ica.org/standards/RiC/ontology#type> "creator" .
_:B49f5fd8eX2D2116X2D44bbX2D80acX2Dc1c961d19a47 <https://www.ica.org/standards/RiC/ontology#name> "Fantasie Verlag 123; Printerest" .
_:B49f5fd8eX2D2116X2D44bbX2D80acX2Dc1c961d19a47 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Agent> .
_:B97a9e9d6X2D6b34X2D4325X2D8b0dX2Da4c0bdbb0976 <https://www.ica.org/standards/RiC/ontology#name> "Peter, Bichsel" .
_:B97a9e9d6X2D6b34X2D4325X2D8b0dX2Da4c0bdbb0976 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Person> .
_:Bffff3a58X2D8450X2D4ba0X2D946dX2D19c6647cc27e <https://www.ica.org/standards/RiC/ontology#creationRelationHasTarget> _:Bbfb08e8aX2D5fd5X2D42faX2D8c2fX2D2bb9ddb693ea .
_:Bffff3a58X2D8450X2D4ba0X2D946dX2D19c6647cc27e <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#CreationRelation> .
_:Bffff3a58X2D8450X2D4ba0X2D946dX2D19c6647cc27e <https://www.ica.org/standards/RiC/ontology#creationRelationHasSource> <https://memobase.ch/record/mav-001-03> .
_:Bffff3a58X2D8450X2D4ba0X2D946dX2D19c6647cc27e <https://www.ica.org/standards/RiC/ontology#type> "contributor" .
_:B0ab80fc6X2D3ff0X2D4f4dX2D9491X2D87a17fa78c78 <https://www.ica.org/standards/RiC/ontology#identifier> "mav-001-03" .
_:B0ab80fc6X2D3ff0X2D4f4dX2D9491X2D87a17fa78c78 <https://www.ica.org/standards/RiC/ontology#type> "main" .
_:B0ab80fc6X2D3ff0X2D4f4dX2D9491X2D87a17fa78c78 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Identifier> .
_:B69e7a081X2D5edfX2D41a1X2Da8bbX2Dcedb67acae19 <https://www.ica.org/standards/RiC/ontology#title> "Titel Radio 03" .
_:B69e7a081X2D5edfX2D41a1X2Da8bbX2Dcedb67acae19 <https://www.ica.org/standards/RiC/ontology#type> "main" .
_:B69e7a081X2D5edfX2D41a1X2Da8bbX2Dcedb67acae19 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Title> .
_:B11e5e938X2De3b3X2D4753X2D9e86X2D07e00422c479 <https://www.ica.org/standards/RiC/ontology#name> "Ruth, Dreifuss" .
_:B11e5e938X2De3b3X2D4753X2D9e86X2D07e00422c479 <https://www.ica.org/standards/RiC/ontology#agentIsTargetOfCreationRelation> _:Bb4e0a5faX2Da9efX2D4feeX2Dbba5X2D7c8eca0229c6 .
_:B11e5e938X2De3b3X2D4753X2D9e86X2D07e00422c479 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Person> .
_:Be0523f7dX2D309fX2D4a60X2D99aeX2D9ac7bf9bfa34 <https://www.ica.org/standards/RiC/ontology#expressedDate> "1999" .
_:Be0523f7dX2D309fX2D4a60X2D99aeX2D9ac7bf9bfa34 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#DateSet> .
<https://memobase.ch/record/mav-001-03> <http://schema.org/sameAs> "https://www.recherche.bar.admin.ch/recherche/#/de/suche/archivplan/21690330" .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#scopeAndContent> "Entstehungsumstände <br> und weiteres" .
<https://memobase.ch/record/mav-001-03> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#hasGenre> _:B8f22347aX2D77adX2D4d8bX2D8647X2D07272dd51599 .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#conditionsOfUse> "Nutzungsrechte <br> und weiteres" .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#hasTitle> _:B69e7a081X2D5edfX2D41a1X2Da8bbX2Dcedb67acae19 .
<https://memobase.ch/record/mav-001-03> <http://rdaregistry.info/Elements/u/P60556> _:B2d1d0145X2D198fX2D4c82X2D92c0X2D59bee2a1db76 .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#recordResourceOrInstantiationIsSourceOfCreationRelation> _:Bb4e0a5faX2Da9efX2D4feeX2Dbba5X2D7c8eca0229c6 .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#publishedBy> _:B49f5fd8eX2D2116X2D44bbX2D80acX2Dc1c961d19a47 .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#hasSubject> _:B42b822f2X2D5053X2D41e2X2D9191X2Dbbc35870a539 .
<https://memobase.ch/record/mav-001-03> <http://purl.org/dc/terms/spatial> _:B3d24cdc4X2D2f9dX2D497bX2Da499X2Dc9d6d36e2caf .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B3e51ecf4X2D9865X2D4d15X2D8dd2X2D664dd2a578e3 .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#hasSubject> _:Bb779e4a3X2D55f2X2D48e1X2D9486X2D98398fa2e3a5 .
<https://memobase.ch/record/mav-001-03> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Record> .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#hasInstantiation> <https://memobase.ch/digital/mav-001-03-1> .
<https://memobase.ch/record/mav-001-03> <http://purl.org/dc/terms/issued> _:Be0523f7dX2D309fX2D4a60X2D99aeX2D9ac7bf9bfa34 .
<https://memobase.ch/record/mav-001-03> <https://memobase.ch/internal/isPublished> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#isPartOf> <https://memobase.ch/recordSet/mav-001> .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#hasTitle> _:B5ded7744X2D3bacX2D409cX2Da52bX2Db0d1521554c0 .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#hasInstantiation> <https://memobase.ch/physical/mav-001-03-1> .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#recordResourceOrInstantiationIsSourceOfCreationRelation> _:Bffff3a58X2D8450X2D4ba0X2D946dX2D19c6647cc27e .
<https://memobase.ch/record/mav-001-03> <http://purl.org/dc/terms/abstract> "Beschreibung <br> und vieles mehr" .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#source> "Quelle y<br> und weiteres" .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B7259d4ceX2D9cbeX2D402aX2D9536X2De415f03adefb .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#publishedBy> _:B97a9e9d6X2D6b34X2D4325X2D8b0dX2Da4c0bdbb0976 .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#hasLanguage> _:Bf329afb8X2D339bX2D41e7X2D900aX2Df66131a59404 .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#descriptiveNote> "Bemerkung <br> weiteres" .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:Bedec2d1cX2D92afX2D4027X2D94f8X2D7792b1d055f6 .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#title> "Titel Radio 03" .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#heldBy> <https://memobase.ch/institution/mav> .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B0ab80fc6X2D3ff0X2D4f4dX2D9491X2D87a17fa78c78 .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#type> "Radio" .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#hasTitle> _:Bc3df593bX2D3169X2D4d00X2Da5ebX2D5eec69d37fb5 .
<https://memobase.ch/record/mav-001-03> <http://rdaregistry.info/Elements/u/P60441> _:B942bf30aX2Dc50cX2D4065X2D8a4fX2D22d4c59ceda3 .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#recordResourceOrInstantiationIsSourceOfCreationRelation> _:B263eea72X2Da1e5X2D4022X2D83b3X2Dfa719b6a1f90 .
<https://memobase.ch/record/mav-001-03> <http://purl.org/dc/terms/relation> "Verwandtes Material <br> und weiteres" .
<https://memobase.ch/record/mav-001-03> <https://www.ica.org/standards/RiC/ontology#hasSubject> _:B5169bae9X2D4b9cX2D4becX2Da3d5X2D44236ee62156 .
<https://memobase.ch/record/mav-001-03> <http://rdaregistry.info/Elements/u/P60451> <https://memobase.ch/institution/mrv> .
_:B3e51ecf4X2D9865X2D4d15X2D8dd2X2D664dd2a578e3 <https://www.ica.org/standards/RiC/ontology#identifier> "memoriav-03" .
_:B3e51ecf4X2D9865X2D4d15X2D8dd2X2D664dd2a578e3 <https://www.ica.org/standards/RiC/ontology#type> "oldMemobase" .
_:B3e51ecf4X2D9865X2D4d15X2D8dd2X2D664dd2a578e3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Identifier> .
_:B942bf30aX2Dc50cX2D4065X2D8a4fX2D22d4c59ceda3 <https://www.ica.org/standards/RiC/ontology#name> "Producer known; Producer wellknown" .
_:B942bf30aX2Dc50cX2D4065X2D8a4fX2D22d4c59ceda3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#CorporateBody> .
_:B3d71dc7fX2Da157X2D4c46X2Daa96X2Dee2757ce3a4d <https://www.ica.org/standards/RiC/ontology#name> "Die Post" .
_:B3d71dc7fX2Da157X2D4c46X2Daa96X2Dee2757ce3a4d <https://www.ica.org/standards/RiC/ontology#agentIsTargetOfCreationRelation> _:B263eea72X2Da1e5X2D4022X2D83b3X2Dfa719b6a1f90 .
_:B3d71dc7fX2Da157X2D4c46X2Daa96X2Dee2757ce3a4d <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#CorporateBody> .
_:B3d24cdc4X2D2f9dX2D497bX2Da499X2Dc9d6d36e2caf <https://www.ica.org/standards/RiC/ontology#name> "Ort unbekannt" .
_:B3d24cdc4X2D2f9dX2D497bX2Da499X2Dc9d6d36e2caf <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Place> .
_:B2d1d0145X2D198fX2D4c82X2D92c0X2D59bee2a1db76 <https://www.ica.org/standards/RiC/ontology#name> "Lenzburg, AG (Schweiz)" .
_:B2d1d0145X2D198fX2D4c82X2D92c0X2D59bee2a1db76 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Place> .
_:B5169bae9X2D4b9cX2D4becX2Da3d5X2D44236ee62156 <https://www.ica.org/standards/RiC/ontology#name> "Henri, Guisan" .
_:B5169bae9X2D4b9cX2D4becX2Da3d5X2D44236ee62156 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Person> .
_:B92f4aa2bX2D7f7cX2D4119X2D87a8X2D054a7284ce8c <https://www.ica.org/standards/RiC/ontology#identifier> "c" .
_:B92f4aa2bX2D7f7cX2D4119X2D87a8X2D054a7284ce8c <https://www.ica.org/standards/RiC/ontology#type> "callNumber" .
_:B92f4aa2bX2D7f7cX2D4119X2D87a8X2D054a7284ce8c <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Identifier> .
<https://memobase.ch/physical/mav-001-03-1> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B92f4aa2bX2D7f7cX2D4119X2D87a8X2D054a7284ce8c .
<https://memobase.ch/physical/mav-001-03-1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Instantiation> .
<https://memobase.ch/physical/mav-001-03-1> <https://www.ica.org/standards/RiC/ontology#instantiates> <https://memobase.ch/record/mav-001-03> .
<https://memobase.ch/physical/mav-001-03-1> <http://rdaregistry.info/Elements/u/P60558> "color" .
<https://memobase.ch/physical/mav-001-03-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:Bf55b5333X2D01acX2D436aX2Db5f9X2D68c6f5db2a48 .
<https://memobase.ch/physical/mav-001-03-1> <https://www.ica.org/standards/RiC/ontology#type> "physicalObject" .
<https://memobase.ch/physical/mav-001-03-1> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#duration> "00:00:03" .
<https://memobase.ch/physical/mav-001-03-1> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B609f389eX2D69f5X2D493dX2D9ad4X2D8a59f09dbb30 .
<https://memobase.ch/physical/mav-001-03-1> <https://www.ica.org/standards/RiC/ontology#physicalCharacteristics> "Tech Bemerkung <br> weiteres" .
<https://memobase.ch/physical/mav-001-03-1> <https://www.ica.org/standards/RiC/ontology#hasDerivedInstantiation> <https://memobase.ch/digital/mav-001-03-1> .
_:B609f389eX2D69f5X2D493dX2D9ad4X2D8a59f09dbb30 <https://www.ica.org/standards/RiC/ontology#identifier> "mav-001-03-1" .
_:B609f389eX2D69f5X2D493dX2D9ad4X2D8a59f09dbb30 <https://www.ica.org/standards/RiC/ontology#type> "main" .
_:B609f389eX2D69f5X2D493dX2D9ad4X2D8a59f09dbb30 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Identifier> .
_:Bf55b5333X2D01acX2D436aX2Db5f9X2D68c6f5db2a48 <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/physical/mav-001-03-1> .
_:Bf55b5333X2D01acX2D436aX2Db5f9X2D68c6f5db2a48 <http://schema.org/sameAs> "http://rightsstatements.org/vocab/InC-EDU/1.0/" .
_:Bf55b5333X2D01acX2D436aX2Db5f9X2D68c6f5db2a48 <https://www.ica.org/standards/RiC/ontology#name> "In Copyright - Educational Use Permitted (InC-EDU)" .
_:Bf55b5333X2D01acX2D436aX2Db5f9X2D68c6f5db2a48 <https://www.ica.org/standards/RiC/ontology#type> "usage" .
_:Bf55b5333X2D01acX2D436aX2Db5f9X2D68c6f5db2a48 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Rule> .
_:Bac80e07fX2Dc782X2D4256X2Db276X2Ddcbc5d4d5b06 <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/digital/mav-001-03-1> .
_:Bac80e07fX2Dc782X2D4256X2Db276X2Ddcbc5d4d5b06 <https://www.ica.org/standards/RiC/ontology#name> "faro" .
_:Bac80e07fX2Dc782X2D4256X2Db276X2Ddcbc5d4d5b06 <https://www.ica.org/standards/RiC/ontology#type> "access" .
_:Bac80e07fX2Dc782X2D4256X2Db276X2Ddcbc5d4d5b06 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Rule> .
_:Bb6fc36ecX2Df027X2D4847X2D8a7aX2D5d85adfdca63 <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/digital/mav-001-03-1> .
_:Bb6fc36ecX2Df027X2D4847X2D8a7aX2D5d85adfdca63 <http://schema.org/sameAs> "http://rightsstatements.org/vocab/NoC-NC/1.0/" .
_:Bb6fc36ecX2Df027X2D4847X2D8a7aX2D5d85adfdca63 <https://www.ica.org/standards/RiC/ontology#name> "No Copyright - non commercial re-use only (NoC-NC)" .
_:Bb6fc36ecX2Df027X2D4847X2D8a7aX2D5d85adfdca63 <https://www.ica.org/standards/RiC/ontology#type> "usage" .
_:Bb6fc36ecX2Df027X2D4847X2D8a7aX2D5d85adfdca63 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Rule> .
<https://memobase.ch/digital/mav-001-03-1> <https://www.ica.org/standards/RiC/ontology#isDerivedFromInstantiation> <https://memobase.ch/physical/mav-001-03-1> .
<https://memobase.ch/digital/mav-001-03-1> <https://www.ica.org/standards/RiC/ontology#instantiates> <https://memobase.ch/record/mav-001-03> .
<https://memobase.ch/digital/mav-001-03-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:Bb6fc36ecX2Df027X2D4847X2D8a7aX2D5d85adfdca63 .
<https://memobase.ch/digital/mav-001-03-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:Bac80e07fX2Dc782X2D4256X2Db276X2Ddcbc5d4d5b06 .
<https://memobase.ch/digital/mav-001-03-1> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:Bda3f076bX2D7e8fX2D4724X2Da6a5X2Dfab972df29c8 .
<https://memobase.ch/digital/mav-001-03-1> <https://www.ica.org/standards/RiC/ontology#type> "digitalObject" .
<https://memobase.ch/digital/mav-001-03-1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Instantiation> .
_:Bda3f076bX2D7e8fX2D4724X2Da6a5X2Dfab972df29c8 <https://www.ica.org/standards/RiC/ontology#identifier> "mav-001-03-1" .
_:Bda3f076bX2D7e8fX2D4724X2Da6a5X2Dfab972df29c8 <https://www.ica.org/standards/RiC/ontology#type> "main" .
_:Bda3f076bX2D7e8fX2D4724X2Da6a5X2Dfab972df29c8 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Identifier> .
\ No newline at end of file
from rdflib import Graph
if __name__ == '__main__':
g = Graph()
g.parse(source="input.nt", format='nt')
g.serialize("output.ttl", "ttl")
\ No newline at end of file
@prefix ns1: <http://purl.org/dc/terms/> .
@prefix ns2: <https://www.ica.org/standards/RiC/ontology#> .
@prefix ns3: <http://schema.org/> .
@prefix ns4: <http://rdaregistry.info/Elements/u/> .
@prefix ns5: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#> .
@prefix ns6: <http://www.w3.org/2004/02/skos/core#> .
@prefix ns7: <https://memobase.ch/internal/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<https://memobase.ch/physical/mav-001-03-1> a ns2:Instantiation ;
ns4:P60558 "color" ;
ns5:duration "00:00:03" ;
ns2:hasDerivedInstantiation <https://memobase.ch/digital/mav-001-03-1> ;
ns2:identifiedBy [ a ns2:Identifier ;
ns2:identifier "c" ;
ns2:type "callNumber" ],
[ a ns2:Identifier ;
ns2:identifier "mav-001-03-1" ;
ns2:type "main" ] ;
ns2:instantiates <https://memobase.ch/record/mav-001-03> ;
ns2:physicalCharacteristics "Tech Bemerkung <br> weiteres" ;
ns2:regulatedBy [ a ns2:Rule ;
ns3:sameAs "http://rightsstatements.org/vocab/InC-EDU/1.0/" ;
ns2:name "In Copyright - Educational Use Permitted (InC-EDU)" ;
ns2:regulates <https://memobase.ch/physical/mav-001-03-1> ;
ns2:type "usage" ] ;
ns2:type "physicalObject" .
<https://memobase.ch/digital/mav-001-03-1> a ns2:Instantiation ;
ns2:identifiedBy [ a ns2:Identifier ;
ns2:identifier "mav-001-03-1" ;
ns2:type "main" ] ;
ns2:instantiates <https://memobase.ch/record/mav-001-03> ;
ns2:isDerivedFromInstantiation <https://memobase.ch/physical/mav-001-03-1> ;
ns2:regulatedBy [ a ns2:Rule ;
ns2:name "faro" ;
ns2:regulates <https://memobase.ch/digital/mav-001-03-1> ;
ns2:type "access" ],
[ a ns2:Rule ;
ns3:sameAs "http://rightsstatements.org/vocab/NoC-NC/1.0/" ;
ns2:name "No Copyright - non commercial re-use only (NoC-NC)" ;
ns2:regulates <https://memobase.ch/digital/mav-001-03-1> ;
ns2:type "usage" ] ;
ns2:type "digitalObject" .
<https://memobase.ch/record/mav-001-03> a ns2:Record ;
ns1:abstract "Beschreibung <br> und vieles mehr" ;
ns1:issued [ a ns2:DateSet ;
ns2:expressedDate "1999" ] ;
ns1:relation "Verwandtes Material <br> und weiteres" ;
ns1:spatial [ a ns2:Place ;
ns2:name "Ort unbekannt" ] ;
ns4:P60441 [ a ns2:CorporateBody ;
ns2:name "Producer known; Producer wellknown" ] ;
ns4:P60451 <https://memobase.ch/institution/mrv> ;
ns4:P60556 [ a ns2:Place ;
ns2:name "Lenzburg, AG (Schweiz)" ] ;
ns3:sameAs "https://www.recherche.bar.admin.ch/recherche/#/de/suche/archivplan/21690330" ;
ns5:hasGenre [ a ns6:Concept ;
ns6:prefLabel "Dokumentarfilm" ] ;
ns7:isPublished true ;
ns2:conditionsOfUse "Nutzungsrechte <br> und weiteres" ;
ns2:descriptiveNote "Bemerkung <br> weiteres" ;
ns2:hasInstantiation <https://memobase.ch/digital/mav-001-03-1>,
<https://memobase.ch/physical/mav-001-03-1> ;
ns2:hasLanguage [ a ns2:Language ;
ns2:name "Tedesco" ;
ns2:type "caption" ] ;
ns2:hasSubject [ a ns2:Agent ;
ns2:name "General Guisan, Tschingis, Karate Kid" ],
[ a ns6:Concept ;
ns6:prefLabel "Maus" ],
[ a ns2:Person ;
ns2:name "Henri, Guisan" ] ;
ns2:hasTitle [ a ns2:Title ;
ns2:title "Titel Radio 03" ;
ns2:type "main" ],
[ a ns2:Title ;
ns2:title "Titel Radio" ;
ns2:type "series" ],
[ a ns2:Title ;
ns2:title "Titel Radio vom 1999" ;
ns2:type "broadcast" ] ;
ns2:heldBy <https://memobase.ch/institution/mav> ;
ns2:identifiedBy [ a ns2:Identifier ;
ns2:identifier "03" ;
ns2:type "original" ],
[ a ns2:Identifier ;
ns2:identifier "memoriav-03" ;
ns2:type "oldMemobase" ],
[ a ns2:Identifier ;
ns2:identifier "mav-001-03" ;
ns2:type "main" ] ;
ns2:isPartOf <https://memobase.ch/recordSet/mav-001> ;
ns2:publishedBy [ a ns2:Agent ;
ns2:name "Fantasie Verlag 123; Printerest" ],
[ a ns2:Person ;
ns2:name "Peter, Bichsel" ] ;
ns2:recordResourceOrInstantiationIsSourceOfCreationRelation _:N3e4dad5e180c41bc80eed76adc1b1ae8,
_:N4556663f4c2f4ae6948f0888d5fd499f,
_:Nd08ad9529f844f8b81b55135b1ac1d7a ;
ns2:regulatedBy [ a ns2:Rule ;
ns2:name "Rechteinhaber <br> und weiteres" ;
ns2:regulates <https://memobase.ch/record/mav-001-03> ;
ns2:type "holder" ] ;
ns2:scopeAndContent "Entstehungsumstände <br> und weiteres" ;
ns2:source "Quelle y<br> und weiteres" ;
ns2:title "Titel Radio 03" ;
ns2:type "Radio" .
_:N1a7978a817444f4887ec8c36cd7ca24b a ns2:Person ;
ns2:agentIsTargetOfCreationRelation _:N3e4dad5e180c41bc80eed76adc1b1ae8 ;
ns2:name "Ruth, Dreifuss" .
_:N2a3ca14221934fc5b79fb764e2ea0d1f a ns2:Agent ;
ns2:agentIsTargetOfCreationRelation _:Nd08ad9529f844f8b81b55135b1ac1d7a ;
ns2:name "DJ Bobo; Yello" .
_:Nc2e8758d1f2747a2af9a913a2192d6f6 a ns2:CorporateBody ;
ns2:agentIsTargetOfCreationRelation _:N4556663f4c2f4ae6948f0888d5fd499f ;
ns2:name "Die Post" .
_:N3e4dad5e180c41bc80eed76adc1b1ae8 a ns2:CreationRelation ;
ns2:creationRelationHasSource <https://memobase.ch/record/mav-001-03> ;
ns2:creationRelationHasTarget _:N1a7978a817444f4887ec8c36cd7ca24b ;
ns2:type "creator" .
_:N4556663f4c2f4ae6948f0888d5fd499f a ns2:CreationRelation ;
ns2:creationRelationHasSource <https://memobase.ch/record/mav-001-03> ;
ns2:creationRelationHasTarget _:Nc2e8758d1f2747a2af9a913a2192d6f6 ;
ns2:type "creator" .
_:Nd08ad9529f844f8b81b55135b1ac1d7a a ns2:CreationRelation ;
ns2:creationRelationHasSource <https://memobase.ch/record/mav-001-03> ;
ns2:creationRelationHasTarget _:N2a3ca14221934fc5b79fb764e2ea0d1f ;
ns2:type "contributor" .
## Normalization Reports Script
This utility tool can be used to parse normalization reports for missing genre & language values.
Creates a per RecordSet dictionary.
\ No newline at end of file
{
"mfk-001": {
"genre": [],
"language": [
"englisch"
],
"carrier": []
},
"bvc-002": {
"genre": [
"Architecture",
"Architecture; Paysage",
"Architecture; Portrait",
"Arts",
"Paysage"
],
"language": [],
"carrier": [
"Autochrome",
"Autochrome monté sur diapositif",
"Autochrome sur support de verre",
"Négatif au gélatino-bromure d'argent sur support de verre",
"Négatif souple",
"Négatif sur support souple",
"Positif au gélatino-bromure d'argent sur support de verre",
"Positif colorisé ou autochrome (?) sur support de verre",
"Positif couleur",
"Positif sur support de verre",
"Prétirage photographique sur papier",
"Tirage photographique sur papier"
]
},
"srf-005": {
"genre": [],
"language": [],