IIIFpres.extensions package¶
Submodules¶
IIIFpres.extensions.NavPlace module¶
- class IIIFpres.extensions.NavPlace.Feature[source]¶
Bases:
_ImmutableType- set_id(objid=None, extendbase_url=None)[source]¶
Set the ID of the object :param objid: A string corresponding to the ID of the object. :type objid: str, optional :param Defaults to None.: :param extendbase_url: A string or a list of strings :type extendbase_url: str or list, optional :param to be joined with the iiifpapi3.BASE_URL . Defaults to None.:
- set_label(language, text)[source]¶
Add a label to the object
- Parameters:
language (str) – The language of the label.
text (str) – The content of the label.
IIIF : A human readable label, name or title. The label property is intended to be displayed as a short, textual surrogate for the resource if a human needs to make a distinction between it and similar resources, for example between objects, pages, or options for a choice of images to display. The label property can be fully internationalized, and each language can have multiple values.
- set_summary(language, text)[source]¶
An ordered list of descriptions to be displayed to the user when they interact with the resource, given as pairs of human readable label and value entries. The content of these entries is intended for presentation only; descriptive semantics should not be inferred. An entry might be used to convey information about the creation of the object, a physical description, ownership information, or other purposes.
- set_geometry_as_point(longitude, latitude)[source]¶
Set geometry attribute as point providing the longitude and the latitude
- Parameters:
longitude (float) – longitude of the location.
latitude (float) – latitude of the location.
- set_type(mtype=None)¶
In case of IIIF objects with predefined type this function won’t change the type but will rise an error if you try to change it.
https://iiif.io/api/presentation/3.0/#type
- Parameters:
mtype (str, optional) – the type of the object. Defaults to None.
- Raises:
ValueError – In case you are trying to set a type.