This is a clone of https://github.com/datatagsuite/dats-tools.git to be used here using the CONP version of DATS model.
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
:pip install virtualenv
-
Create a virtual environment:
virtualenv venv
-
Then, activate the virtual environment:
source venv/bin/activate
-
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.