Derived/Extended application profiles are not supported
The current implementation lacks support for application profiles created with the AIMS generator that inherit some of their fields from other application profiles.
TODO:
-
For MetadataForms detect whether the field owl:imports
is present in the ApplicationProfile/Graph (e.g. by running a SPARQL query) -
If the field is present, iterate over all values in the list and fetch these application profiles from Coscine. -
Integrate the profiles into the current one (by adding their fields to the rdf graph, before parsing into FormFields) -
Resolve sh:node
properties to imported fields. -
??? -
Profit
I don't know how the situation is for single fields derived from another profile and whether that situation is even possible. The plan above should handle the integration of all fields from another profile into the current one.