Package

A collection of information is represented by an OAI-ORE document. The “package” commands create and modify ORE/XML documents.

For example, assume that there is a science metadata document (gce.294.17.xml) and three data files (test1.csv, test2.csv, test3.csv). The below commands would create an data package in DataONE.

DataONE Command Line Interface
> package new knb-lter-gce.294.17-PKG
> set format-id=eml://ecoinformatics.org/eml-2.1.0
> package scimeta add knb-lter-gce.294.17 gce.294.17.xml
> set format-id=text/csv
> package scidata add knb-lter-gce.294.17_csv1 test1.csv
> package scidata add knb-lter-gce.294.17_csv2 test2.csv
> package scidata add knb-lter-gce.294.17_csv3 test3.csv
> package create

clear

Clear the current package from memory.

create

Save the package in DataONE.

help [sub-command]

Help on package commands.

done

If in package mode, go back to the base mode.

get [<pid>]

Retrieve a package. If no pid is given, use the current pid (“re-load”).

new [package-id [scimeta [scidata ...]]]

Create a new package, optionally supplying the the pid, the Science Metadata Object, and a list of Science Data Objects.

scidata

Manipulate the science data objects in the package.

  • add _<pid>_ _[file]_ Add science data object to the package.
  • del Remove a given science object from the package.
  • clear Remove all science data objects from the package.
  • show Display the given science object.

scimeta

Manipulate the science metadata object in the package.

  • add Add the science metadata object to the package.
  • del Remove the given science metadata object from the package.
  • show Display the given science metadata object.

show [<pid>]

If no <pid> is given, then display the package contents. Otherwise, display the contents of the given object (if possible).

Table Of Contents

Related Topics