See this content according to other profiles/views and Media Type/formats:
Media Types Web Service
This web service, a Linked Data API, delivers IANA's Media Types in forms useful for Linked Data applications.
Media Types (used to be called MIME types, sometimes called formats, also see Wikipedia) are listed by IANA at https://www.iana.org/assignments/media-types/media-types.xml and we just take that data, convert it to RDF, store it, and serve it up using a small Python Linked Data API imaginatively called pyLDAPI.
The identifier for this web service as a whole is just it's web address:
https://conneg.info/mediatypes-service but, more importantly, the individual items delivered by this web service have identifiers.
W3ID provides a "secure, permanent URL re-direction service for Web applications.
By using W3ID-based identifiers for each Media Type, this Register provides a stable way to refer to each Media Types by URI.
This is not new or groundbreaking stuff but previous attempts to make this information available via URI seem to be offline (e.g. see http://purl.org/NET/mediatypes/).
Types & Identifiers
- HTTP Headers Functional Profile
- QSA Functional Profile
- QSA Alternate Keywords Functional Profile
- Resource Representation Description
You should identify this service using the identifier https://conneg.info/mediatypes-service.
The endpoint of this service is at its URI identifier location: https://conneg.info/mediatypes-service.
License & Rights
The content of this API is licensed for use under the Creative Commons 4.0, © Nicholas J Car, 2019.
If you want to know more, contact:
Keywords & Themes
This service is tagged and classified as follows:
The code for this application is online at https://github.com/nicholascar/mediatypes-service.
Usage Note - RDF & Linked Data
The initial reason for creating this web service was to allow for standardised human- and machine-readable forms of the IANA Media Types information to be accessible (dereferencable) via stable URIs, as per Linked Data expectations.
For every Media Type type in IANA's list, this W3ID makes a URI like this:
text/html we have:
It's not rocket surgery...
Clicking on that URI yields a simple web page (HTML) view of the Media Type's properties, however you can also get machine-readable forms of the Media Type's information, formulated using RDF, in a number of ways. This system implements the Content Negotiation by Profile specification which means you can request not only different formats of information but also information according to different profiles. For example:
- Add a
_formatquery string argument to the URI with a Media Type value to specify a chosen format. To get RDF in the Turtle format for the Media Type
image/jpg, use this URI:
- Use HTTP Content Negotiation and set an
Acceptheader to the format you want. For
image/jpginformation in the
text/turtleformat, as above, do this, using the CURL command line tool:
$ curl --headers 'Accept: text/turtle' https://w3id.org/mediatype/image/jpg
You can download the entire content that this service delivers as a single file: