Context
- class Context(*, name: str, description: str, maintainers: list[Author], prefix_priority: list[str] | None, include_synonyms: bool = False, uri_prefix_priority: list[str] | None, prefix_remapping: dict[str, str] | None, custom_prefix_map: dict[str, str] | None, blacklist: list[str] | None, enforce_w3c: bool = False)[source]
Bases:
BaseModelA prescriptive context.
A prescriptive context contains configuration for generating fit-for-purpose prefix maps to serve various communities based on the standard Bioregistry prefix map, custom prefix remapping rules, custom URI prefix remapping rules, custom prefix maps, and other community-specific logic.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Attributes Summary
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Attributes Documentation
- model_config = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].