DataPackage-class: A class representing a data package

Description Slots Methods See Also


The DataPackage class provides methods for adding and extracting data objects from a data package. The contents of a data package can include arbitrary types of objects, including data files, program code, visualizations and images, animations, and any other type of file. The DataPackage class stores the individual members of the data package along with key system-level metadata about each object, including its size, checksum, identifier, and other key information needed to effectively archive the members of the package. In addition, the DataPackage class can include key provenance metadata about the relationships among the objects in the data package. For example, the data package can document that one object provides documentation for another (cito:documents), and that one object was derived from another (prov:wasDerivedFrom) by executing a program that used source data (prov:used) to create a derived data object prov:wasGeneratedBy. These relationships are integral to the data package, and can be visualized by programs that understand the ProvONE provenance model (see

The DataPackage class is an R representation of an underlying Open Archives Initiative ORE model (Object Reuse and Exchange; see, and follows the DataONE Data Packaging model (see



A hash containing provenance relationships of package objects


A hash containing identifiers for objects in the DataPackage


A SystemMetadata class instance describing the package


A list containing identifiers for objects associated with the DataPackage


A character string specifying the identifier for the package resource map. This is assigned after a package is uploaded or downloaded from a repository.


See Also


datapack documentation built on Aug. 3, 2017, 9:01 a.m.