Files
obitools3/doc/source/formats.rst

103 lines
2.1 KiB
ReStructuredText
Raw Normal View History

2015-05-07 16:10:03 +02:00
#######
Formats
#######
*********************************************
The OBItools3 Data Management System (OBIDMS)
2015-05-07 16:10:03 +02:00
*********************************************
2015-05-12 14:54:10 +02:00
An OBIDMS directory consists of :
* OBIDMS column files
2015-05-12 14:54:10 +02:00
* OBIDMS view descriptions
* an OBIDMS history file
2015-05-07 16:10:03 +02:00
OBIDMS column files
2015-05-07 16:10:03 +02:00
===================
2015-05-12 14:54:10 +02:00
Each OBIDMS column file contains :
2015-05-12 14:54:10 +02:00
* a header of a size equal to a multiple of PAGESIZE (PAGESIZE being equal to 4096 bytes
2015-05-07 16:10:03 +02:00
on most systems) containing metadata
* one column of data of the same type
2015-05-12 14:54:10 +02:00
OBIDMS column files are read-only.
2015-05-07 16:10:03 +02:00
File name
---------
2015-05-12 14:54:10 +02:00
Each file is named with the attribute associated to the data it contains, and the number of
2015-05-07 16:10:03 +02:00
its version, separated by an underscore.
Example : ``count_0003``
.. todo::
Filename extension?
Header
------
The header of an OBIDMS column contains :
2015-05-12 14:54:10 +02:00
2015-05-07 16:10:03 +02:00
* Endian byte order
* PAGESIZE value / Size of the header
2015-05-12 14:54:10 +02:00
2015-05-07 16:10:03 +02:00
* Number of lines (total or without the header?)
* Data type (int, str...)
* Date of creation
* Version of the file
* Eventual comments
Data
----
A column of data of the same type.
Versioning
----------
2015-05-12 14:54:10 +02:00
Since OBIDMS column files are read-only, any modification leads to the creation of a new version
2015-05-07 16:10:03 +02:00
of the column file.
2015-05-12 14:54:10 +02:00
The first version of a column file is numbered 0001, and each new version increments that
2015-05-07 16:10:03 +02:00
number by 1.
Mandatory columns
-----------------
Some columns must exist in an OBIDMS directory :
2015-05-07 16:10:03 +02:00
* sequence identifiers column
2015-05-12 14:54:10 +02:00
OBIDMS history file
2015-05-07 16:10:03 +02:00
===================
2015-05-12 14:54:10 +02:00
An OBIDMS history file consists of data that can be represented in the form of a directed acyclic
graph presenting the history of all the operations ever done in the OBIDMS directory.
2015-05-07 16:10:03 +02:00
OBIDMS views
2015-05-07 16:10:03 +02:00
============
2015-05-12 14:54:10 +02:00
An OBIDMS view corresponds to a list of OBIDMS columns and lines. A view includes one version
of each mandatory column. Only one version of each column is included. All the columns of
2015-05-07 16:10:03 +02:00
one view contain the same number of lines in the same order.
2015-05-11 17:45:47 +02:00
OBIDMS ULM
==========
.. image:: ./images/OBIDMS_ULM.png
:download:`html version of the OBIDMS ULM file </ObiDMS_ULM.class.violet.html>`
OBIIntColumn header file
========================
.. doxygenfile:: obiintcolumn.h