MediaType

Summary

Standardized way of indicating the type of content of an Element or a Property. A String constrained to the RFC 2046 specificiation.

Description

A MediaType is a string constrained to the RFC 2046 MIME Part Two: Media Types. It provides a standardized way of indicating the type of content of an Element or a Property.

Example

  • application/java-archive
  • application/vcard+json
  • application/vnd.oasis.opendocument.text
  • image/avif
  • text/csv;charset=UTF-8
  • text/javascript
  • text/spdx

A list of all possible media types is available at IANA Protocol Registries.

Metadata

https://spdx.org/rdf/3.0.1/terms/Core/MediaType

Name MediaType
SubclassOf xsd:string

Format pattern

^[^\/]+\/[^\/]+$