Due to a scheduled upgrade to version 14.10, GitLab will be unavailabe on Monday 30.05., from 19:00 until 20:00.

Commit e0302c78 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

[WIP] Fixes for youtube / vimea

parent ada2c2ea
Pipeline #16421 failed with stages
in 2 minutes and 7 seconds
......@@ -120,7 +120,7 @@ class KafkaTopology(private val settings: SettingsLoader) {
private fun fetchThumbnailForYoutubeOrVimeoFile(value: Triple<Pair<Model, HeaderMetadata>, List<Resource>, Report>): Triple<Pair<Model, HeaderMetadata>, List<Resource>, Report> {
if (noThumbnailAttached(value.second)) {
val record = value.second.firstOrNull { it.hasProperty(RDF.type, RICO.Record) }
val digitalObject = value.second.firstOrNull { it.hasProperty(RDF.type, Constant.digitalObject) }
val digitalObject = value.second.firstOrNull { it.hasProperty(RICO.type, Constant.digitalObject) }
if (record != null && digitalObject != null) {
val locator = digitalObject.getProperty(EBUCORE.locator).string
when {
......
......@@ -162,7 +162,7 @@ class TestKafkaTopology {
}
private fun testParams() = Stream.of(
TestParams(
/*TestParams(
1,
"test1.yml",
"https://memobase.ch/record/test-institution-id-MEI_49884",
......@@ -179,6 +179,12 @@ class TestKafkaTopology {
"test1.yml",
"https://memobase.ch/record/Tanzarchiv-42858-43349",
"https://memobase.ch/record/Tanzarchiv-42858-43349"
),*/
TestParams(
5,
"test1.yml",
"https://memobase.ch/record/Tanzarchiv-42858-43349",
"https://memobase.ch/record/Tanzarchiv-42858-43349"
)
)
}
_:Bc9c6c9c7X2Dc819X2D4a13X2D94f7X2D6d49223e186d <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/record/IFRC-FILM-No_ID_211> .
_:Bc9c6c9c7X2Dc819X2D4a13X2D94f7X2D6d49223e186d <https://www.ica.org/standards/RiC/ontology#name> "La Fédération internationale des Sociétés de la Croix-Rouge et du Croissant-Rouge" .
_:Bc9c6c9c7X2Dc819X2D4a13X2D94f7X2D6d49223e186d <https://www.ica.org/standards/RiC/ontology#type> "holder" .
_:Bc9c6c9c7X2Dc819X2D4a13X2D94f7X2D6d49223e186d <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Rule> .
_:B966372b2X2Daa71X2D4125X2Dabc0X2Daad1dd8d8b0c <https://www.ica.org/standards/RiC/ontology#title> "Messages (Red Cross messages from Child Alive)" .
_:B966372b2X2Daa71X2D4125X2Dabc0X2Daad1dd8d8b0c <https://www.ica.org/standards/RiC/ontology#type> "main" .
_:B966372b2X2Daa71X2D4125X2Dabc0X2Daad1dd8d8b0c <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Title> .
_:B983702edX2D6066X2D4183X2D8223X2D0330906c69c9 <https://www.ica.org/standards/RiC/ontology#creationRelationHasTarget> _:B9e4d8b27X2D7d9bX2D422fX2D86aeX2Db7ee1cd74ab6 .
_:B983702edX2D6066X2D4183X2D8223X2D0330906c69c9 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#CreationRelation> .
_:B983702edX2D6066X2D4183X2D8223X2D0330906c69c9 <https://www.ica.org/standards/RiC/ontology#creationRelationHasSource> <https://memobase.ch/record/IFRC-FILM-No_ID_211> .
_:B983702edX2D6066X2D4183X2D8223X2D0330906c69c9 <https://www.ica.org/standards/RiC/ontology#name> "Author" .
_:B983702edX2D6066X2D4183X2D8223X2D0330906c69c9 <https://www.ica.org/standards/RiC/ontology#type> "creator" .
_:Bb3d65e2cX2Dd681X2D4e22X2D82eeX2D0bba866b0496 <https://www.ica.org/standards/RiC/ontology#identifier> "IFRC-No_ID_211" .
_:Bb3d65e2cX2Dd681X2D4e22X2D82eeX2D0bba866b0496 <https://www.ica.org/standards/RiC/ontology#type> "oldMemobase" .
_:Bb3d65e2cX2Dd681X2D4e22X2D82eeX2D0bba866b0496 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Identifier> .
_:Bb309ffb0X2D8f92X2D4362X2D9519X2D56375a4dba77 <https://www.ica.org/standards/RiC/ontology#name> "arabe" .
_:Bb309ffb0X2D8f92X2D4362X2D9519X2D56375a4dba77 <https://www.ica.org/standards/RiC/ontology#type> "content" .
_:Bb309ffb0X2D8f92X2D4362X2D9519X2D56375a4dba77 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Language> .
_:B3cadd866X2D4819X2D4ab7X2D9565X2Db02ffd3f9f03 <https://www.ica.org/standards/RiC/ontology#identifier> "IFRC-FILM-No_ID_211" .
_:B3cadd866X2D4819X2D4ab7X2D9565X2Db02ffd3f9f03 <https://www.ica.org/standards/RiC/ontology#type> "main" .
_:B3cadd866X2D4819X2D4ab7X2D9565X2Db02ffd3f9f03 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Identifier> .
_:B9e4d8b27X2D7d9bX2D422fX2D86aeX2Db7ee1cd74ab6 <https://www.ica.org/standards/RiC/ontology#name> "[aucune information]" .
_:B9e4d8b27X2D7d9bX2D422fX2D86aeX2Db7ee1cd74ab6 <https://www.ica.org/standards/RiC/ontology#agentIsTargetOfCreationRelation> _:B983702edX2D6066X2D4183X2D8223X2D0330906c69c9 .
_:B9e4d8b27X2D7d9bX2D422fX2D86aeX2Db7ee1cd74ab6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Person> .
<https://memobase.ch/record/IFRC-FILM-No_ID_211> <https://www.ica.org/standards/RiC/ontology#hasTitle> _:B966372b2X2Daa71X2D4125X2Dabc0X2Daad1dd8d8b0c .
<https://memobase.ch/record/IFRC-FILM-No_ID_211> <https://www.ica.org/standards/RiC/ontology#hasLanguage> _:Bb309ffb0X2D8f92X2D4362X2D9519X2D56375a4dba77 .
<https://memobase.ch/record/IFRC-FILM-No_ID_211> <https://www.ica.org/standards/RiC/ontology#heldBy> <https://memobase.ch/institution/IFRC> .
<https://memobase.ch/record/IFRC-FILM-No_ID_211> <https://www.ica.org/standards/RiC/ontology#conditionsOfUse> "Visualiser le film. Pour télécharger le film, contacter Archives.contact@ifrc.org" .
<https://memobase.ch/record/IFRC-FILM-No_ID_211> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:Bc9c6c9c7X2Dc819X2D4a13X2D94f7X2D6d49223e186d .
<https://memobase.ch/record/IFRC-FILM-No_ID_211> <https://www.ica.org/standards/RiC/ontology#isPartOf> <https://memobase.ch/recordSet/IFRC-FILM> .
<https://memobase.ch/record/IFRC-FILM-No_ID_211> <https://www.ica.org/standards/RiC/ontology#type> "Video" .
<https://memobase.ch/record/IFRC-FILM-No_ID_211> <https://www.ica.org/standards/RiC/ontology#hasInstantiation> <https://memobase.ch/physical/IFRC-FILM-No_ID_211-1> .
<https://memobase.ch/record/IFRC-FILM-No_ID_211> <http://purl.org/dc/terms/created> _:B27d05e14X2D3139X2D4a45X2DbedfX2D62bb75c8c326 .
<https://memobase.ch/record/IFRC-FILM-No_ID_211> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B3cadd866X2D4819X2D4ab7X2D9565X2Db02ffd3f9f03 .
<https://memobase.ch/record/IFRC-FILM-No_ID_211> <http://purl.org/dc/terms/abstract> "Le film montre des projets de santé de Child Alive au Bangladesh, en Colombie, au Honduras, en Sierra Leone et dans d'autres pays" .
<https://memobase.ch/record/IFRC-FILM-No_ID_211> <https://www.ica.org/standards/RiC/ontology#title> "Messages (Red Cross messages from Child Alive)" .
<https://memobase.ch/record/IFRC-FILM-No_ID_211> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B6840e923X2D13d5X2D461dX2D8c8bX2D995c74b3c35e .
<https://memobase.ch/record/IFRC-FILM-No_ID_211> <https://www.ica.org/standards/RiC/ontology#publishedBy> _:B8ce5d3a1X2D918aX2D4154X2Db330X2D13c264aef046 .
<https://memobase.ch/record/IFRC-FILM-No_ID_211> <https://www.ica.org/standards/RiC/ontology#hasInstantiation> <https://memobase.ch/digital/IFRC-FILM-No_ID_211-1> .
<https://memobase.ch/record/IFRC-FILM-No_ID_211> <http://memobase.ch/internal/isPublished> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<https://memobase.ch/record/IFRC-FILM-No_ID_211> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:Bb3d65e2cX2Dd681X2D4e22X2D82eeX2D0bba866b0496 .
<https://memobase.ch/record/IFRC-FILM-No_ID_211> <http://rdaregistry.info/Elements/u/P60451> <https://memobase.ch/institution/mrv> .
<https://memobase.ch/record/IFRC-FILM-No_ID_211> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Record> .
<https://memobase.ch/record/IFRC-FILM-No_ID_211> <https://www.ica.org/standards/RiC/ontology#scopeAndContent> "pas soutenu par Memoriav" .
<https://memobase.ch/record/IFRC-FILM-No_ID_211> <https://www.ica.org/standards/RiC/ontology#recordResourceOrInstantiationIsSourceOfCreationRelation> _:B983702edX2D6066X2D4183X2D8223X2D0330906c69c9 .
<https://memobase.ch/record/IFRC-FILM-No_ID_211> <https://www.ica.org/standards/RiC/ontology#hasSubject> _:Bb1ff343aX2Ddd72X2D42d1X2Daa18X2D2e2fd0b024b7 .
_:Bb1ff343aX2Ddd72X2D42d1X2Daa18X2D2e2fd0b024b7 <http://www.w3.org/2004/02/skos/core#prefLabel> "santé" .
_:Bb1ff343aX2Ddd72X2D42d1X2Daa18X2D2e2fd0b024b7 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2004/02/skos/core#Concept> .
_:B6840e923X2D13d5X2D461dX2D8c8bX2D995c74b3c35e <https://www.ica.org/standards/RiC/ontology#identifier> "No_ID_211" .
_:B6840e923X2D13d5X2D461dX2D8c8bX2D995c74b3c35e <https://www.ica.org/standards/RiC/ontology#type> "original" .
_:B6840e923X2D13d5X2D461dX2D8c8bX2D995c74b3c35e <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Identifier> .
_:B27d05e14X2D3139X2D4a45X2DbedfX2D62bb75c8c326 <https://www.ica.org/standards/RiC/ontology#expressedDate> "19871987" .
_:B27d05e14X2D3139X2D4a45X2DbedfX2D62bb75c8c326 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#DateSet> .
_:B8ce5d3a1X2D918aX2D4154X2Db330X2D13c264aef046 <https://www.ica.org/standards/RiC/ontology#name> "La Fédération internationale des Sociétés de la Croix-Rouge et du Croissant-Rouge" .
_:B8ce5d3a1X2D918aX2D4154X2Db330X2D13c264aef046 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#CorporateBody> .
_:B34b568b8X2D9b9cX2D47e4X2Da4dbX2D602801d5f3fb <https://www.ica.org/standards/RiC/ontology#identifier> "IFRC-FILM-No_ID_211-1" .
_:B34b568b8X2D9b9cX2D47e4X2Da4dbX2D602801d5f3fb <https://www.ica.org/standards/RiC/ontology#type> "main" .
_:B34b568b8X2D9b9cX2D47e4X2Da4dbX2D602801d5f3fb <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Identifier> .
_:B3274fb68X2Db957X2D499bX2D8920X2D971402ae6e41 <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/physical/IFRC-FILM-No_ID_211-1> .
_:B3274fb68X2Db957X2D499bX2D8920X2D971402ae6e41 <https://www.ica.org/standards/RiC/ontology#name> "onsite" .
_:B3274fb68X2Db957X2D499bX2D8920X2D971402ae6e41 <https://www.ica.org/standards/RiC/ontology#type> "access" .
_:B3274fb68X2Db957X2D499bX2D8920X2D971402ae6e41 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Rule> .
_:B4ab9782cX2Ddb40X2D45e6X2Dbf3fX2D109f9af9b202 <https://www.ica.org/standards/RiC/ontology#identifier> "MICR 2519" .
_:B4ab9782cX2Ddb40X2D45e6X2Dbf3fX2D109f9af9b202 <https://www.ica.org/standards/RiC/ontology#type> "callNumber" .
_:B4ab9782cX2Ddb40X2D45e6X2Dbf3fX2D109f9af9b202 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Identifier> .
<https://memobase.ch/physical/IFRC-FILM-No_ID_211-1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Instantiation> .
<https://memobase.ch/physical/IFRC-FILM-No_ID_211-1> <https://www.ica.org/standards/RiC/ontology#hasDerivedInstantiation> <https://memobase.ch/digital/IFRC-FILM-No_ID_211-1> .
<https://memobase.ch/physical/IFRC-FILM-No_ID_211-1> <http://rdaregistry.info/Elements/u/P60558> "couleur" .
<https://memobase.ch/physical/IFRC-FILM-No_ID_211-1> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B34b568b8X2D9b9cX2D47e4X2Da4dbX2D602801d5f3fb .
<https://memobase.ch/physical/IFRC-FILM-No_ID_211-1> <https://www.ica.org/standards/RiC/ontology#physicalCharacteristics> "Bemerkung: Retour sur pellicule oui/non: non" .
<https://memobase.ch/physical/IFRC-FILM-No_ID_211-1> <https://www.ica.org/standards/RiC/ontology#instantiates> <https://memobase.ch/record/IFRC-FILM-No_ID_211> .
<https://memobase.ch/physical/IFRC-FILM-No_ID_211-1> <https://www.ica.org/standards/RiC/ontology#type> "physicalObject" .
<https://memobase.ch/physical/IFRC-FILM-No_ID_211-1> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B4ab9782cX2Ddb40X2D45e6X2Dbf3fX2D109f9af9b202 .
<https://memobase.ch/physical/IFRC-FILM-No_ID_211-1> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#duration> "00:27:23" .
<https://memobase.ch/physical/IFRC-FILM-No_ID_211-1> <https://www.ica.org/standards/RiC/ontology#hasCarrierType> _:Bf463fb47X2D4c7fX2D4222X2Da691X2D33509b18a25e .
<https://memobase.ch/physical/IFRC-FILM-No_ID_211-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:B3274fb68X2Db957X2D499bX2D8920X2D971402ae6e41 .
_:Bf463fb47X2D4c7fX2D4222X2Da691X2D33509b18a25e <https://www.ica.org/standards/RiC/ontology#name> "1 inch C" .
_:Bf463fb47X2D4c7fX2D4222X2Da691X2D33509b18a25e <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#CarrierType> .
_:Bbb2be667X2De371X2D448fX2Da8afX2De159c90d309f <https://www.ica.org/standards/RiC/ontology#regulates> <https://memobase.ch/digital/IFRC-FILM-No_ID_211-1> .
_:Bbb2be667X2De371X2D448fX2Da8afX2De159c90d309f <https://www.ica.org/standards/RiC/ontology#name> "public" .
_:Bbb2be667X2De371X2D448fX2Da8afX2De159c90d309f <https://www.ica.org/standards/RiC/ontology#type> "access" .
_:Bbb2be667X2De371X2D448fX2Da8afX2De159c90d309f <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Rule> .
<https://memobase.ch/digital/IFRC-FILM-No_ID_211-1> <https://www.ica.org/standards/RiC/ontology#isDerivedFromInstantiation> <https://memobase.ch/physical/IFRC-FILM-No_ID_211-1> .
<https://memobase.ch/digital/IFRC-FILM-No_ID_211-1> <https://www.ica.org/standards/RiC/ontology#instantiates> <https://memobase.ch/record/IFRC-FILM-No_ID_211> .
<https://memobase.ch/digital/IFRC-FILM-No_ID_211-1> <https://www.ica.org/standards/RiC/ontology#regulatedBy> _:Bbb2be667X2De371X2D448fX2Da8afX2De159c90d309f .
<https://memobase.ch/digital/IFRC-FILM-No_ID_211-1> <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#locator> "https://youtu.be/BaSOf-YM0j8" .
<https://memobase.ch/digital/IFRC-FILM-No_ID_211-1> <https://www.ica.org/standards/RiC/ontology#identifiedBy> _:B402b93b4X2D4a67X2D472bX2D94f6X2D16a455523312 .
<https://memobase.ch/digital/IFRC-FILM-No_ID_211-1> <https://www.ica.org/standards/RiC/ontology#type> "digitalObject" .
<https://memobase.ch/digital/IFRC-FILM-No_ID_211-1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.ica.org/standards/RiC/ontology#Instantiation> .
_:B402b93b4X2D4a67X2D472bX2D94f6X2D16a455523312 <https://www.ica.org/standards/RiC/ontology#identifier> "IFRC-FILM-No_ID_211-1" .
_:B402b93b4X2D4a67X2D472bX2D94f6X2D16a455523312 <https://www.ica.org/standards/RiC/ontology#type> "main" .
_:B402b93b4X2D4a67X2D472bX2D94f6X2D16a455523312 <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
{
"id": "https://memobase.ch/record/Tanzarchiv-42858-43349",
"status": "FAILURE",
"message": "No valid file found for id https://memobase.ch/digital/Tanzarchiv-42858-43349-1 in folder thumbnails."
}
\ No newline at end of file
......@@ -48,14 +48,14 @@ mbr:Tanzarchiv-42858-43349
rico:identifier "Tanzarchiv-42858-43349" ;
rico:type "main"
] ;
rico:identifiedBy [ a rico:Identifier ;
rico:identifier "43349" ;
rico:type "original"
] ;
rico:identifiedBy [ a rico:Identifier ;
rico:identifier "Tanzarchiv-43349" ;
rico:type "oldMemobase"
] ;
rico:identifiedBy [ a rico:Identifier ;
rico:identifier "43349" ;
rico:type "original"
] ;
rico:isPartOf mbrs:Tanzarchiv-42858 ;
rico:recordResourceOrInstantiationIsSourceOfCreationRelation
_:b0 , _:b1 , _:b2 ;
......@@ -68,6 +68,16 @@ mbr:Tanzarchiv-42858-43349
rico:title "Additional Tones" ;
rico:type "Video" .
_:b2 a rico:CreationRelation ;
rico:creationRelationHasSource mbr:Tanzarchiv-42858-43349 ;
rico:creationRelationHasTarget [ a rico:Person ;
rico:agentIsTargetOfCreationRelation
_:b2 ;
rico:name "Katarzyna Gdaniec (Choreograf / Chorégraphe)"
] ;
rico:name "Author" ;
rico:type "creator" .
mbdo:Tanzarchiv-42858-43349-1
a rico:Instantiation ;
ebucore:locator "https://vimeo.com/199629565" ;
......@@ -80,6 +90,16 @@ mbdo:Tanzarchiv-42858-43349-1
mbpo:Tanzarchiv-42858-43349-1 ;
rico:type "digitalObject" .
_:b1 a rico:CreationRelation ;
rico:creationRelationHasSource mbr:Tanzarchiv-42858-43349 ;
rico:creationRelationHasTarget [ a rico:CorporateBody ;
rico:agentIsTargetOfCreationRelation
_:b1 ;
rico:name "Compagnie Linga"
] ;
rico:name "Kompanie / Compagnie" ;
rico:type "contributor" .
mbpo:Tanzarchiv-42858-43349-1
a rico:Instantiation ;
rdau:P60558 "Farbig / Couleur" ;
......@@ -104,32 +124,12 @@ mbpo:Tanzarchiv-42858-43349-1
] ;
rico:type "physicalObject" .
_:b2 a rico:CreationRelation ;
rico:creationRelationHasSource mbr:Tanzarchiv-42858-43349 ;
rico:creationRelationHasTarget [ a rico:Person ;
rico:agentIsTargetOfCreationRelation
_:b2 ;
rico:name "Katarzyna Gdaniec (Choreograf / Chorégraphe)"
] ;
rico:name "Author" ;
rico:type "creator" .
_:b1 a rico:CreationRelation ;
_:b0 a rico:CreationRelation ;
rico:creationRelationHasSource mbr:Tanzarchiv-42858-43349 ;
rico:creationRelationHasTarget [ a rico:Person ;
rico:agentIsTargetOfCreationRelation
_:b1 ;
_:b0 ;
rico:name "Christophe Calpini"
] ;
rico:name "Komponisten / Compositeur" ;
rico:type "contributor" .
_:b0 a rico:CreationRelation ;
rico:creationRelationHasSource mbr:Tanzarchiv-42858-43349 ;
rico:creationRelationHasTarget [ a rico:CorporateBody ;
rico:agentIsTargetOfCreationRelation
_:b0 ;
rico:name "Compagnie Linga"
] ;
rico:name "Kompanie / Compagnie" ;
rico:type "contributor" .
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