INCATools / dead_simple_owl_design_patterns

A simple system for specifying OWL class design patterns for OBO-ish ontologies.
http://incatools.github.io/dead_simple_owl_design_patterns/
GNU General Public License v3.0
42 stars 5 forks source link

var names should be restricted to valid variable names #57

Closed dosumis closed 3 years ago

dosumis commented 3 years ago

spec: alphanumeric + '', first character must not be number. In regex [a-zA-Z][a-zA-Z_0-9]*

dosumis commented 3 years ago

Update - I think not possible to add to formal spec with the current (json schema v4 validator) as this part is only enforced by convention!

image

However, we could if we switch to JSON schema version 6+ or http://json-schema.org/understanding-json-schema/reference/object.html#property-names. The validator lib we use now supports this

https://python-jsonschema.readthedocs.io/en/latest/validate/#jsonschema.Draft6Validator