Currently, parse_format_annotations() adds restriction on has_format directly to the constructed class, not following the way proposed in https://github.com/oda-hub/ontology/issues/35
Two possible adaptations:
1) Instead, when processing annotations, construct superclasses with both restrictions
2) 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_format
directly to the constructed class, not following the way proposed in https://github.com/oda-hub/ontology/issues/35 Two possible adaptations: 1) Instead, when processing annotations, construct superclasses with both restrictions 2) Modify_get_datatype_restriction()
to infer datatype from restriction onhas_format
. Will require to express format-datatype correspondence in ontology.