Currently, parse_format_annotations() adds restriction on has_format directly to the constructed class, not following the way proposed in oda-hub/ontology#35
Two possible adaptations:
- Instead, when processing annotations, construct superclasses with both restrictions
- Modify
_get_datatype_restriction() to infer datatype from restriction on has_format. Will require to express format-datatype correspondence in ontology.
Currently,
parse_format_annotations()adds restriction onhas_formatdirectly to the constructed class, not following the way proposed in oda-hub/ontology#35Two possible adaptations:
_get_datatype_restriction()to infer datatype from restriction onhas_format. Will require to express format-datatype correspondence in ontology.