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:
First, clone the github repository:
git clone https://github.com/datatagsuite/dats-tools.git
If not already installed in your system, first install the virtual environment via
pip install virtualenv
Create a virtual environment:
Then, activate the virtual environment:
Install the requirements:
pip install -r requirements.txt
Download the schemas, contexts and instance data:
bash -x get_schemas_contexts_data.sh
Finally, you can inspect and run the tests to validate the DATS schemas and JSON instances against the schemas.
python setup.py test
Check out the following binder to see an example of querying DATS with SPARQL.