Skip to content
Krisztián Fekete edited this page Apr 13, 2015 · 3 revisions

Some use cases

Use case details

Create a new data package from existing database

There are existing data that are to be converted to packages.

  • ws new PACKAGE-NAME (create workspace for a new package)
  • cp data-files PACKAGE-NAME/output (copy data into workspace)
  • cd PACKAGE-NAME
  • ws pack --to REPOSITORY (create package from workspace)

Derive a new data package from existing data packages by computation

  • ws new PACKAGE-NAME (create workspace for a new package)
  • cd PACKAGE-NAME
  • ws mount PACKAGE1 NAME1 (make data from PACKAGE1 [version] available at input/NAME1)
  • ...
  • ws mount PACKAGEn NAMEn (make data from PACKAGEn [version] available at input/NAMEn)
  • create some program under the current directory (e.g. python or STATA scripts) that uses data from input and produces some data under output
  • run the program
  • ws pack --to REPOSITORY (create package from workspace)

Update a data package for new input data (create a new version)

  • ws develop PACKAGE (create workspace )
  • ws mount NEW-INPUT-PACKAGE NEW-INPUT-NAME (make data from NEW-INPUT-PACKAGE available at input/NEW-INPUT-NAME)
  • modify code
  • run code
  • ws pack