scitacean.model.Relationship#

class scitacean.model.Relationship(*, pid, relationship)[source]#

Constructors

__init__(*, pid, relationship)

Methods

download_model_type()

Return the download model type for this user model.

from_download_model(download_model)

Construct an instance from an associated SciCat download model.

make_upload_model()

Construct a SciCat upload model from self.

upload_model_type()

Return the upload model type for this user model.

Attributes

pid

relationship

__init__(*, pid, relationship)#
classmethod download_model_type()[source]#

Return the download model type for this user model.

Return type:

type[DownloadRelationship]

classmethod from_download_model(download_model)[source]#

Construct an instance from an associated SciCat download model.

Return type:

Relationship

make_upload_model()[source]#

Construct a SciCat upload model from self.

Return type:

UploadRelationship

classmethod upload_model_type()[source]#

Return the upload model type for this user model.

Returns None if the model cannot be uploaded.

Return type:

type[UploadRelationship]