Datasets¶
Models representing datasets.
Dataset object¶
- class renku.core.models.dataset.Dataset(*args, **kwargs)[source]¶
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)[source]¶
Make self a derivative of dataset and update related fields.
- property files¶
Return list of existing files.
- freeze()¶
Set immutable property.
- property immutable¶
Return if object is immutable.
- property keywords_csv¶
Comma-separated list of keywords associated with dataset.
- reassign_oid()¶
Reassign
oid
(after assigning a new identifier for example).
- 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.
Dataset file¶
Manage files in the dataset.
- class renku.core.models.dataset.DatasetFile(*, based_on=None, date_added=None, date_removed=None, entity=None, id=None, is_external=False, source=None)[source]¶
A file in a dataset.
- classmethod from_path(client, path, source=None, based_on=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.
- is_equal_to(other)[source]¶
Compare content.
NOTE: id is generated randomly and should not be included in this comparison.
- classmethod make_instance(**kwargs)¶
Instantiate from the given parameters.