Skip to content

Validation of DATS schemas, contexts and instances

License

Notifications You must be signed in to change notification settings

CONP-PCNO/dats-tools

 
 

Repository files navigation

dats-tools

This is a clone of https://github.com/datatagsuite/dats-tools.git to be used here using the CONP version of DATS model.

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

About

Validation of DATS schemas, contexts and instances

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 54.8%
  • Python 45.0%
  • Shell 0.2%