Skip to content

datatagsuite/dats-tools

Repository files navigation

dats-tools

Build Status

Python code to deal with the DATS model.

The python code included in the repository validates the DATS JSON schemas and the DATS JSON instances against the schemas. To execute the code locally, it is recommended to use a virtual environment, following these steps:

  1. First, clone the github repository:

    git clone https://github.com/datatagsuite/dats-tools.git

  2. If not already installed in your system, first install the virtual environment via pip: pip install virtualenv

  3. Create a virtual environment: virtualenv venv

  4. Then, activate the virtual environment: source venv/bin/activate

  5. Install the requirements: pip install -r requirements.txt

  6. Download the schemas, contexts and instance data: bash -x get_schemas_contexts_data.sh

  7. Finally, you can inspect and run the tests to validate the DATS schemas and JSON instances against the schemas. python setup.py test

Querying DATS

Check out the following binder to see an example of querying DATS with SPARQL.

Binder