Currently when a DataObject is created, any string can be entered for the formatId, and this value will be used in the system metadata and the Solr index. The value does not have to be a recognized IANA Media Type or a registered DataONE formatId.
Should the DataObject constructor guess the type if it is not provided, and add it to the SystemMetadata object that is contained in the DataObject, either in the <formatId> or <mediaType> field, or both?
Currently when a
DataObject
is created, any string can be entered for theformatId
, and this value will be used in the system metadata and the Solr index. The value does not have to be a recognized IANA Media Type or a registered DataONE formatId.Should the
DataObject
constructor guess the type if it is not provided, and add it to theSystemMetadata
object that is contained in the DataObject, either in the<formatId>
or<mediaType>
field, or both?