| 1 |
.. toctree:: |
| 2 |
:maxdepth: 1 |
| 3 |
|
| 4 |
Support for standardization |
| 5 |
=========================== |
| 6 |
|
| 7 |
Having a well-defined and open data format for storing a vast diversity |
| 8 |
of scientific data in itself is a cool thing. In an optimal world, and |
| 9 |
if the data format would be perfect, tools designed for such a generic |
| 10 |
data model could be used without any other knowledge to, at least, get |
| 11 |
some basic insights into the data. |
| 12 |
|
| 13 |
One real-world issue is that different (scientific) communities use |
| 14 |
similar terms to describe (slightly) different things. A very simple |
| 15 |
example would be the temperature. Large parts of the world would |
| 16 |
immediately understand a temperature value in terms of degrees Celsius. |
| 17 |
Other parts of the world prefer Fahrenheit while parts of the scientific |
| 18 |
world would certainly go for Kelvin. |
| 19 |
|
| 20 |
In other words, at some point we need to agree on definitions. Or, we |
| 21 |
need to be able to specify which definitions are used. |
| 22 |
|
| 23 |
Standardization of metadata |
| 24 |
--------------------------- |
| 25 |
|
| 26 |
The metadata part of the *NIX* data model is basically the |
| 27 |
`odml <https://github.com/g-node/python-odml>`__ data model and |
| 28 |
implements the standardization methods used in the odml-libraries. That |
| 29 |
is, it is possible to use specifications made in so called terminologies |
| 30 |
(collections of names and definitions of sections and properties). In |
| 31 |
odml, several of such |
| 32 |
`terminologies <https://portal.g-node.org/odml/terminologies/v1.0/terminologies.xml>`__ |
| 33 |
have been suggested. |
| 34 |
|
| 35 |
Standardization of data |
| 36 |
----------------------- |
| 37 |
|
| 38 |
In *NIX* almost all entities have a **type** field which can be used to |
| 39 |
indicate the applied definition. In our example code within this |
| 40 |
documentation, we used very unspecific types like *nix.demo*, |
| 41 |
*nix.sampled*, or *nix.stimulus_segment*. The **type** is intended to be |
| 42 |
used as a namespace in a *hierarchical* fashion. Hierarchical levels are |
| 43 |
separated by dots. For example *nix.sampled* could indicate that the |
| 44 |
entity contains data that is stored according to the “nix” definitions |
| 45 |
and is regularly sampled in one dimension. A tool, that knows about such |
| 46 |
types, could select the appropriate measures to display the data. |
| 47 |
|
| 48 |
Domain-specific high-level APIs |
| 49 |
------------------------------- |
| 50 |
|
| 51 |
So far, the *NIX* project is mainly concerned about the technical side |
| 52 |
and not so much about the definition of terms and types. That is, we |
| 53 |
provide the low-level APIs to read and write the data. All other |
| 54 |
responsibilities are left to the user. The figure below shows the |
| 55 |
relations between the different *NIX* libraries and how we envision |
| 56 |
future development towards domain-specificity. |
| 57 |
|
| 58 |
.. figure:: ./images/api_design.png |
| 59 |
:alt: API design |
| 60 |
|
| 61 |
The *NIX* ecosystem so far consists of the generic |
| 62 |
`C++ <https://github.com/g-node/nix>`__ and |
| 63 |
`python <https://github.com/g-node/nixpy>`__ libraries that directly |
| 64 |
write to the storage backend (only HDF5 is fully supported at the |
| 65 |
moment). Further, we provide language bindings for |
| 66 |
`java <https://github.com/g-node/nix-java>`__ and |
| 67 |
`Matlab <https://github.com/g-node/nix-mx>`__ that work via the C++ |
| 68 |
library. In our vision, domain-specific APIs will be developed that use |
| 69 |
the generic entities and wrap them in the terms that are used in a given |
| 70 |
community. A first step into this direction is the nix storage backend |
| 71 |
in `*NEO* <http://neuralensemble.org>`__ that exposes *NIX* constructs |
| 72 |
as *NEO* entities. |