Validating CEDAR Resources - metadatacenter-attic/cedar-docs GitHub Wiki
NOTE: Activate Python 3.4 by typing the command
$ source activate py34in the server
Go to the cedar-util module (goutil) and switch the directory to script/ where you will find a script called cedar-validator.py. There are three options to use the script:
- Validate the entire resources by specifying the resource type and the MongoDB database
(py34)$ python cedar-validator.py -t template --input-mongodb=cedar
- Validate the entire resources by specifying the resource type and listing the ids in a file
(py34)$ python cedar-validator.py -t template --input-list=template.txt
- Validate a resource by specifying the resource type and the JSON document
(py34)$ python cedar-validator.py -t template --input-json=template.json