Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

Description of the general method of creating the initial object heirachry in DOMS based on a tree structure in a file system

General description

The goal of this document is to describe the work of transforming data files and accompanying metadata files in a tree structure on disk to a Content-Model less object tree in DOMS.

For this to be generic some assumptions needs to be taken:

  • Data files and metadata files that belongs together have the same prefix
  • Data files can be recognised by their file suffix.
  • Checksum files is supposed to be represented as objects, but as a property of an object. They will thus be skipped as objects in the tree, but used for creation in the creation of the object they belong to.


General rules:

  1. Directories are treated as a "hasPart" relation to a new object.
    1. The name of the relation is the directory name
    2. The new object's label is the path of the directory.
  2. A data file is a file containing data. The actual data is stored outside DOMS.
  3. A metadata file is a file containing metadata. The file is stored inside DOMS.
  4. A grouping of files (files having a common prefix) is represented as a object with:
    1. Datastreams for each metadata file
    2. "hasFile" relations to data files