DigitalDocument¶
-
trompace.mutations.digitaldocument.
mutation_create_digitaldocument
(*, title: str, contributor: str, creator: str, source: str, format_: str, subject: str = None, language: str = None, description: str = None)¶ Returns a mutation for creating a digital document object.
- Parameters
title – The title of the resource indicated by source
contributor – The main URL of the site where the information about this DigitalDocument was taken from
creator – The person, organization or service who is creating this DigitalDocument (e.g. URL of the software)
source – The URL of the web resource where information about this DigitalDocument is taken from
format_ – The mimetype of the resource indicated by source
subject (optional) – The subject of the music composition.
language (optional) – The language the metadata is written in. Currently supported languages are en,es,ca,nl,de,fr
description (optional) – A description about the item referred to by source.
- Returns
The string for the mutation for creating the digital document.
- Raises
UnsupportedLanguageException if the input language is not one of the supported languages. –
NotAMimeTypeException – if
format_
is not a valid mimetype.
-
trompace.mutations.digitaldocument.
mutation_delete_digitaldocument
(identifier: str)¶ Returns a mutation for deleting a digital document object based on the identifier.
- Parameters
identifier – The unique identifier of the digital document object.
- Returns
The string for the mutation for deleting the digital document object based on the identifier.
-
trompace.mutations.digitaldocument.
mutation_update_digitaldocument
(identifier: str, *, title: str = None, contributor: str = None, creator: str = None, source: str = None, format_: str = None, subject: str = None, language: str = None, description: str = None)¶ Returns a mutation for updating a digital document object.
- Parameters
identifier – The identifier of the media object in the CE to be updated.
title – The title of the resource indicated by source
contributor – The main URL of the site where the information about this DigitalDocument was taken from
creator – The person, organization or service who is creating this DigitalDocument (e.g. URL of the software)
source – The URL of the web resource where information about this DigitalDocument is taken from
format_ – The mimetype of the resource indicated by source
subject (optional) – The subject of the music composition.
language (optional) – The language the metadata is written in. Currently supported languages are en,es,ca,nl,de,fr
description (optional) – A description about the item referred to by source.
- Returns
The string for the mutation for creating the artist.
- Raises
Assertion error if the input language is not one of the supported languages. –