diff --git a/knora/dsplib/models/resource.py b/knora/dsplib/models/resource.py index 2ccb287a8..b430d1534 100644 --- a/knora/dsplib/models/resource.py +++ b/knora/dsplib/models/resource.py @@ -253,6 +253,9 @@ def toJsonLdObj(self, action: Actions) -> Any: elif self.baseclass == 'ArchiveRepresentation': bitstream_attributes["@type"] = "knora-api:ArchiveFileValue" tmp["knora-api:hasArchiveFileValue"] = bitstream_attributes + elif self.baseclass == 'MovingImageRepresentation': + bitstream_attributes["@type"] = "knora-api:MovingImageFileValue" + tmp["knora-api:hasMovingImageFileValue"] = bitstream_attributes else: raise BaseError(f"Baseclass '{self.baseclass}' not yet supported!") diff --git a/testdata/bitstreams/Dummy.mp4 b/testdata/bitstreams/Dummy.mp4 new file mode 100644 index 000000000..f4cf78c93 Binary files /dev/null and b/testdata/bitstreams/Dummy.mp4 differ diff --git a/testdata/test-data.xml b/testdata/test-data.xml index fc65bc42c..e1c9676a4 100644 --- a/testdata/test-data.xml +++ b/testdata/test-data.xml @@ -240,6 +240,16 @@ + + testdata/bitstreams/Dummy.mp4 + + Dummy video with music + + + Some text