whg.plugin

Attributes

json_path

Classes

WHGPlugin

This class represents the World Historical Gazetteer (WHG) plugin.

Module Contents

class whg.plugin.WHGPlugin

Bases: 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.

mimetypes: tuple[str] = ('application/vnd.whg.whg+json',)
newsgroups: dict[str, str]
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.

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.

whg.plugin.json_path