XML technologies / ePUB / Open Publication Format / Publication metadata
(Excerpt from “E-Books mit ePUB ─ Von Word zum E-Book mit XML” by Dr. Victor Wang)
Professional publications need title, author, editor, publisher and other essential details. Publication metadata provides these, with syntax defined by Open Publication Format. OPF uses the metadata standard Dublin Core. All corresponding element names carry the Dublin Core namespace prefix dc, for example <dc:title>. Only when Dublin Core lacks a suitable element may custom metadata be declared. Write it in XHTML syntax using <meta>. OPF also adds attributes prefixed opf.
Consider this title’s bibliographic details:
Author | Albert Einstein |
Title | Über die spezielle und die allgemeine Relativitätstheorie |
Publisher | Springer Berlin Heidelberg |
Edition | 24 |
Publication year | 2009 |
ISBN | 978-3-540-87776-9 |
DOI | 10.1007/978-3-540-87777-6 |
Table: Einstein example metadata
The metadata element inside <package> then looks like this:
<package unique-identifier="BestellNr87776" version="2.0" xmlns="http://www.idpf.org/2007/opf"> ①
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf"> ②
<dc:title>Über die spezielle und die allgemeine Relativitätstheorie</dc:title>
<dc:creator opf:role="aut" opf:file-as="Einstein, Albert">Albert Einstein</dc:creator> ③
<dc:language>de</dc:language>
<dc:identifier opf:scheme="ISBN" id="BestellNr87776">978-3-540-87776-9</dc:identifier> ④
<dc:identifier opf:scheme="DOI">10.1007/978-3-540-87777-6</dc:identifier> ④
<dc:publisher>Springer Berlin Heidelberg</dc:publisher>
<dc:date opf:event="publication">2009</dc:date>
</metadata>
. . .
</package>
Code example: Einstein Dublin Core metadata
unique-identifier at ① uses BestellNr87776, derived from the ISBN order number. It must match the id attribute of <dc:identifier> at ④.
Clearly separate namespaces because OPF combines sources. Root <package> defines its OPF namespace xmlns:opf="http://www.idpf.org/2007/opf" at ①; metadata at ② goes into <dc:metadata> under Dublin Core xmlns:dc="http://purl.org/dc/elements/1.1/".
OPF extends Dublin Core with two attributes. At ③, <dc:creator> gains opf:role="aut" to qualify the named person’s role, here author.
At ④, <dc:identifier> similarly identifies the publication. Two identifiers appear: opf:scheme defines one as ISBN (opf:scheme="ISBN") and another as DOI (opf:scheme="DOI").
We now describe the 15 Dublin Core elements, starting with OPF’s three required elements: title, unique identifier and language.
Title <dc:title> (required)
A title is naturally mandatory. Handling multiple titles, such as a second-language title, remains unspecified; readers are expected to show at least the first.
Unique identifier <dc:identifier> (required)
This is also essential. As in the Einstein example, relate id on <dc:identifier> to unique-identifier on <package>:
<package unique-identifier="BestellNr87776" version="2.0" xmlns:opf="http://www.idpf.org/2007/opf">
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
...
<dc:identifier opf:scheme="ISBN" id="BestellNr87776">978-3-540-87776-9</dc:identifier>
</metadata>
...
</package>
Language <dc:language> (required)
At least one language declaration is required. <dc:language> values match XML/XHTML xml:lang. For German, use de. Common languages follow.
Value | Language |
|---|---|
de | German |
en | English |
en-us | English—USA |
en-gb | English—UK |
es | Spanish |
fr | French |
Table: <dc:language> values for selected languages
Multiple languages are allowed; readers should process at least the first.
The other twelve Dublin Core elements are optional.
Authors <dc:creator>/<dc:contributor>
Dublin Core distinguishes authors from other contributors. Main authors use <dc:creator>, others <dc:contributor>. The seemingly artificial distinction becomes clearer with opf:role, added by OPF with many possible roles, including:
aut: author chiefly responsible for content
edt: editor, for example of a collection
ill: illustrator
nrt: audiobook narrator
red: editor
trl: translator
A main author uses <dc:creator opf:role"aut">; a translator could use <dc:contributor opf:role"trl">. Repeat elements for equal-ranking authors; readers should preserve their order.
Optional opf:file-as supplies a normalized, searchable, machine-readable author form.
<dc:creator opf:role="aut" opf:file-as="Goethe, Johann Wolfgang von">Johann Wolfgang von Goethe</dc:creator> Usually this is a sorting form with surname first.
Dates <dc:date>
Publication dates matter, especially the release date indicating content currency. OPF adds optional opf:event to qualify it with these values:
publication: release date, usually year
creation: initial creation date, potentially an ePUB data-production timestamp
modification: revision date identifying versions in a publication cycle, comparable to print editions
Dates may use a four-digit year, JJJJ, or normalized JJJJ-MM or JJJJ-MM-DD.
Subject/keyword <dc:subject>
<dc:subject> records subject classification or a keyword.
Format <dc:format>
This element records media type; OPF suggests MIME media type as a vocabulary.
Source <dc:source>
A source used to generate the ePUB, such as a database export.
Description <dc:description>
Additional description, perhaps an abstract or contents-like text.
Type <dc:type>
Classify the publication with an established value list. Dublin Core recommends DCMI Type Vocabulary. Normally choose Text for written publications of every kind.
Publisher <dc:publisher>
Publishing entity: person, organization, company or publisher.
Rights <dc:rights>
Existing rights, usually copyright. Like all these metadata, this does not technically restrict access.
Relation <dc:relation>
References supporting external resources, such as a website with publication information. Use a unique, recognized identification system, such as URI.
Coverage <dc:coverage>
Spatial or temporal scope, for example a publication valid only during a particular period.
Copyright © mitp 2011
You may print the online version for your private use.
Otherwise, this chapter from “E-Books mit ePUB” is subject to the same terms as the printed edition: the work and all its parts are protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Verlagsgruppe Hüthig Jehle Rehm GmbH, Im Weiher 10, 69121 Heidelberg, kundenbetreuung(at)hjr-verlag.de