Opened 3 years ago

Closed 3 years ago

#18 closed task (fixed)

Use URI form for format attribute in manifest.xml

Reported by: florian Owned by: Martin Scharm <martin@…>
Priority: critical Milestone:
Component: code Version:
Keywords: Cc: martin

Description

The format attributes in the manifest.xml should always be provided in URI form either as Identifiers.org URI or purl.org URI (for Internet Media types).

Identifiers.org URIs are to be preferred over purl.org URIs.

For compatability, old COMBINE archives with Media type names should still be supported.

See
COMBINE Archive Specification, Version 1, Release Candidate 2, Subsection 3.7

Change History (3)

comment:1 Changed 3 years ago by martin

mmh. seems to be kind of problematic. what's the uri for bmp images? thought i can just prefix the mime types with http://mediatypes.appspot.com/..? (as in http://mediatypes.appspot.com/image/png)

but even for very basic mimes that does not work: http://mediatypes.appspot.com/image/bmp

any ideas?

comment:2 Changed 3 years ago by florian

Media types as defined by IANA can be found here:
https://www.iana.org/assignments/media-types/media-types.xhtml

comment:3 Changed 3 years ago by Martin Scharm <martin@…>

  • Owner set to Martin Scharm <martin@…>
  • Resolution set to fixed
  • Status changed from new to closed

In b936344b5e31750bcf9cf7b16ec122a877fd255b:

[special attention] formats are now URIs [fixes #18]

that, unfortunately, has some implications for backwards compatibility. formats
should now always be provided in form of URIs. old versions are still available,
but deprecated. functions returning the format will exlusively return URIs.

all the formatizing stuff was outsourced to our combine extension project,
available from git://sems.uni-rostock.de:combine-ext (see also
https://sems.uni-rostock.de/trac/combine-ext). especially the formatizer will be
interesting for you:
https://sems.uni-rostock.de/trac/combine-ext/wiki/CombineFormatizer

thus, you should definetly update your code.

Note: See TracTickets for help on using tickets.
authorship