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)
mimetypebyknownfield, common/common.yamlmimetypebyknown1field, common/common.yaml, key mime_typemimetypebyvaluedata, common/common.yaml
- 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
| Value | Description |
|---|---|
| text/html | HyperText Markup Language |
| image/jpeg | JPEG image |
| application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | Excel workbook (XLSX), a vendor subtype |
| text/html; charset=utf-8 | Content-Type value with a parameter |
| html invalid | No subtype |
| text/ invalid | Empty subtype |
Translations
| Language | Name | Description |
|---|---|---|
| Russian | Тип медиа (MIME-тип) | Идентификатор формата данных вида тип/подтип, например text/html (RFC 6838). |
Sources
- wikipedia: https://en.wikipedia.org/wiki/Media_type
- wikidata: https://www.wikidata.org/wiki/Property:P1163
- doc: https://www.rfc-editor.org/rfc/rfc6838
- doc: https://www.iana.org/assignments/media-types/media-types.xhtml
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/mimetype - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/internet/mimetype.yamlon GitHub