Record
- class Record(*, prefix: str, uri_prefix: str, prefix_synonyms: list[str] = <factory>, uri_prefix_synonyms: list[str] = <factory>, pattern: str | None = None)[source]
Bases:
BaseModel
A record of some prefixes and their associated URI prefixes.
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].
Methods Summary
prefix_not_in_synonyms
(v, values)Check that the canonical prefix does not apper in the prefix synonym list.
uri_prefix_not_in_synonyms
(v, values)Check that the canonical URI prefix does not apper in the URI prefix synonym list.
Attributes Documentation
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Methods Documentation