Commit 558e0eda authored by Jonas Waeber's avatar Jonas Waeber

Fix language translations and other statements added.

parent da003e23
Pipeline #16568 passed with stages
in 5 minutes and 27 seconds
......@@ -123,9 +123,10 @@ class KafkaTopology(
private fun transformations(key: String, input: PreparedInput): Pair<Report, Model> {
val transforms = globalTransforms + input.localTransforms.get()
val listOfResources = input.model.listRicoResourceSubjects()
val result = transforms.map { transformer ->
input.model.listRicoResourceSubjects().map { resource ->
listOfResources.map { resource ->
transformer.transform(resource, input.model)
}.toList().flatten()
}.flatten()
......@@ -142,7 +143,7 @@ class KafkaTopology(
private fun writeModel(data: Model): String {
val out = StringWriter()
data.write(out, "NTRIPLES")
RDFDataMgr.write(out, data, Lang.NTRIPLES)
return out.toString().trim()
}
......
......@@ -128,11 +128,11 @@ class TestIntegration {
}
private fun kafkaTests() = Stream.of(
KafkaTestParams(
/*KafkaTestParams(
1,
"placeholder",
Report("placeholder", "SUCCESS", "Normalization was successful.")
)/*,
),
KafkaTestParams(
2,
"placeholder",
......@@ -152,12 +152,12 @@ class TestIntegration {
4,
"placeholder",
Report("placeholder", "SUCCESS", "Normalization was successful.")
),
),*/
KafkaTestParams(
5,
"placeholder",
Report("placeholder", "FAILURE", "Could not map the following language value: deutsch.")
),
Report("placeholder", "SUCCESS", "Normalization was successful.")
)/*,
KafkaTestParams(
6,
"placeholder",
......
......@@ -10,7 +10,7 @@ _:Bec8a5437X2De237X2D47bbX2Dab08X2D33057dd338b9 <https://www.ica.org/standards/R
_:Bec8a5437X2De237X2D47bbX2Dab08X2D33057dd338b9 <https://www.ica.org/standards/RiC/ontology#name> "Cinémathèque suisse, Schweizerisches Bundesarchiv" .
_:Bec8a5437X2De237X2D47bbX2Dab08X2D33057dd338b9 <https://www.ica.org/standards/RiC/ontology#type> "holder" .
_:Bec8a5437X2De237X2D47bbX2Dab08X2D33057dd338b9 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Rule> .
_:Bf76f82ceX2Da33dX2D4ff6X2D951eX2Db1fa87511827 <https://www.ica.org/standards/RiC/ontology#name> "deutsch"@de .
_:Bf76f82ceX2Da33dX2D4ff6X2D951eX2Db1fa87511827 <https://www.ica.org/standards/RiC/ontology#name> "dt"@de .
_:Bf76f82ceX2Da33dX2D4ff6X2D951eX2Db1fa87511827 <https://www.ica.org/standards/RiC/ontology#type> "content" .
_:Bf76f82ceX2Da33dX2D4ff6X2D951eX2Db1fa87511827 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Language> .
_:B330fb77aX2D9d57X2D4998X2D8d47X2Dc6dbae27f1d8 <https://www.ica.org/standards/RiC/ontology#name> "Seedorf, UR (Schweiz)"@de .
......
......@@ -24,11 +24,13 @@
<https://memobase.ch/record/sfw-SFW_1376-2> <http://rdaregistry.info/Elements/u/P60556> _:B .
<https://memobase.ch/record/sfw-SFW_1376-2> <http://schema.org/sameAs> "https://www.recherche.bar.admin.ch/recherche/#/de/suche/archivplan/21689176" .
<https://memobase.ch/record/sfw-SFW_1376-2> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#hasGenre> _:B .
<https://memobase.ch/record/sfw-SFW_1376-2> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#hasGenre> _:B .
<https://memobase.ch/record/sfw-SFW_1376-2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Record> .
<https://memobase.ch/record/sfw-SFW_1376-2> <https://www.ica.org/standards/RiC/ontology#descriptiveNote> "Quellenangabe für Zitate und Publikationen: <br> Schweizerisches Bundesarchiv, J2.143#1996/386#1376-1#2*, Schweizer Filmwochenschau vom 19.09.1969, Klosterfrauen treiben Agrarkultur (1376-2)"@de .
<https://memobase.ch/record/sfw-SFW_1376-2> <https://www.ica.org/standards/RiC/ontology#hasInstantiation> <https://memobase.ch/instantiation/digital/sfw-SFW_1376-2-1> .
<https://memobase.ch/record/sfw-SFW_1376-2> <https://www.ica.org/standards/RiC/ontology#hasInstantiation> <https://memobase.ch/instantiation/physical/sfw-SFW_1376-2-0> .
<https://memobase.ch/record/sfw-SFW_1376-2> <https://www.ica.org/standards/RiC/ontology#hasLanguage> _:B .
<https://memobase.ch/record/sfw-SFW_1376-2> <https://www.ica.org/standards/RiC/ontology#hasLanguage> _:B .
<https://memobase.ch/record/sfw-SFW_1376-2> <https://www.ica.org/standards/RiC/ontology#hasSubject> _:B .
<https://memobase.ch/record/sfw-SFW_1376-2> <https://www.ica.org/standards/RiC/ontology#hasSubject> _:B .
<https://memobase.ch/record/sfw-SFW_1376-2> <https://www.ica.org/standards/RiC/ontology#hasTitle> _:B .
......@@ -44,10 +46,14 @@
<https://memobase.ch/record/sfw-SFW_1376-2> <https://www.ica.org/standards/RiC/ontology#title> "Klosterfrauen treiben Agrarkultur (1376-2)"@de .
<https://memobase.ch/record/sfw-SFW_1376-2> <https://www.ica.org/standards/RiC/ontology#type> "Film" .
_:B <http://schema.org/sameAs> "http://rightsstatements.org/vocab/InC/1.0/" .
_:B <http://schema.org/sameAs> "http://www.wikidata.org/entity/Q188" .
_:B <http://schema.org/sameAs> "http://www.wikidata.org/entity/Q226528" .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Activity> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Activity> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Activity> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#CarrierType> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#CarrierType> .
......@@ -62,6 +68,9 @@ _:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/stand
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Identifier> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Identifier> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Language> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Language> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Mechanism> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Mechanism> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Mechanism> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Place> .
_:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Place> .
......@@ -74,14 +83,22 @@ _:B <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/stand
_:B <http://www.w3.org/2004/02/skos/core#editorialNote> "Ursprungsfeld: Deskriptoren" .
_:B <http://www.w3.org/2004/02/skos/core#editorialNote> "Ursprungsfeld: Deskriptoren" .
_:B <http://www.w3.org/2004/02/skos/core#editorialNote> "Ursprungsfeld: Genre" .
_:B <http://www.w3.org/2004/02/skos/core#editorialNote> "Ursprungsfeld: Genre" .
_:B <http://www.w3.org/2004/02/skos/core#prefLabel> "Filmwochenschau"@de .
_:B <http://www.w3.org/2004/02/skos/core#prefLabel> "Filmwochenschau"@de .
_:B <http://www.w3.org/2004/02/skos/core#prefLabel> "Filmwochenschau"@fr .
_:B <http://www.w3.org/2004/02/skos/core#prefLabel> "Filmwochenschau"@it .
_:B <http://www.w3.org/2004/02/skos/core#prefLabel> "LANDWIRTSCHAFT, LANDWIRTSCHAFT"@de .
_:B <http://www.w3.org/2004/02/skos/core#prefLabel> "RELIGION, CHRISTLICHE KIRCHE, ORDENSGEMEINSCHAFT"@de .
_:B <https://www.ica.org/standards/RiC/ontology#agentIsTargetOfCreationRelation> _:B .
_:B <https://www.ica.org/standards/RiC/ontology#beginningDate> "2020-10-10T09:10:22+0000"^^<http://www.w3.org/2001/XMLSchema#dateTime> .
_:B <https://www.ica.org/standards/RiC/ontology#beginningDate> "2020-10-10T09:10:22+0000"^^<http://www.w3.org/2001/XMLSchema#dateTime> .
_:B <https://www.ica.org/standards/RiC/ontology#beginningDate> "2020-10-10T09:10:22+0000"^^<http://www.w3.org/2001/XMLSchema#dateTime> .
_:B <https://www.ica.org/standards/RiC/ontology#creationRelationHasSource> <https://memobase.ch/record/sfw-SFW_1376-2> .
_:B <https://www.ica.org/standards/RiC/ontology#creationRelationHasTarget> _:B .
_:B <https://www.ica.org/standards/RiC/ontology#endDate> "2020-10-10T09:10:22+0000"^^<http://www.w3.org/2001/XMLSchema#dateTime> .
_:B <https://www.ica.org/standards/RiC/ontology#endDate> "2020-10-10T09:10:22+0000"^^<http://www.w3.org/2001/XMLSchema#dateTime> .
_:B <https://www.ica.org/standards/RiC/ontology#endDate> "2020-10-10T09:10:22+0000"^^<http://www.w3.org/2001/XMLSchema#dateTime> .
_:B <https://www.ica.org/standards/RiC/ontology#expressedDate> "25465" .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "J2.143#1996/386#1376-1#2*" .
_:B <https://www.ica.org/standards/RiC/ontology#identifier> "SFW_1376-2" .
......@@ -94,21 +111,34 @@ _:B <https://www.ica.org/standards/RiC/ontology#name> "35mm Zelluloseazetat"@de
_:B <https://www.ica.org/standards/RiC/ontology#name> "Autor" .
_:B <https://www.ica.org/standards/RiC/ontology#name> "CarrierTypeNormalizer" .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Cinémathèque suisse, Schweizerisches Bundesarchiv" .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Deutsch"@de .
_:B <https://www.ica.org/standards/RiC/ontology#name> "GenreNormalizer" .
_:B <https://www.ica.org/standards/RiC/ontology#name> "In Copyright (InC)" .
_:B <https://www.ica.org/standards/RiC/ontology#name> "LanguagesNormalizer" .
_:B <https://www.ica.org/standards/RiC/ontology#name> "SFW"@de .
_:B <https://www.ica.org/standards/RiC/ontology#name> "SFW"@de .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Schweizer Filmwochenschau (SFW)"@de .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Seedorf, UR (Schweiz)"@de .
_:B <https://www.ica.org/standards/RiC/ontology#name> "Westeuropa"@de .
_:B <https://www.ica.org/standards/RiC/ontology#name> "deutsch"@de .
_:B <https://www.ica.org/standards/RiC/ontology#name> "allemand"@fr .
_:B <https://www.ica.org/standards/RiC/ontology#name> "dt"@de .
_:B <https://www.ica.org/standards/RiC/ontology#name> "format 35 mm"@fr .
_:B <https://www.ica.org/standards/RiC/ontology#name> "public" .
_:B <https://www.ica.org/standards/RiC/ontology#name> "tedesco"@it .
_:B <https://www.ica.org/standards/RiC/ontology#performedBy> _:B .
_:B <https://www.ica.org/standards/RiC/ontology#performedBy> _:B .
_:B <https://www.ica.org/standards/RiC/ontology#performedBy> _:B .
_:B <https://www.ica.org/standards/RiC/ontology#performs> _:B .
_:B <https://www.ica.org/standards/RiC/ontology#performs> _:B .
_:B <https://www.ica.org/standards/RiC/ontology#performs> _:B .
_:B <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/instantiation/digital/sfw-SFW_1376-2-1> .
_:B <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/instantiation/digital/sfw-SFW_1376-2-1> .
_:B <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/record/sfw-SFW_1376-2> .
_:B <https://www.ica.org/standards/RiC/ontology#resultsFrom> _:B .
_:B <https://www.ica.org/standards/RiC/ontology#resultsFrom> _:B .
_:B <https://www.ica.org/standards/RiC/ontology#resultsFrom> _:B .
_:B <https://www.ica.org/standards/RiC/ontology#resultsIn> _:B .
_:B <https://www.ica.org/standards/RiC/ontology#resultsIn> _:B .
_:B <https://www.ica.org/standards/RiC/ontology#resultsIn> _:B .
_:B <https://www.ica.org/standards/RiC/ontology#title> "Klosterfrauen treiben Agrarkultur (1376-2)"@de .
_:B <https://www.ica.org/standards/RiC/ontology#title> "Schweizer Filmwochenschau vom 19.09.1969"@de .
......@@ -117,8 +147,11 @@ _:B <https://www.ica.org/standards/RiC/ontology#type> "access" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "broadcast" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "callNumber" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "content" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "content" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "creator" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "enrichment" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "enrichment" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "enrichment" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "holder" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "main" .
_:B <https://www.ica.org/standards/RiC/ontology#type> "main" .
......
......@@ -22,16 +22,27 @@
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
_:b0 a rico:CarrierType ;
schema:sameAs "http://www.wikidata.org/entity/Q226528" ;
rico:name "35-mm-Film"@de , "format 35 mm"@fr , "35 millimetri"@it ;
rico:resultsFrom _:b1 .
_:b0 a rico:Language ;
schema:sameAs "http://www.wikidata.org/entity/Q188" ;
rico:name "Deutsch"@de , "allemand"@fr , "tedesco"@it ;
rico:resultsFrom _:b1 ;
rico:type "content" .
_:b1 a rico:Activity ;
rico:beginningDate "2020-01-03T16:01:25+0000"^^xsd:dateTime ;
rico:endDate "2020-01-03T16:01:25+0000"^^xsd:dateTime ;
rico:performedBy [ a rico:Mechanism ;
rico:name "LanguagesNormalizer" ;
rico:performs _:b1
] ;
rico:resultsIn _:b0 ;
rico:type "enrichment" .
<https://memobase.ch/instantiation/physical/sfw-SFW_1376-2-0>
a rico:Instantiation ;
rdau:P60558 "SW"@de ;
ebucore:duration "78" ;
rico:hasCarrierType _:b0 ;
rico:hasCarrierType _:b2 ;
rico:hasCarrierType [ a rico:CarrierType ;
rico:name "35mm Zelluloseazetat"@de
] ;
......@@ -47,16 +58,36 @@ _:b0 a rico:CarrierType ;
rico:instantiates mbr:sfw-SFW_1376-2 ;
rico:type "physicalObject" .
_:b2 a rico:CreationRelation ;
_:b3 a rico:CreationRelation ;
rico:creationRelationHasSource mbr:sfw-SFW_1376-2 ;
rico:creationRelationHasTarget [ a rico:CorporateBody ;
rico:agentIsTargetOfCreationRelation
_:b2 ;
_:b3 ;
rico:name "Schweizer Filmwochenschau (SFW)"@de
] ;
rico:name "Autor" ;
rico:type "creator" .
_:b4 a rico:Activity ;
rico:beginningDate "2020-01-03T16:01:25+0000"^^xsd:dateTime ;
rico:endDate "2020-01-03T16:01:25+0000"^^xsd:dateTime ;
rico:performedBy [ a rico:Mechanism ;
rico:name "GenreNormalizer" ;
rico:performs _:b4
] ;
rico:resultsIn _:b5 ;
rico:type "enrichment" .
_:b2 a rico:CarrierType ;
schema:sameAs "http://www.wikidata.org/entity/Q226528" ;
rico:name "35-mm-Film"@de , "format 35 mm"@fr , "35 millimetri"@it ;
rico:resultsFrom _:b6 .
_:b5 a skos:Concept ;
skos:editorialNote "Ursprungsfeld: Genre" ;
skos:prefLabel "Filmwochenschau"@de , "Filmwochenschau"@fr , "Filmwochenschau"@it ;
rico:resultsFrom _:b4 .
<https://memobase.ch/instantiation/digital/sfw-SFW_1376-2-1>
a rico:Instantiation ;
ebucore:locator "<![CDATA[https://media.zem.ch/01WS/1969/SFW_1376.mp4?start=109&end=187]]>" ;
......@@ -80,14 +111,14 @@ _:b2 a rico:CreationRelation ;
] ;
rico:type "digitalObject" .
_:b1 a rico:Activity ;
rico:beginningDate "2020-48-29T08:48:31+0000"^^xsd:dateTime ;
rico:endDate "2020-48-29T08:48:31+0000"^^xsd:dateTime ;
_:b6 a rico:Activity ;
rico:beginningDate "2020-01-03T16:01:25+0000"^^xsd:dateTime ;
rico:endDate "2020-01-03T16:01:25+0000"^^xsd:dateTime ;
rico:performedBy [ a rico:Mechanism ;
rico:name "CarrierTypeNormalizer" ;
rico:performs _:b1
rico:performs _:b6
] ;
rico:resultsIn _:b0 ;
rico:resultsIn _:b2 ;
rico:type "enrichment" .
mbr:sfw-SFW_1376-2 a rico:Record ;
......@@ -106,14 +137,16 @@ mbr:sfw-SFW_1376-2 a rico:Record ;
rico:name "Seedorf, UR (Schweiz)"@de
] ;
schema:sameAs "https://www.recherche.bar.admin.ch/recherche/#/de/suche/archivplan/21689176" ;
ebucore:hasGenre _:b5 ;
ebucore:hasGenre [ a skos:Concept ;
skos:editorialNote "Ursprungsfeld: Genre" ;
skos:prefLabel "Filmwochenschau"@de
] ;
rico:descriptiveNote "Quellenangabe für Zitate und Publikationen: <br> Schweizerisches Bundesarchiv, J2.143#1996/386#1376-1#2*, Schweizer Filmwochenschau vom 19.09.1969, Klosterfrauen treiben Agrarkultur (1376-2)"@de ;
rico:hasInstantiation <https://memobase.ch/instantiation/digital/sfw-SFW_1376-2-1> , <https://memobase.ch/instantiation/physical/sfw-SFW_1376-2-0> ;
rico:hasLanguage _:b0 ;
rico:hasLanguage [ a rico:Language ;
rico:name "deutsch"@de ;
rico:name "dt"@de ;
rico:type "content"
] ;
rico:hasSubject [ a skos:Concept ;
......@@ -125,32 +158,32 @@ mbr:sfw-SFW_1376-2 a rico:Record ;
skos:prefLabel "LANDWIRTSCHAFT, LANDWIRTSCHAFT"@de
] ;
rico:hasTitle [ a rico:Title ;
rico:title "Klosterfrauen treiben Agrarkultur (1376-2)"@de ;
rico:type "main"
rico:title "Schweizer Filmwochenschau vom 19.09.1969"@de ;
rico:type "broadcast"
] ;
rico:hasTitle [ a rico:Title ;
rico:title "Schweizer Filmwochenschau"@de ;
rico:type "series"
] ;
rico:hasTitle [ a rico:Title ;
rico:title "Schweizer Filmwochenschau vom 19.09.1969"@de ;
rico:type "broadcast"
rico:title "Klosterfrauen treiben Agrarkultur (1376-2)"@de ;
rico:type "main"
] ;
rico:heldBy mbcb:sfw ;
rico:identifiedBy [ a rico:Identifier ;
rico:identifier "SFW_1376-2" ;
rico:type "original"
] ;
rico:identifiedBy [ a rico:Identifier ;
rico:identifier "https://memobase.ch/record/sfw-SFW_1376-2" ;
rico:type "main"
] ;
rico:identifiedBy [ a rico:Identifier ;
rico:identifier "SFW_1376-2" ;
rico:type "original"
] ;
rico:isPartOf mbrs:fbfws ;
rico:publishedBy [ a rico:CorporateBody ;
rico:name "SFW"@de
] ;
rico:recordResourceOrInstantiationIsSourceOfCreationRelation
_:b2 ;
_:b3 ;
rico:regulatedBy [ a rico:Rule ;
rico:name "Cinémathèque suisse, Schweizerisches Bundesarchiv" ;
rico:regulates mbr:sfw-SFW_1376-2 ;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment