whg.plugin ========== .. py:module:: whg.plugin Attributes ---------- .. autoapisummary:: whg.plugin.json_path Classes ------- .. autoapisummary:: whg.plugin.WHGPlugin Module Contents --------------- .. py:class:: WHGPlugin Bases: :py:obj:`server.plugins.ome_plugin.OMEPlugin` This class represents the World Historical Gazetteer (WHG) plugin. It provides functionality to create metadata cards from URLs or JSON payloads. .. py:attribute:: mimetypes :type: tuple[str] :value: ('application/vnd.whg.whg+json',) .. py:attribute:: newsgroups :type: dict[str, str] .. py:method:: make_metadata_card_from_url(url: str) -> server.plugins.ome_plugin.EducationResource This method creates a metadata card from a given URL. It currently does not implement any functionality. .. py:method:: make_metadata_card_from_json(json_payload: str) -> server.plugins.ome_plugin.EducationResource This method creates a metadata card from a given JSON payload. It currently does not implement any functionality. .. py:data:: json_path