phiweger / zoo

A portable datastructure for rapid prototyping in (viral) bioinformatics (under development).
5 stars 2 forks source link

schema: validation #64

Open phiweger opened 7 years ago

phiweger commented 7 years ago

http://json-schema.org/

pointed to from here

https://specs.frictionlessdata.io/data-package/

phiweger commented 7 years ago

see this also: http://json-schema.org/ and tools http://json-schema.org/implementations.html#validator-python

tutorial: https://spacetelescope.github.io/understanding-json-schema/

Any “validation tool” for a sufficiently complex data format, therefore, will likely have two phases of validation: one at the schema (or structural) level, and one at the semantic level. The latter check will likely need to be implemented using a more general-purpose programming language. -- source

phiweger commented 7 years ago

Features (json-schema):

phiweger commented 7 years ago

only zoo init/ add/ commit validate also zoo validate (to call it explicitly)

all imports from ncbi etc. is though zoo io

phiweger commented 7 years ago

see examples/schema_validate.py