JsonSchema:WebPublication/Link
	 
	
	
		From Wikisphere
		
		
		
		
		Jump to navigation
		Jump to search
		
				
				
				
				
				
				 | 
				 | 
				
| Line 48: | 
Line 48: | 
 | 			"allOf": [  |  | 			"allOf": [  | 
 | 				{  |  | 				{  | 
 | 					"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/ExtensionsEpubProperties\u0026action=raw"  |  | 					"$ref": "/w/index.php?title=JsonSchema:WebPublication/ExtensionsEpubProperties\u0026action=raw"  | 
 | 				},  |  | 				},  | 
 | 				{  |  | 				{  | 
 | 					"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/ExtensionsEncryptionProperties\u0026action=raw"  |  | 					"$ref": "/w/index.php?title=JsonSchema:WebPublication/ExtensionsEncryptionProperties\u0026action=raw"  | 
 | 				},  |  | 				},  | 
 | 				{  |  | 				{  | 
| Line 99: | 
Line 99: | 
 | 			"type": "array",  |  | 			"type": "array",  | 
 | 			"items": {  |  | 			"items": {  | 
 | 				"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/Link\u0026action=raw"  |  | 				"$ref": "/w/index.php?/index.php?title=JsonSchema:WebPublication/Link\u0026action=raw"  | 
 | 			}  |  | 			}  | 
 | 		},  |  | 		},  | 
| Line 106: | 
Line 106: | 
 | 			"type": "array",  |  | 			"type": "array",  | 
 | 			"items": {  |  | 			"items": {  | 
 | 				"$ref": "/mediawiki-1.44.0/index.php?title=JsonSchema:WebPublication/Link\u0026action=raw"  |  | 				"$ref": "/w/index.php?title=JsonSchema:WebPublication/Link\u0026action=raw"  | 
 | 			}  |  | 			}  | 
 | 		}  |  | 		}  | 
		Revision as of 09:38, 8 September 2025
| $schema | "http://json-schema.org/draft-07/schema#" | 
|---|
| $id | "https://readium.org/webpub-manifest/schema/link.schema.json" | 
|---|
| title | "Link Object" | 
|---|
| description | "Link Object for the Readium Web Publication Manifest" | 
|---|
| type | "object" | 
|---|
| properties | | href | | description | "URI or URI template of the linked resource" | 
|---|
 | type | "string" | 
|---|
 
  | 
|---|
 | type | | description | "MIME type of the linked resource" | 
|---|
 | type | "string" | 
|---|
 
  | 
|---|
 | templated | | description | "Indicates that a URI template is used in href" | 
|---|
 | type | "boolean" | 
|---|
 
  | 
|---|
 | title | | description | "Title of the linked resource" | 
|---|
 | type | "string" | 
|---|
 
  | 
|---|
 | rel | | description | "Relation between the linked resource and its containing collection" | 
|---|
 | type |  | 
|---|
 | items |  | 
|---|
 
  | 
|---|
 | properties | | description | "Properties associated to the linked resource" | 
|---|
 | type | "object" | 
|---|
 | properties | | page | | description | "Indicates how the linked resource should be displayed in a reading environment that displays synthetic spreads." | 
|---|
 | type | "string" | 
|---|
 | enum |  | 
|---|
 
  | 
|---|
 
  | 
|---|
 | allOf | | $ref | "/w/index.php?title=JsonSchema:WebPublication/ExtensionsEpubProperties&action=raw" | 
|---|
 
  |  
| $ref | "/w/index.php?title=JsonSchema:WebPublication/ExtensionsEncryptionProperties&action=raw" | 
|---|
 
  |  
| $ref | "https://drafts.opds.io/schema/properties.schema.json" | 
|---|
 
  |  
  | 
|---|
 
  | 
|---|
 | height | | description | "Height of the linked resource in pixels" | 
|---|
 | type | "integer" | 
|---|
 | exclusiveMinimum | 0 | 
|---|
 
  | 
|---|
 | width | | description | "Width of the linked resource in pixels" | 
|---|
 | type | "integer" | 
|---|
 | exclusiveMinimum | 0 | 
|---|
 
  | 
|---|
 | size | | description | "Original size of the resource in bytes, prior to any use of encryption or compression in an archive" | 
|---|
 | type | "integer" | 
|---|
 | exclusiveMinimum | 0 | 
|---|
 
  | 
|---|
 | bitrate | | description | "Bitrate of the linked resource in kbps" | 
|---|
 | type | "number" | 
|---|
 | exclusiveMinimum | 0 | 
|---|
 
  | 
|---|
 | duration | | description | "Length of the linked resource in seconds" | 
|---|
 | type | "number" | 
|---|
 | exclusiveMinimum | 0 | 
|---|
 
  | 
|---|
 | language | | description | "Expected language of the linked resource" | 
|---|
 | type |  | 
|---|
 | items | | type | "string" | 
|---|
 | pattern | "^((?<grandfathered>(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))|((?<language>([A-Za-z]{2,3}(-(?<extlang>[A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4}|[A-Za-z]{5,8})(-(?<script>[A-Za-z]{4}))?(-(?<region>[A-Za-z]{2}|[0-9]{3}))?(-(?<variant>[A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(-(?<extension>[0-9A-WY-Za-wy-z](-[A-Za-z0-9]{2,8})+))*(-(?<privateUse>x(-[A-Za-z0-9]{1,8})+))?)|(?<privateUse2>x(-[A-Za-z0-9]{1,8})+))$" | 
|---|
 
  | 
|---|
 | pattern | "^((?<grandfathered>(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))|((?<language>([A-Za-z]{2,3}(-(?<extlang>[A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4}|[A-Za-z]{5,8})(-(?<script>[A-Za-z]{4}))?(-(?<region>[A-Za-z]{2}|[0-9]{3}))?(-(?<variant>[A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(-(?<extension>[0-9A-WY-Za-wy-z](-[A-Za-z0-9]{2,8})+))*(-(?<privateUse>x(-[A-Za-z0-9]{1,8})+))?)|(?<privateUse2>x(-[A-Za-z0-9]{1,8})+))$" | 
|---|
 
  | 
|---|
 | alternate | | description | "Alternate resources for the linked resource" | 
|---|
 | type | "array" | 
|---|
 | items | | $ref | "/w/index.php?/index.php?title=JsonSchema:WebPublication/Link&action=raw" | 
|---|
 
  | 
|---|
 
  | 
|---|
 | children | | description | "Resources that are children of the linked resource, in the context of a given collection role" | 
|---|
 | type | "array" | 
|---|
 | items | | $ref | "/w/index.php?title=JsonSchema:WebPublication/Link&action=raw" | 
|---|
 
  | 
|---|
 
  | 
|---|
 
  | 
|---|
| required |  | 
|---|
| if |  | 
|---|
| then | | properties | | href | | type | "string" | 
|---|
 | format | "uri-reference" | 
|---|
 
  | 
|---|
 
  | 
|---|
 
  | 
|---|
| else | | properties | | href | | type | "string" | 
|---|
 | format | "uri-template" | 
|---|
 
  | 
|---|
 
  | 
|---|
 
  | 
|---|