| 1 |
.. _validating: |
| 2 |
|
| 3 |
Validating HDMF Data |
| 4 |
==================== |
| 5 |
|
| 6 |
Validation of NWB files is available through ``pynwb``. See the `PyNWB documentation |
| 7 |
<https://pynwb.readthedocs.io/en/stable/validation.html>`_ for more information. |
| 8 |
|
| 9 |
-------- |
| 10 |
|
| 11 |
.. note:: |
| 12 |
|
| 13 |
A simple interface for validating HDMF structured data through the command line like for PyNWB files is not yet |
| 14 |
implemented. If you would like this functionality to be available through :py:mod:`~hdmf`, then please upvote |
| 15 |
`this issue <https://github.com/hdmf-dev/hdmf/issues/473>`_. |
| 16 |
|
| 17 |
.. |
| 18 |
Validating HDMF structured data is handled by a command-line tool available in :py:mod:`~hdmf`. |
| 19 |
The validator can be invoked like so: |
| 20 |
|
| 21 |
.. code-block:: bash |
| 22 |
|
| 23 |
python -m hdmf.validate -p namespace.yaml test.h5 |
| 24 |
|
| 25 |
This will validate the file ``test.h5`` against the specification in ``namespace.yaml``. |