Skip to content

Instantly share code, notes, and snippets.

View HadrienGardeur's full-sized avatar

Hadrien Gardeur HadrienGardeur

View GitHub Profile
{
"@context": "http://readium.org/webpub/default.jsonld",
"metadata": {
"@type": "http://schema.org/GraphicNovel",
"title": "IIIF Example",
"identifier": "urn:isbn:97822531670xx",
"language": "en",
"modified": "2017-06-03T17:00:00Z",
"schema:license": "http://creativecommons.org/licenses/by-sa/3.0",
@HadrienGardeur
HadrienGardeur / metadata-basic.json
Last active October 5, 2018 07:27
JSON-LD for application/webpub+json
{
"@context": "http://readium.org/webpub/default.jsonld",
"metadata": {
"@type": "http://schema.org/Book",
"identifier": "urn:isbn:9780000000001",
"title": "Moby-Dick",
"author": "Herman Melville",
"language": "en",
"publisher": "Whale Publishing Ltd.",
"modified": "2016-02-18T10:32:18Z",
@HadrienGardeur
HadrienGardeur / 1-navigation.json
Last active March 16, 2017 22:51
Attempt to port OPDS to the new serialization for EPUB (application/epub+json), might be OPDS 2.0 (application/opds+json)
{
"@context": "http://opds-spec.org/opds.jsonld",
"metadata": {"title": "eBook Store"},
"links": [
{"rel": "self", "href": "/navigation.json", "type": "application/opds+json"},
{"rel": "shelf", "href": "/shelf", "type": "application/opds+json"}
],
@HadrienGardeur
HadrienGardeur / acquisition.json
Last active December 10, 2015 00:49
Attempt to bring OPDS to JSON. Kinda, sorta HAL based but staying away from the use of _embedded and generic collections for now.
{
"_type": "application/vnd.opds.acquisition+json",
"title": "Best Sellers",
"_links": {
"self": { "href": "/top", "type": "application/vnd.opds.acquisition+json" },
"next": { "href": "/top?page=2", "type": "application/vnd.opds.acquisition+json" },
"search": { "name": "Search in catalog", "href": "/search?q={query}", "type": "application/vnd.opds.acquisition+json", "templated": true },
"namespace": { "name": "opensearch", "href": "http://a9.com/-/spec/opensearch/1.1/" },
"curie": { "name": "opds", "href": "http://opds-spec.org/{rel}", "templated": "true" }