[adapters] Use an adapter for serializing entities to a bare python structure
which may be used for e.g. JSON export or other and allow to have different
serializations for each entity types.
Closes #6378035
# migrate default format for TriInfo `comment_format` attributesync_schema_props_perms('TrInfo')commit()