Datatypes

Media type (MIME type)

ID mimetype

DatatypeNot PIIidentifier

Two-part identifier of a data format, type/subtype, such as text/html, image/png or application/vnd.ms-excel, defined by RFC 6838 and registered by IANA. Email (MIME), the HTTP Content-Type header, file metadata and data catalogs use it. The top-level type is one of application, audio, example, font, haptics, image, message, model, multipart, text and video; vendor subtypes start with vnd., personal ones with prs., and unregistered ones often with x-. A value may carry parameters after a semicolon, as in text/html; charset=utf-8. Type names are case-insensitive, but the regexp accepts only the usual lowercase top-level type.

Categories
Common, Internet
Countries
Global (not tied to a country)
Languages
Common to most languages
Schema.org
encodingFormat
Wikidata
P1163
Former IDs
mime_type
Quality
100/100
Metacrafter rules
3 rules (2 by field name, 1 by value)
Supported by tools
Great Expectations Semantic Types Expectations, metacrafter

Regular expression

^(?:application|audio|example|font|haptics|image|message|model|multipart|text|video)/[A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}(?:[ \t]*;[ \t]*[A-Za-z0-9!#$%&'*+.^_`|~-]+=(?:[A-Za-z0-9!#$%&'*+.^_`|~-]+|"[^"]*"))*$

Python re syntax.

Examples

ValueDescription
text/htmlHyperText Markup Language
image/jpegJPEG image
application/vnd.openxmlformats-officedocument.spreadsheetml.sheetExcel workbook (XLSX), a vendor subtype
text/html; charset=utf-8Content-Type value with a parameter
html invalidNo subtype
text/ invalidEmpty subtype

Translations

LanguageNameDescription
RussianТип медиа (MIME-тип)Идентификатор формата данных вида тип/подтип, например text/html (RFC 6838).

Sources

Use this record