Skip to content

Create an Author model for datasets #74

@pierrepo

Description

@pierrepo

Currently, authors are represented in the Dataset model as a author_names field:

    author_names: list[str] | None = Field(
        None,
        description="List of author or contributor names.",
    )

We may need to create a dedicated Authors model with the following fields:

class Author(BaseModel):
    """Author of dataset or publication."""

    first_name: str | None = Field(None, description="Author first name.")
    last_name: str | None = Field(None, description="Author last name.")
    full_name: str | None = Field(None, description="Author full name.")
    orcid: str | None = Field(None, description="ORCID.")

The full_name field could be computed from first_name and last_name if is not defined.

Review of current APIs:

  • The Zenodo API provides full name and orcid (when possible).
  • The Figshare API provides full name, first name, last name and orcid (when possible).
  • The NOAMD API provides full name and an identifier that lead to first name, last name and affiliation through the /users/{user_id} end point.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions