A class representing a data package, which can contain data objects

Share:

Description

The DataPackage class provides methods for added and extracting data objects from a datapackage. The contents of a package can be determined and the package can be prepared for transport before being uploaded to a data repository or archived.

Slots

relations

A hash containing provenance relationships of package objects

objects

A hash containing identifiers for data object in the DataPackage

sysmeta

A SystemMetadata class instance describing the package

Methods

  • initialize: Initialize a DataPackage object

  • getData: Get the data content of a specified data object

  • getSize: Get the Count of Objects in the Package

  • getIdentifiers: Get the Identifiers of Package Members

  • addData: Add a DataObject to the DataPackage

  • insertRelationship: Record relationships of objects in a DataPackage

  • recordDerivation: Record derivation relationships between objects in a DataPackage

  • getRelationships: Retrieve relationships of package objects

  • containsId: Returns true if the specified object is a member of the package

  • removeMember: Remove the Specified Member from the Package

  • getMember: Return the Package Member by Identifier

  • serializePackage: Create an OAI-ORE resource map from the package

  • serializeToBagIt: Serialize A DataPackage into a BagIt Archive File

See Also

datapack

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.