URN for MIME Type
Asked Answered
S

1

6

Does an official URN for the MIME type exist?

Mozilla Firefox and other applications use notations like "urn:mimetype:text/plain" or "urn:mimetype:handler:text/plain". There are two problems with this approach:

  1. No "mimetype" namespace exists according to the IANA's official registry (http://www.iana.org/assignments/urn-namespaces/). Thus, only "urn:x-mimetype" would be a valid namespace (according to RFC 3406 section 4.1).

  2. The slash "/" may not be used in URNs according to RFC 2141 section 2.2. But it could be encoded to "%2F".

All that considered, is there another way to represent the MIME type "text/plain" as an URN than "urn:x-mimetype:text%2Fplain"?

[UPDATE: Thinking about it, an URI would be ok too. But I can't find no URI for MIME type neither.]

Thanks

Subotica answered 24/5, 2009 at 18:28 Comment(0)
C
1

FYI, I read the presence of / as a SHOULD NOT by RFC 2141, rather than a MUST NOT.

For this approach I would just use the URI of the assignment, e.g. <http://www.iana.org/assignments/media-types/application/zip>. The only caveat is that not all of them dereference. If you can live with that though, you should be OK.

Corettacorette answered 9/12, 2009 at 6:42 Comment(2)
@user227745, that is a URL, not a URNGuerdon
@smartcaveman: OP said that "an URI would be ok too", which includes URLs.Egress

© 2022 - 2024 — McMap. All rights reserved.