representation.file.mime_typeMIME type (media type) for files and HTTP content (e.g., text/plain, application/json, image/png).
$ finetype infer -i "text/plain"
→ representation.file.mime_typeSELECT finetype('text/plain');
-- → 'representation.file.mime_type'LOWER(CAST({col} AS VARCHAR))-- Normalise and cast in one step
SELECT TRY_CAST(finetype_cast(my_column) AS VARCHAR) AS clean_value
FROM my_table
WHERE finetype(my_column) = 'representation.file.mime_type';charset: REGEXP_EXTRACT({col}, 'charset=([^;]+)')
subtype: REGEXP_EXTRACT({col}, '/([^;]+)')
type: REGEXP_EXTRACT({col}, '^([^/]+)'){
"$id": "https://meridian.online/schemas/representation.file.mime_type",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "MIME type (media type) for files and HTTP content (e.g., text/plain, application/json, image/png).",
"examples": [
"text/plain",
"application/json",
"image/png",
"text/html; charset=utf-8",
"application/vnd.ms-excel"
],
"pattern": "^[a-zA-Z]+/[a-zA-Z0-9.+\\-]+(;.*)?$",
"title": "MIME Type",
"type": "string",
"x-finetype-broad-type": "VARCHAR",
"x-finetype-transform": "LOWER(CAST({col} AS VARCHAR))"
}text/plainapplication/jsonimage/pngtext/html; charset=utf-8application/vnd.ms-excel