109 lines
4.8 KiB
JSON
109 lines
4.8 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "schema:WebPage",
|
|
"title": "WebPage",
|
|
"description": "A web page. Every web page is implicitly assumed to be declared to be of type WebPage, so the various properties about that webpage, such as breadcrumb may be used. We recommend explicit declaration if these properties are specified, but if they are found outside of an itemscope, they will be assumed to be about the page.",
|
|
"type": "object",
|
|
"allOf": [
|
|
{
|
|
"description": "The most generic kind of creative work, including books, movies, photographs, software programs, etc.",
|
|
"$ref": "schema:CreativeWork"
|
|
}
|
|
],
|
|
"properties": {
|
|
"breadcrumb": {
|
|
"description": "A set of links that can help a user understand and navigate a website hierarchy.",
|
|
"oneOf": [
|
|
{
|
|
"anyOf": [{ "type": "string" }, { "$ref": "schema:BreadcrumbList" }]
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [{ "type": "string" }, { "$ref": "schema:BreadcrumbList" }]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"lastReviewed": {
|
|
"description": "Date on which the content on this web page was last reviewed for accuracy and/or completeness.",
|
|
"type": "string",
|
|
"format": "date"
|
|
},
|
|
"mainContentOfPage": {
|
|
"description": "Indicates if this web page element is the main subject of the page.",
|
|
"$ref": "schema:WebPageElement"
|
|
},
|
|
"primaryImageOfPage": {
|
|
"description": "Indicates the main image on the page.",
|
|
"$ref": "schema:ImageObject"
|
|
},
|
|
"relatedLink": {
|
|
"description": "A link related to this web page, for example to other related web pages.",
|
|
"oneOf": [
|
|
{ "type": "string", "format": "uri" },
|
|
{ "type": "array", "items": { "type": "string", "format": "uri" } }
|
|
]
|
|
},
|
|
"reviewedBy": {
|
|
"description": "People or organizations that have reviewed the content on this web page for accuracy and/or completeness.",
|
|
"oneOf": [
|
|
{
|
|
"anyOf": [
|
|
{ "$ref": "schema:Organization" },
|
|
{ "$ref": "schema:Person" }
|
|
]
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{ "$ref": "schema:Organization" },
|
|
{ "$ref": "schema:Person" }
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"significantLink": {
|
|
"description": "One of the more significant URLs on the page. Typically, these are the non-navigation links that are clicked on the most.",
|
|
"oneOf": [
|
|
{ "type": "string", "format": "uri" },
|
|
{ "type": "array", "items": { "type": "string", "format": "uri" } }
|
|
]
|
|
},
|
|
"significantLinks": {
|
|
"description": "The most significant URLs on the page. Typically, these are the non-navigation links that are clicked on the most.",
|
|
"type": "string",
|
|
"format": "uri"
|
|
},
|
|
"speakable": {
|
|
"description": "Indicates sections of a Web page that are particularly 'speakable' in the sense of being highlighted as being especially appropriate for text-to-speech conversion. Other sections of a page may also be usefully spoken in particular circumstances; the 'speakable' property serves to indicate the parts most likely to be generally useful for speech.\n\nThe *speakable* property can be repeated an arbitrary number of times, with three kinds of possible 'content-locator' values:\n\n1.) *id-value* URL references - uses *id-value* of an element in the page being annotated. The simplest use of *speakable* has (potentially relative) URL values, referencing identified sections of the document concerned.\n\n2.) CSS Selectors - addresses content in the annotated page, e.g. via class attribute. Use the [[cssSelector]] property.\n\n3.) XPaths - addresses content via XPaths (assuming an XML view of the content). Use the [[xpath]] property.\n\n\nFor more sophisticated markup of speakable sections beyond simple ID references, either CSS selectors or XPath expressions to pick out document section(s) as speakable. For this\nwe define a supporting type, [[SpeakableSpecification]] which is defined to be a possible value of the *speakable* property.\n ",
|
|
"oneOf": [
|
|
{
|
|
"anyOf": [
|
|
{ "type": "string", "format": "uri" },
|
|
{ "$ref": "schema:SpeakableSpecification" }
|
|
]
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{ "type": "string", "format": "uri" },
|
|
{ "$ref": "schema:SpeakableSpecification" }
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"specialty": {
|
|
"description": "One of the domain specialities to which this web page's content applies.",
|
|
"oneOf": [
|
|
{ "$ref": "schema:Specialty" },
|
|
{ "type": "array", "items": { "$ref": "schema:Specialty" } }
|
|
]
|
|
}
|
|
}
|
|
}
|