peterphilips / bdrgateway-testclient

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BDR Gateway Test Client

This is a small Python web client made to test the BDR Gateway API which is used to absorb data into the Biodiversity Data Repository being built for the Department of Agriculture, Water and the Environment.

This tool is mostly for internal testing but may be copied by others for their use.

Data

Example Messages

See folder tests_data/messages/. These are the same message examples listed in the BDR Gateway.

Validators

See folder tests_data/validators/.

Currently only:

  • BDR Messages Validator

  • VocPub BDR Validator

TERN validator to be added soon

Use

  • validate_egs.py - attempts to validate each example message file using all the validators combined

  • validate_egs_rdf.py - just checks each example is valid RDF

    • useful if new problematic example files need testing as at least syntactically before full use in validation tests

  • create_sampling.py - creates instances of Sampling and Sample from data (Python dict) and packages it within a BDR CreateMessage

About

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%