data.dataset.json package¶
Submodules¶
data.dataset.json.dataset_v6 module¶
Manages the DataSet definition schema
-
class
data.dataset.json.dataset_v6.
DataSetDefinitionV6
(definition=None, do_validate=False)¶ Bases:
object
Represents the definition of a DataSet object
Parameters: - definition (dict) – The dataset definition JSON dict
- do_validate – Whether to perform validation on the JSON schema
-
get_definition
()¶ Returns the definition
Returns: The DataSetDefinition object Return type: data.dataset.dataset.DataSetDefinition
-
get_dict
()¶ Returns the dict of the definition
-
data.dataset.json.dataset_v6.
convert_definition_to_v6_json
(definition)¶ Returns the v6 dataset definition JSON for the given definition
Parameters: definition ( data.dataset.dataset.DataSetDefinition
) – The dataset definitionReturns: The v6 dataset definition JSON Return type: data.dataset.json.dataset_v6.DataSetDefinitionV6