Authors & Contributors#

class metacatalog.models.person.Person(**kwargs)#

Person represents all persons that are associated in any kind to a dataset. This may be an author, who is mandatory, but also an owners or processors can be associated.

Note

In metatacatalog, an organisation_name is an optional, but recommended information. On export to ISO 19115 persons without affilated organisations can’t be exported. Thus, they should not take the role of pointOfContact or author (first author), because this would result in invalid ISO 19115 metadata then.

id#

Unique id of the record. If not specified, the database will assign it.

Type:

int

uuid#

Version 4 UUID string to identify the Entry across installations. This field is read-only and will be assigned on creation. It is primarily used to export Entry into ISO19115 metadata.

Type:

str

first_name#

Changed in version 0.1.10: Now mandatory.

Person’s first name.

Type:

str

last_name#

Person’s last name.

Type:

str

organisation_name#

Optional, but highly recommended if applicable. This should be the name of the head organisation, without department information. The full affiliation can be defined in another attribute.

Type:

str

affiliation#

Optional. The user may want to further specify a department or working group for affiliation information.

Type:

str

attribution#

Optional. The user may define an attribtion recommondation here, which is associated to all datasets, the user is first author of. If not given, the system running metacatalog should give automatic and fallback information of how a dataset should be attributed.

Type:

str

entries#

List of Entries the user is associated to. This includes all kinds of associations, not only author and coAuthor associations.

Type:

list

classmethod from_dict(data: dict, session: Session) Person#

Create a new Person from a python dictionary.

Parameters:
  • data (dict) – The dictionary containing the data

  • session (Session) – The database session

Returns:

obj – The new Person

Return type:

Person

to_dict(deep: bool = False) dict#

To dict

Return the model as a python dictionary.

Parameters:

deep (bool) – If True, all related objects will be included as dictionary. Defaults to False

Returns:

obj – The Model as dict

Return type:

dict

class metacatalog.models.person.PersonAssociation(**kwargs)#
to_dict(deep: bool = False) dict#

Return the model as a python dictionary.

Parameters:

deep (bool) – Parameter will be ignored, but is defined to use the same method interface as all other models

Returns:

obj – The Model as dict

Return type:

dict

class metacatalog.models.person.PersonRole(**kwargs)#
to_dict(deep: bool = False) dict#

Return the model as a python dictionary.

Parameters:

deep (bool) – If True, all related objects will be included as dictionary. Defaults to False

Returns:

obj – The Model as dict

Return type:

dict