INCATools/dead_simple_owl_design_patterns

var names should be restricted to valid variable names

Closed this issue · 1 comments

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

  • Add to spec - ideally as JSON schema, of not as part of description
  • Add check to validator - only rqd if can't formally add to schema

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