Provider

class Provider(*, code: str, name: str | None = None, description: str | None = None, homepage: str | None = None, uri_format: str, first_party: bool | None = None, publications: list[Publication] | None = None, example: str | None = None, status: StatusCheck | None = None, organization: Organization | None = None)[source]

Bases: BaseModel

A provider.

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

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Methods Summary

is_known_inactive()

Check if the resource is known to be inactive.

resolve(identifier)

Resolve the identifier into a URI.

Attributes Documentation

model_config = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Methods Documentation

is_known_inactive() bool[source]

Check if the resource is known to be inactive.

resolve(identifier: str) str[source]

Resolve the identifier into a URI.

Parameters:

identifier – The identifier in the semantic space

Returns:

The URI for the identifier