dipper.models.Dataset module¶
-
class
dipper.models.Dataset.
Dataset
(identifier, title, url, description=None, license_url=None, data_rights=None, graph_type=None, file_handle=None)¶ Bases:
object
this will produce the metadata about a dataset following the example laid out here: http://htmlpreview.github.io/? https://github.com/joejimbo/HCLSDatasetDescriptions/blob/master/Overview.html#appendix_1 (mind the wrap)
-
getGraph
()¶
-
get_license
()¶
-
setFileAccessUrl
(url, is_object_literal=False)¶
-
setVersion
(date_issued, version_id=None)¶ - Legacy function…
- should use the other set_* for version and date
as of 2016-10-20 used in:
dipper/sources/HPOAnnotations.py 139: dipper/sources/CTD.py 99: dipper/sources/BioGrid.py 100: dipper/sources/MGI.py 255: dipper/sources/EOM.py 93: dipper/sources/Coriell.py 200: dipper/sources/MMRRC.py 77:
# TODO set as deprecated
Parameters: - date_issued –
- version_id –
Returns:
-
set_citation
(citation_id)¶
-
set_date_issued
(date_issued)¶
-
set_license
(license)¶
-
set_version_by_date
(date_issued=None)¶ This will set the version by the date supplied, the date already stored in the dataset description, or by the download date (today) :param date_issued: :return:
-
set_version_by_num
(version_num)¶
-