Skip to content


Browse files Browse the repository at this point in the history
feat(xmlupload): support Baseclass MovingImageRepresentation (#185)
* add MovingImageRepresentation in

* add test data for MovingImageRepresentation
  • Loading branch information
jnussbaum committed Apr 26, 2022
1 parent f4898da commit 7ebf588
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions knora/dsplib/models/
Expand Up @@ -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
raise BaseError(f"Baseclass '{self.baseclass}' not yet supported!")

Expand Down
Binary file added testdata/bitstreams/Dummy.mp4
Binary file not shown.
10 changes: 10 additions & 0 deletions testdata/test-data.xml
Expand Up @@ -240,6 +240,16 @@

<resource label="Moviething"
<text-prop name=":hasText">
<text encoding="utf8" permissions="prop-default">Dummy video with music</text>

<resource label="TestThing2Child1" restype=":TestThing2Child1" id="obj_0012">
<text-prop name=":hasTextChild1">
<text encoding="utf8">Some text</text>
Expand Down

0 comments on commit 7ebf588

Please sign in to comment.