Datasets
Models representing datasets.
- class renku.domain_model.dataset.AnnotationJson(*, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)[source]
Bases:
Schema
Schema for Annotations.
- class renku.domain_model.dataset.Dataset(*args, **kwargs)[source]
Bases:
Persistent
Represent a dataset.
- property creators_csv
Comma-separated list of creators associated with dataset.
- property creators_full_csv
Comma-separated list of creators with full identity.
- derive_from(dataset, creator, identifier=None, date_created=None)[source]
Make self a derivative of dataset and update related fields.
- property files
Return list of existing files.
- property keywords_csv
Comma-separated list of keywords associated with dataset.
- replace_identifier(identifier=None)[source]
Replace dataset’s identifier and update relevant fields.
NOTE: Call this only for newly-created/-imported datasets that don’t have a mutability chain because it sets initial_identifier.
- class renku.domain_model.dataset.DatasetCreatorsJson(*, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)[source]
Bases:
Schema
Schema for the dataset creators.
- class renku.domain_model.dataset.DatasetDetailsJson(*, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)[source]
Bases:
Schema
Serialize a dataset to a response object.
- class renku.domain_model.dataset.DatasetFile(*args, **kwargs)[source]
Bases:
Slots
A file in a dataset.
Create and return an empty instance of the class.
- correct_linked_attribute()[source]
Replace
is_external
attribute withlinked
for linked dataset files.
- classmethod from_path(path, source=None, based_on=None, checksum=None, size=None)[source]
Return an instance from a path.
- static generate_id()[source]
Generate an identifier for DatasetFile.
NOTE: ID should not rely on Entity properties because the same Entity can be added and removed multiple times. So, it should be marked by different DatasetFiles.
- class renku.domain_model.dataset.DatasetFileDetailsJson(*, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)[source]
Bases:
Schema
Serialize dataset files to a response object.
- class renku.domain_model.dataset.DatasetTag(*args, **kwargs)[source]
Bases:
Persistent
Represents a Tag of an instance of a dataset.
- class renku.domain_model.dataset.ImageObjectJson(*, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)[source]
Bases:
Schema
ImageObject json schema.
- class renku.domain_model.dataset.ImageObjectRequestJson(*, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)[source]
Bases:
Schema
ImageObject json schema.
- class renku.domain_model.dataset.Language(*args, **kwargs)[source]
Bases:
Immutable
Represent a language of an object.
Create and return an empty instance of the class.
- class renku.domain_model.dataset.RemoteEntity(*args, **kwargs)[source]
Bases:
Slots
Reference to an Entity in a remote repository.
Create and return an empty instance of the class.
- class renku.domain_model.dataset.Url(*, id=None, url=None, url_str=None, url_id=None)[source]
Bases:
object
Represents a schema URL reference.
- property value
Returns the url value as string.