Open danielweck opened 5 years ago
Also, prefix="cc: http://creativecommons.org/ns#"
If I am not mistaken, the ReadiumWebPublicationManifest (aka RWPM) does not encode the EPUB OPF package
> metadata
> link
as such. See the JSON Schema:
https://github.com/readium/webpub-manifest/blob/master/schema/metadata.schema.json
EDIT: see issue https://github.com/readium/webpub-manifest/issues/28
Consequently, the TypeScript model reflects that too: https://github.com/readium/r2-shared-js/blob/develop/src/models/metadata.ts
However, the OPF model should indeed include support for the link
XML element of OPF. It currently does not:
https://github.com/readium/r2-shared-js/blob/develop/src/parser/epub/opf-metadata.ts
I am not seeing a clear definition in the architecture document either:
https://github.com/readium/architecture/blob/master/streamer/parser/metadata.md
...so perhaps this is an opportunity to contribute, once we figure out the formal definition of link
parsing (CC @JayPanoz )
Related issue (Readium "1" C++ SDK): https://github.com/readium/readium-sdk/pull/318#issuecomment-444562130
Prominent use case: accessibility metadata, e.g.
http://kb.daisy.org/publishing/docs/metadata/evaluation.html
a11y:certifiedBy
( http://www.idpf.org/epub/vocab/package/a11y/#
)
dcterms:conformsTo
http://kb.daisy.org/publishing/docs/metadata/schema-org.html
schema:accessModeSufficient
http://www.idpf.org/epub/a11y/accessibility.html#sec-disc-package
The prefix URI is not preserved, only the prefix name:
prefix="cc: http://creativecommons.org/ns#"
+
<meta property="cc:attributionURL">http://code.google.com/p/epub-samples/</meta>
in:
https://github.com/IDPF/epub3-samples/blob/main/30/wasteland/META-INF/container.xml
==>
https://raw.githubusercontent.com/IDPF/epub3-samples/main/30/wasteland/META-INF/container.xml
==>
For example: https://github.com/IDPF/epub3-samples/blob/master/30/wasteland/EPUB/wasteland.opf
EDIT: see comment below https://github.com/readium/r2-shared-js/issues/16#issuecomment-1480842292
Note how
<meta property="cc:attributionURL">http://code.google.com/p/epub-samples/</meta>
is missing in the ReadiumWebPubManifest: http://readium2.herokuapp.com/pub/L2FwcC9taXNjL2VwdWJzL3dhc3RlbGFuZC1vdGYtb2JmLmVwdWI%3D/manifest.json/show/all (or https://readium2.now.sh/pub/L2hvbWUvbm93dXNlci9zcmMvbWlzYy9lcHVicy93YXN0ZWxhbmQtb3RmLW9iZi5lcHVi/manifest.json/show/all )