oda-hub / oda_api

API client to access some of the MMODA resources: INTEGRAL, POLAR, ANTARES, LIGO/Virgo, SDSS
Other
2 stars 2 forks source link

datatype from has_format #255

Open dsavchenko opened 6 months ago

dsavchenko commented 6 months ago

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.