Organization

class Organization(*, ror: Annotated[str | None, _PydanticGeneralMetadata(pattern='^0[a-hj-km-np-tv-z|0-9]{6}[0-9]{2}$')] = None, wikidata: Annotated[str | None, _PydanticGeneralMetadata(pattern='^Q\\d+$')] = None, gnd: str | None = None, name: str, partnered: bool = False)[source]

Bases: BaseModel

Model for organizations.

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

link

Get a link for the organization.

model_config

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

reference

Get a CURIE pair.

Methods Summary

matches_reference(reference)

Check if this organization matches the reference.

Attributes Documentation

Get a link for the organization.

model_config = {}

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

reference

Get a CURIE pair.

Methods Documentation

matches_reference(reference: Reference) bool[source]

Check if this organization matches the reference.