Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{ | { | ||
"$schema": "http://json-schema.org/draft-07/schema#", | |||
"$id": "https://readium.org/webpub-manifest/schema/metadata.schema.json", | |||
"title": "Metadata", | |||
"type": "object", | |||
"properties": { | |||
"@type": { | |||
"type": "string", | |||
"format": "uri" | |||
}, | |||
"conformsTo": { | |||
"type": [ | |||
"string", | |||
"array" | |||
], | |||
"format": "uri", | |||
"items": { | |||
"type": "string", | |||
"format": "uri" | |||
} | |||
}, | |||
"title": { | |||
"title": "title", | |||
"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/LanguageMap\u0026action=raw" | |||
}, | |||
"sortAs": { | |||
"title": "sortAs", | |||
"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/LanguageMap\u0026action=raw" | |||
}, | |||
"subtitle": { | |||
"title": "subtitle", | |||
"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/LanguageMap\u0026action=raw" | |||
}, | |||
"identifier": { | |||
"type": "string", | |||
"format": "uri" | |||
}, | |||
"altIdentifier": { | |||
"title": "altIdentifier", | |||
"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/Altidentifier\u0026action=raw" | |||
}, | |||
"accessibility": { | |||
"title": "accessibility", | |||
"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/A11y\u0026action=raw" | |||
}, | |||
"modified": { | |||
"type": "string", | |||
"format": "date-time" | |||
}, | |||
"published": { | |||
"type": "string", | |||
"anyOf": [ | |||
{ | |||
"format": "date" | |||
}, | |||
{ | |||
"format": "date-time" | |||
} | |||
] | |||
}, | |||
"language": { | |||
"description": "The language must be a valid BCP 47 tag.", | |||
"type": [ | |||
"string", | |||
"array" | |||
], | |||
"items": { | |||
"type": "string", | |||
"pattern": "^((?\u003Cgrandfathered\u003E(en-GB-oed|i-ami|i-bnn|i-default|i-enochian|i-hak|i-klingon|i-lux|i-mingo|i-navajo|i-pwn|i-tao|i-tay|i-tsu|sgn-BE-FR|sgn-BE-NL|sgn-CH-DE)|(art-lojban|cel-gaulish|no-bok|no-nyn|zh-guoyu|zh-hakka|zh-min|zh-min-nan|zh-xiang))|((?\u003Clanguage\u003E([A-Za-z]{2,3}(-(?\u003Cextlang\u003E[A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4}|[A-Za-z]{5,8})(-(?\u003Cscript\u003E[A-Za-z]{4}))?(-(?\u003Cregion\u003E[A-Za-z]{2}|[0-9]{3}))?(-(?\u003Cvariant\u003E[A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(-(?\u003Cextension\u003E[0-9A-WY-Za-wy-z](-[A-Za-z0-9]{2,8})+))*(-(?\u003CprivateUse\u003Ex(-[A-Za-z0-9]{1,8})+))?)|(?\u003CprivateUse2\u003Ex(-[A-Za-z0-9]{1,8})+))$" | |||
}, | |||
"pattern": "^((?\u003Cgrandfathered\u003E(en-GB-oed|i-ami|i-bnn|i-default|i-enochian|i-hak|i-klingon|i-lux|i-mingo|i-navajo|i-pwn|i-tao|i-tay|i-tsu|sgn-BE-FR|sgn-BE-NL|sgn-CH-DE)|(art-lojban|cel-gaulish|no-bok|no-nyn|zh-guoyu|zh-hakka|zh-min|zh-min-nan|zh-xiang))|((?\u003Clanguage\u003E([A-Za-z]{2,3}(-(?\u003Cextlang\u003E[A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4}|[A-Za-z]{5,8})(-(?\u003Cscript\u003E[A-Za-z]{4}))?(-(?\u003Cregion\u003E[A-Za-z]{2}|[0-9]{3}))?(-(?\u003Cvariant\u003E[A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(-(?\u003Cextension\u003E[0-9A-WY-Za-wy-z](-[A-Za-z0-9]{2,8})+))*(-(?\u003CprivateUse\u003Ex(-[A-Za-z0-9]{1,8})+))?)|(?\u003CprivateUse2\u003Ex(-[A-Za-z0-9]{1,8})+))$" | |||
}, | |||
"author": { | |||
"title": "author", | |||
"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/Contributor\u0026action=raw" | |||
}, | |||
"translator": { | |||
"title": "translator", | |||
"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/Contributor\u0026action=raw" | |||
}, | |||
"editor": { | |||
"title": "editor", | |||
"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/Contributor\u0026action=raw" | |||
}, | |||
"artist": { | |||
"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/Contributor\u0026action=raw" | |||
}, | |||
"illustrator": { | |||
"title": "illustrator", | |||
"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/Contributor\u0026action=raw" | |||
}, | |||
"letterer": { | |||
"title": "letterer", | |||
"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/Contributor\u0026action=raw" | |||
}, | |||
"penciler": { | |||
"title": "penciler", | |||
"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/Contributor\u0026action=raw" | |||
}, | |||
"colorist": { | |||
"title": "colorist", | |||
"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/Contributor\u0026action=raw" | |||
}, | |||
"inker": { | |||
"title": "inker", | |||
"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/Contributor\u0026action=raw" | |||
}, | |||
"narrator": { | |||
"title": "narrator", | |||
"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/Contributor\u0026action=raw" | |||
}, | |||
"contributor": { | |||
"title": "contributor", | |||
"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/Contributor\u0026action=raw" | |||
}, | |||
"publisher": { | |||
"title": "publisher", | |||
"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/Contributor\u0026action=raw" | |||
}, | |||
"imprint": { | |||
"title": "imprint", | |||
"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/Contributor\u0026action=raw" | |||
}, | |||
"subject": { | |||
"title": "subject", | |||
"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/Subject\u0026action=raw" | |||
}, | |||
"layout": { | |||
"title": "layout", | |||
"description": "Hints how the layout of the publication should be presented", | |||
"type": "string", | |||
"enum": [ | |||
"fixed", | |||
"reflowable", | |||
"scrolled" | |||
] | |||
}, | |||
"readingProgression": { | |||
"title": "readingProgression", | |||
"type": "string", | |||
"enum": [ | |||
"rtl", | |||
"ltr" | |||
], | |||
"default": "ltr" | |||
}, | |||
"description": { | |||
"title": "description", | |||
"type": "string" | |||
}, | |||
"duration": { | |||
"title": "duration", | |||
"type": "number", | |||
"exclusiveMinimum": 0 | |||
}, | |||
"numberOfPages": { | |||
"title": "numberOfPages", | |||
"type": "integer", | |||
"exclusiveMinimum": 0 | |||
}, | |||
"belongsTo": { | |||
"title": "belongsTo", | |||
"type": "object", | |||
"properties": { | |||
"collection": { | |||
"title": "collection", | |||
"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/Contributor\u0026action=raw" | |||
}, | |||
"series": { | |||
"title": "series", | |||
"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/Contributor\u0026action=raw" | |||
} | |||
} | |||
}, | |||
"tdm": { | |||
"title": "tdm", | |||
"type": "object", | |||
"required": [ | |||
"reservation" | |||
], | |||
"properties": { | |||
"reservation": { | |||
"type": "string", | |||
"enum": [ | |||
"all", | |||
"none" | |||
] | |||
}, | |||
"policy": { | |||
"type": "string", | |||
"format": "uri" | |||
} | |||
} | |||
} | |||
}, | |||
"required": [ | |||
"title" | |||
], | |||
"allOf": [ | |||
{ | |||
"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/ExtensionsEpubMetadata\u0026action=raw" | |||
} | |||
] | |||
} | } |
Revision as of 09:34, 8 September 2025
$schema | "http://json-schema.org/draft-07/schema#" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
$id | "https://readium.org/webpub-manifest/schema/metadata.schema.json" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
title | "Metadata" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type | "object" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
properties |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
allOf |
|