Update web-platform-tests to revision e8bfc205e36ad699601212cd50083870bad9a75d

This commit is contained in:
Ms2ger 2016-11-14 11:07:09 +01:00
parent 65dd6d4340
commit ccdb0a3458
1428 changed files with 118036 additions and 9786 deletions

View file

@ -9,13 +9,12 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Definition: External Web Resource",
"description": "True when the object is an External Web Resource, i.e., includes an id that is of format uri but does not contain value (Textual Body) or source (Specific Resource) keys (Sections 3.2.1, 3.2.4, 4).",
"description": "True when the object is an External Web Resource, i.e., includes an id that is of format uri but does not contain source (Specific Resource) keys (Sections 3.2.1, 3.2.4, 4).",
"type": "object",
"allOf": [ {"$ref": "id.json#/definitions/idValueFound"} ],
"not":
{ "anyOf":
[
{ "required": ["value"] },
{ "required": ["source"] },
{ "required": ["target"] }
]
@ -26,23 +25,23 @@
{
"type": "object",
"properties":
{
"source": {"$ref": "#/definitions/externalWebResourceDetected"}
}
{
"source": {"$ref": "#/definitions/externalWebResourceDetected"}
}
},
"itemEwrDetected":
{
"type": "object",
"properties":
{
"items": {
"type": "array",
"minItems": 1,
"not":
{ "items": {"not": { "$ref": "#/definitions/externalWebResourceDetected" } } }
{
"items": {
"type": "array",
"minItems": 1,
"not":
{ "items": {"not": { "$ref": "#/definitions/externalWebResourceDetected" } } }
}
}
}
},
"textualBodyFound" :
@ -65,14 +64,14 @@
{
"type": "object",
"properties":
{
"items": {
"type": "array",
"minItems": 1,
"not":
{ "items": {"not": { "$ref": "#/definitions/textualBodyFound" } } }
{
"items": {
"type": "array",
"minItems": 1,
"not":
{ "items": {"not": { "$ref": "#/definitions/textualBodyFound" } } }
}
}
}
},
"targetResourcesFound" :
@ -98,15 +97,15 @@
"title": "Definition: Resources that can be used as Body",
"description": "True when the string is format uri or the object is recognized as a valid body resource (Sections 3.2 and 4).",
"type" : ["string", "object"],
"oneOf": [
"anyOf": [
{"$ref": "id.json#/definitions/stringUri"},
{"$ref": "choiceSet.json#/definitions/choiceDetected" },
{"$ref": "choiceSet.json#/definitions/compositeDetected" },
{"$ref": "choiceSet.json#/definitions/independentsDetected" },
{"$ref": "choiceSet.json#/definitions/listDetected" },
{"$ref": "specificResource.json#/definitions/specificeResourceDetected" },
{"$ref": "#/definitions/externalWebResourceDetected" },
{"$ref": "#/definitions/textualBodyFound" }
{"$ref": "choiceSet.json#/definitions/independentsDetected" },
{"$ref": "choiceSet.json#/definitions/listDetected" },
{"$ref": "specificResource.json#/definitions/specificeResourceDetected" },
{"$ref": "#/definitions/externalWebResourceDetected" },
{"$ref": "#/definitions/textualBodyFound" }
]
},
@ -297,16 +296,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/recognizedTypeFound" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/recognizedTypeFound" } }
}
}
}
},
"required": ["items"]
},
@ -319,12 +318,12 @@
"type": "object",
"properties":
{
"source":
{
"type": "object",
"required": ["type"] ,
"$ref": "#/definitions/resourceTypeRecognizedIfPresent"
}
"source":
{
"type": "object",
"required": ["type"] ,
"$ref": "#/definitions/resourceTypeRecognizedIfPresent"
}
},
"required": ["source"]
},
@ -408,16 +407,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/formatPropertyFound" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/formatPropertyFound" } }
}
}
}
},
"required": ["items"]
},
@ -430,12 +429,12 @@
"type": "object",
"properties":
{
"source":
{
"type": "object",
"required": ["format"] ,
"$ref": "#/definitions/formatValidIfPresent"
}
"source":
{
"type": "object",
"required": ["format"] ,
"$ref": "#/definitions/formatValidIfPresent"
}
},
"required": ["source"]
},
@ -466,16 +465,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/singleFormatPropertyFound" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/singleFormatPropertyFound" } }
}
}
}
},
"required": ["items"]
},
@ -488,12 +487,12 @@
"type": "object",
"properties":
{
"source":
{
"type": "object",
"required": ["format"] ,
"$ref": "#/definitions/formatSingularIfPresent"
}
"source":
{
"type": "object",
"required": ["format"] ,
"$ref": "#/definitions/formatSingularIfPresent"
}
},
"required": ["source"]
},
@ -582,16 +581,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/languagePropertyFound" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/languagePropertyFound" } }
}
}
}
},
"required": ["items"]
},
@ -604,12 +603,12 @@
"type": "object",
"properties":
{
"source":
{
"type": "object",
"required": ["language"] ,
"$ref": "#/definitions/languageValidIfPresent"
}
"source":
{
"type": "object",
"required": ["language"] ,
"$ref": "#/definitions/languageValidIfPresent"
}
},
"required": ["source"]
},
@ -640,16 +639,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/singleLanguagePropertyFound" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/singleLanguagePropertyFound" } }
}
}
}
},
"required": ["items"]
},
@ -662,12 +661,12 @@
"type": "object",
"properties":
{
"source":
{
"type": "object",
"required": ["language"] ,
"$ref": "#/definitions/languageSingularIfPresent"
}
"source":
{
"type": "object",
"required": ["language"] ,
"$ref": "#/definitions/languageSingularIfPresent"
}
},
"required": ["source"]
},
@ -720,16 +719,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/processingLanguagePropertyFound" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/processingLanguagePropertyFound" } }
}
}
}
},
"required": ["items"]
},
@ -742,12 +741,12 @@
"type": "object",
"properties":
{
"source":
{
"type": "object",
"required": ["processingLanguage"] ,
"$ref": "#/definitions/processingLanguageValidIfPresent"
}
"source":
{
"type": "object",
"required": ["processingLanguage"] ,
"$ref": "#/definitions/processingLanguageValidIfPresent"
}
},
"required": ["source"]
},
@ -802,16 +801,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/textDirectionPropertyFound" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/textDirectionPropertyFound" } }
}
}
}
},
"required": ["items"]
},
@ -824,12 +823,12 @@
"type": "object",
"properties":
{
"source":
{
"type": "object",
"required": ["textDirection"] ,
"$ref": "#/definitions/textDirectionValidIfPresent"
}
"source":
{
"type": "object",
"required": ["textDirection"] ,
"$ref": "#/definitions/textDirectionValidIfPresent"
}
},
"required": ["source"]
},
@ -848,9 +847,9 @@
{
"type": "object",
"properties":
{
"source": {"$ref": "#/definitions/ewrWithItems"}
},
{
"source": {"$ref": "#/definitions/ewrWithItems"}
},
"required": ["source"]
},
@ -858,14 +857,14 @@
{
"type": "object",
"properties":
{
"items": {
"type": "array",
"minItems": 1,
"not":
{ "items": {"not": { "$ref": "#/definitions/ewrWithItems" } } }
}
},
{
"items": {
"type": "array",
"minItems": 1,
"not":
{ "items": {"not": { "$ref": "#/definitions/ewrWithItems" } } }
}
},
"required": ["items"]
},
@ -882,9 +881,9 @@
{
"type": "object",
"properties":
{
"source": {"$ref": "#/definitions/ewrWithPurpose"}
},
{
"source": {"$ref": "#/definitions/ewrWithPurpose"}
},
"required": ["source"]
},
@ -892,14 +891,14 @@
{
"type": "object",
"properties":
{
"items": {
"type": "array",
"minItems": 1,
"not":
{ "items": {"not": { "$ref": "#/definitions/ewrWithPurpose" } } }
}
},
{
"items": {
"type": "array",
"minItems": 1,
"not":
{ "items": {"not": { "$ref": "#/definitions/ewrWithPurpose" } } }
}
},
"required": ["items"]
},
@ -916,14 +915,14 @@
{
"type": "object",
"properties":
{
"items": {
"type": "array",
"minItems": 1,
"not":
{ "items": {"not": { "$ref": "#/definitions/embeddedTextualBodyWithItems" } } }
}
},
{
"items": {
"type": "array",
"minItems": 1,
"not":
{ "items": {"not": { "$ref": "#/definitions/embeddedTextualBodyWithItems" } } }
}
},
"required": ["items"]
},
@ -940,109 +939,158 @@
{
"type": "object",
"properties":
{
"items": {
"type": "array",
"minItems": 1,
"not":
{ "items": {"not": { "$ref": "#/definitions/embeddedTextualBodyWithSource" } } }
}
},
{
"items": {
"type": "array",
"minItems": 1,
"not":
{ "items": {"not": { "$ref": "#/definitions/embeddedTextualBodyWithSource" } } }
}
},
"required": ["items"]
},
"embeddedTextTypeIncludesTextualBody":
{
"allOf":
"allOf":
[
{ "$ref": "#/definitions/textualBodyFound" },
{ "required": ["type"] },
{ "properties":
{
"type":
{
"oneOf":
[
{ "type": "string",
"enum": ["TextualBody"] },
{ "type": "array",
"minItems": 1,
"not":
{ "items":
{ "not": { "enum": [ "TextualBody"] } }
}
}
]
}
{ "$ref": "#/definitions/textualBodyFound" },
{ "required": ["type"] },
{ "properties":
{
"type":
{
"oneOf":
[
{ "type": "string",
"enum": ["TextualBody"] },
{ "type": "array",
"minItems": 1,
"not":
{ "items":
{ "not": { "enum": [ "TextualBody"] } }
}
}
]
}
}
}
}
]
]
},
"embeddedTextTypeInclTextualBodyWithoutId":
{
"allOf":
[
{ "$ref": "#/definitions/textualBodyFound" },
{ "required": ["type"] },
{ "properties":
{
"type":
{
"oneOf":
[
{ "type": "string",
"enum": ["TextualBody"] },
{ "type": "array",
"minItems": 1,
"not":
{ "items":
{ "not": { "enum": [ "TextualBody"] } }
}
}
]
}
}
},
{ "not": { "$ref": "id.json#/definitions/idValueFound" } }
]
},
"itemEmbeddedTextTypeIncludesTextualBody":
{
"type": "object",
"properties":
{
"items":
"type": "object",
"properties":
{
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/embeddedTextTypeIncludesTextualBody" } }
}
}
},
"required": ["items"]
"items":
{
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/embeddedTextTypeIncludesTextualBody" } }
}
}
},
"required": ["items"]
},
"embeddedTextTypeIncludesText":
"itemEmbeddedTextTypeInclTextualBodyWithoutId":
{
"allOf":
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/embeddedTextTypeIncludesTextualBody" } }
}
}
},
"required": ["items"],
"not": { "$ref": "id.json#/definitions/idValueFound" }
},
"embeddedTextTypeIncludesText":
{
"allOf":
[
{ "$ref": "#/definitions/textualBodyFound" },
{ "required": ["type"] },
{ "properties":
{
"type":
{ "$ref": "#/definitions/textualBodyFound" },
{ "required": ["type"] },
{ "properties":
{
"oneOf":
[
{ "type": "string",
"enum": ["Text"] },
{ "type": "array",
"minItems": 1,
"not":
{ "items":
{ "not": { "enum": [ "Text"] } }
}
}
]
"type":
{
"oneOf":
[
{ "type": "string",
"enum": ["Text"] },
{ "type": "array",
"minItems": 1,
"not":
{ "items":
{ "not": { "enum": [ "Text"] } }
}
}
]
}
}
}
}
]
]
},
"itemEmbeddedTextTypeIncludesText":
{
"type": "object",
"properties":
{
"items":
"type": "object",
"properties":
{
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/embeddedTextTypeIncludesText" } }
}
}
},
"required": ["items"]
"items":
{
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/embeddedTextTypeIncludesText" } }
}
}
},
"required": ["items"]
}
}

View file

@ -21,14 +21,14 @@
"items": {
"oneOf":
[
{ "$ref": "specificResource.json#/definitions/specificeResourceDetected" },
{ "$ref": "bodyTarget.json#/definitions/externalWebResourceDetected" },
{ "$ref": "bodyTarget.json#/definitions/textualBodyFound" },
{ "$ref": "specificResource.json#/definitions/specificeResourceDetected" },
{ "$ref": "bodyTarget.json#/definitions/externalWebResourceDetected" },
{ "$ref": "bodyTarget.json#/definitions/textualBodyFound" },
{ "$ref": "id.json#/definitions/stringUri" },
{ "allOf":
[
{ "$ref" : "#/definitions/choiceOrSetTypeDefinition" },
{ "$ref": "#/definitions/itemsDetected" }
{ "$ref" : "#/definitions/choiceOrSetTypeDefinition" },
{ "$ref": "#/definitions/itemsDetected" }
]
}
]
@ -108,19 +108,19 @@
"choiceOrSetTypeDefinition":
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Definition: Choice or Set type",
"description": "True when object has type key and object's type is any of 'Choice', 'Composite', 'List', 'Independents' (Section 3.2.7)",
"type": "object",
"properties":
{
"type":
{
"type": "string",
"enum": ["Choice", "Composite", "List", "Independents"]
}
},
"required": [ "type" ]
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Definition: Choice or Set type",
"description": "True when object has type key and object's type is any of 'Choice', 'Composite', 'List', 'Independents' (Section 3.2.7)",
"type": "object",
"properties":
{
"type":
{
"type": "string",
"enum": ["Choice", "Composite", "List", "Independents"]
}
},
"required": [ "type" ]
},
"choiceDetected": {
@ -178,36 +178,36 @@
"type": "object",
"allOf":
[
{ "$ref": "#/definitions/choiceOrSetTypeDefinition" },
{ "$ref": "#/definitions/itemsDetected" }
{ "$ref": "#/definitions/choiceOrSetTypeDefinition" },
{ "$ref": "#/definitions/itemsDetected" }
]
},
"choiceSetWithValue" :
{
"allOf":
[
{ "$ref": "#/definitions/choiceOrSetDetected" },
{ "required": [ "value" ] }
]
"allOf":
[
{ "$ref": "#/definitions/choiceOrSetDetected" },
{ "required": [ "value" ] }
]
},
"choiceSetWithSource" :
{
"allOf":
[
{ "$ref": "#/definitions/choiceOrSetDetected" },
{ "required": [ "source" ] }
]
"allOf":
[
{ "$ref": "#/definitions/choiceOrSetDetected" },
{ "required": [ "source" ] }
]
},
"choiceSetWithPurpose" :
{
"allOf":
[
{ "$ref": "#/definitions/choiceOrSetDetected" },
{ "required": [ "purpose" ] }
]
"allOf":
[
{ "$ref": "#/definitions/choiceOrSetDetected" },
{ "required": [ "purpose" ] }
]
}
}

View file

@ -0,0 +1,428 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "collections.json",
"title": "Definitions: Annotation Collections.",
"description": "Schemas in #/definitions detect or validate keys/objects (direct children) uniquely used to describe Annotation Collections (Section 5.1 and 5.2).",
"definitions": {
"contextValueFound": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Definition: Valid @context string included in Collection / Page description",
"description": "True when the string has value http://www.w3.org/ns/anno.jsonld (Section 5)",
"type": "string",
"enum": [ "http://www.w3.org/ns/anno.jsonld" ]
},
"contextValueInArrayFound": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Definition: Valid @context string found in array included in Collection / Page description",
"description": "True when the array contains a string item having value http://www.w3.org/ns/anno.jsonld (Section 5)",
"type": "array",
"not":
{ "items":
{ "not":
{ "$ref": "#/definitions/contextValueFound" }
}
}
},
"annotationCollectionTypeValueRecognized": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Definition: Valid AnnotationCollection type value string included in Collection description",
"description": "True when the string has value 'AnnotationCollection' (Section 5.1)",
"type": "string",
"enum": [ "AnnotationCollection" ]
},
"annotationCollectionTypeValueInArrayRecognized": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Definition: Valid AnnotationCollection type in array included in Collection description",
"description": "True when the array contains a string item having value 'AnnotationCollection' (Section 5.1)",
"type": "array",
"not":
{ "items":
{ "not":
{ "$ref": "#/definitions/annotationCollectionTypeValueRecognized" }
}
}
},
"annotationCollectionTypeValueFound":
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Implementation: AnnotationCollection type",
"description": "True when the Annotation Collection has type key and 'AnnotationCollection' is a value of type (Section 5.1)",
"type": "object",
"required": [ "type" ],
"properties": {
"type": {
"oneOf": [
{ "$ref": "#/definitions/annotationCollectionTypeValueRecognized" },
{ "$ref": "#/definitions/annotationCollectionTypeValueInArrayRecognized" }
]
}
}
},
"annotationPageTypeValueRecognized": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Definition: Valid AnnotationPage type value string included in Page description",
"description": "True when the string has value 'AnnotationPage' (Section 5.2)",
"type": "string",
"enum": [ "AnnotationPage" ]
},
"annotationPageTypeValueInArrayRecognized": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Definition: Valid AnnotationPage type in array included in Page description",
"description": "True when the array contains a string item having value 'AnnotationPage' (Section 5.2)",
"type": "array",
"not":
{ "items":
{ "not":
{ "$ref": "#/definitions/annotationPageTypeValueRecognized" }
}
}
},
"annotationPageTypeValueFound":
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Implementation: AnnotationPage type",
"description": "True when the Annotation Page has type key and 'AnnotationPage' is a value of type (Section 5.2)",
"type": "object",
"required": [ "type" ],
"properties": {
"type": {
"oneOf": [
{ "$ref": "#/definitions/annotationPageTypeValueRecognized" },
{ "$ref": "#/definitions/annotationPageTypeValueInArrayRecognized" }
]
}
}
},
"labelDefinition":
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Definition: label (Annotation Collections)",
"description": "True when the object has no label or has one or more label values of type string (Section 5.1)",
"type": "object",
"properties":
{
"label":
{
"oneOf":
[
{"type": "string" },
{"type": "array",
"minItems": 1,
"items": {"type": "string"}
}
]
}
}
},
"labelFound":
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Check for implementation of Annotation Collection label",
"description": "True when the object has one or more label value(s) (Section 5.1)",
"allOf": [
{"required": ["label"]},
{"$ref": "#/definitions/labelDefinition"}
]
},
"totalDefinition":
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Definition: total (Annotation Collections)",
"description": "True when the object has no total key or has exactly one total value of type integer greater or equal to zero (Section 5.1)",
"type": "object",
"properties":
{
"total":
{
"oneOf":
[
{"type": "integer",
"minimum": 0 },
{"type": "array",
"minItems": 1,
"maxItems": 1,
"items": {"type": "integer",
"minimum": 0 }
}
]
}
}
},
"totalFound":
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Check for implementation of Annotation Collection total key",
"description": "True when the object has exactly one total value (Section 5.1)",
"allOf": [
{"required": ["total"]},
{"$ref": "#/definitions/totalDefinition"}
]
},
"totalMoreThanZero":
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Definition: total more than zero (Annotation Collections)",
"description": "True when the object has exactly one total value of type integer and greater than zero (Section 5.1)",
"type": "object",
"properties":
{
"total":
{
"oneOf":
[
{"type": "integer",
"minimum": 0,
"exclusiveMinimum": true},
{"type": "array",
"minItems": 1,
"maxItems": 1,
"items": {"type": "integer",
"minimum": 0,
"exclusiveMinimum": true}
}
]
}
},
"required": [ "total" ]
},
"firstValidIfPresent":
{ "$schema": "http://json-schema.org/draft-04/schema#",
"title": "Validation: first value (Annotation Collection)",
"description": "True when the Annotation Collection has no first key or has 1 first key value that is string of format uri or has first key value that is an object of type AnnotationPage (Section 5.1)",
"type": "object",
"properties": {"first":
{ "oneOf": [
{
"oneOf": [
{ "$ref": "id.json#/definitions/stringUri" },
{ "$ref": "#/definitions/annotationPageTypeValueFound" }
]
},
{ "type": "array",
"minItems": 1,
"maxItems": 1,
"items": {
"oneOf": [
{ "$ref": "id.json#/definitions/stringUri" },
{ "$ref": "#/definitions/annotationPageTypeValueFound" }
]
}
}
]
}
}
},
"firstFound":
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Check for implementation of Annotation Collection first key",
"description": "True when the object has exactly one first value (Section 5.1)",
"allOf": [
{"required": ["first"]},
{"$ref": "#/definitions/firstValidIfPresent"}
]
},
"firstRequiredIfTotalMoreThanZero":
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "If total greater than zero, check for implementation of Annotation Collection first key",
"description": "True when the object has no total or has total = zero or has exactly one first value (Section 5.1)",
"type": "object",
"oneOf": [
{
"allOf": [
{ "$ref": "#/definitions/totalMoreThanZero" },
{ "$ref": "#/definitions/firstFound" }
]
},
{ "not": { "$ref": "#/definitions/totalMoreThanZero" } }
]
},
"lastValidIfPresent":
{ "$schema": "http://json-schema.org/draft-04/schema#",
"title": "Validation: last value (Annotation Collection)",
"description": "True when the Annotation Collection has no last key or has 1 last key value that is string of format uri (Section 5.1)",
"type": "object",
"properties": {"last":
{ "oneOf": [
{ "$ref": "id.json#/definitions/stringUri" },
{ "type": "array",
"minItems": 1,
"maxItems": 1,
"items": { "$ref": "id.json#/definitions/stringUri" }
}
]
}
}
},
"lastFound":
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Check for implementation of Annotation Collection last key",
"description": "True when the object has exactly one last value that is string of format uri (Section 5.1)",
"allOf": [
{"required": ["last"]},
{"$ref": "#/definitions/lastValidIfPresent"}
]
},
"partOfValidIfPresent":
{ "$schema": "http://json-schema.org/draft-04/schema#",
"title": "Validation: partOf value (Annotation Page)",
"description": "True when the Annotation Page has no partOf key or has 1 partOf key value that is string of format uri (Section 5.2)",
"type": "object",
"properties": {"partOf":
{ "oneOf": [
{ "$ref": "id.json#/definitions/arraySingleStringUri" },
{ "$ref": "id.json#/definitions/idValueFound" }
]
}
}
},
"partOfFound":
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Check for implementation of Annotation Page partOf key",
"description": "True when the object has exactly one partOf value that is string of format uri (Section 5.2)",
"allOf": [
{"required": ["partOf"]},
{"$ref": "#/definitions/partOfValidIfPresent"}
]
},
"nextValidIfPresent":
{ "$schema": "http://json-schema.org/draft-04/schema#",
"title": "Validation: next value (Annotation Page)",
"description": "True when the Annotation Page has no next key or has 1 next key value that is string of format uri (Section 5.2)",
"type": "object",
"properties": {"next":
{ "oneOf": [
{ "$ref": "id.json#/definitions/stringUri" },
{ "type": "array",
"minItems": 1,
"maxItems": 1,
"items": { "$ref": "id.json#/definitions/stringUri" }
}
]
}
}
},
"nextFound":
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Check for implementation of Annotation Page next key",
"description": "True when the object has exactly one next value that is string of format uri (Section 5.2)",
"allOf": [
{"required": ["next"]},
{"$ref": "#/definitions/nextValidIfPresent"}
]
},
"prevValidIfPresent":
{ "$schema": "http://json-schema.org/draft-04/schema#",
"title": "Validation: prev value (Annotation Page)",
"description": "True when the Annotation Page has no prev key or has 1 prev key value that is string of format uri (Section 5.2)",
"type": "object",
"properties": {"prev":
{ "oneOf": [
{ "$ref": "id.json#/definitions/stringUri" },
{ "type": "array",
"minItems": 1,
"maxItems": 1,
"items": { "$ref": "id.json#/definitions/stringUri" }
}
]
}
}
},
"prevFound":
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Check for implementation of Annotation Page prev key",
"description": "True when the object has exactly one prev value that is string of format uri (Section 5.2)",
"allOf": [
{"required": ["prev"]},
{"$ref": "#/definitions/prevValidIfPresent"}
]
},
"startIndexDefinition":
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Definition: startIndex (Annotation Pages)",
"description": "True when the object has no startIndex key or has exactly one startIndex value of type integer greater or equal to zero (Section 5.2)",
"type": "object",
"properties":
{
"startIndex":
{
"oneOf":
[
{"type": "integer",
"minimum": 0 },
{"type": "array",
"minItems": 1,
"maxItems": 1,
"items": {"type": "integer",
"minimum": 0 }
}
]
}
}
},
"startIndexFound":
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Check for implementation of Annotation Page startIndex key",
"description": "True when the object has exactly one startIndex value (Section 5.2)",
"allOf": [
{"required": ["startIndex"]},
{"$ref": "#/definitions/startIndexDefinition"}
]
},
"itemsFound":
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Check for implementation of Annotation Page items key",
"description": "True when the object has items key with value that is an array of strings of format uri and/or objects of type Annotation (Section 5.2)",
"type": "object",
"properties":
{ "items":
{ "type": "array",
"items": {
"oneOf":[
{ "$ref": "annotations.json#/definitions/annotationTypeValueFound" },
{ "type": "string",
"format": "uri" }
]
}
}
},
"required": [ "items" ]
}
}
}

View file

@ -51,16 +51,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/createdPropertyFound" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/createdPropertyFound" } }
}
}
}
},
"required": ["items"]
},
@ -73,12 +73,12 @@
"type": "object",
"properties":
{
"source":
{
"type": "object",
"required": ["created"] ,
"$ref": "#/definitions/createdValidIfPresent"
}
"source":
{
"type": "object",
"required": ["created"] ,
"$ref": "#/definitions/createdValidIfPresent"
}
},
"required": ["source"]
},
@ -110,7 +110,7 @@
"title": "Collate: generated key with qualifying body/target classes",
"description": "Supports implementation check of generated (if/when) used on External Web Resources, Specific Resources, Textual Body Resources (Sections 3.2.1-6, 3.3)",
"oneOf": [
{"$ref": "annotations.json#/definitions/annotationTypeValueFound"}
{"$ref": "annotations.json#/definitions/annotationTypeValueFound"}
],
"allOf": [
{"$ref": "#/definitions/generatedValidIfPresent"},
@ -164,16 +164,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/modifiedPropertyFound" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/modifiedPropertyFound" } }
}
}
}
},
"required": ["items"]
},
@ -186,12 +186,12 @@
"type": "object",
"properties":
{
"source":
{
"type": "object",
"required": ["modified"] ,
"$ref": "#/definitions/modifiedValidIfPresent"
}
"source":
{
"type": "object",
"required": ["modified"] ,
"$ref": "#/definitions/modifiedValidIfPresent"
}
},
"required": ["source"]
},
@ -269,16 +269,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/creatorPropertyFound" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/creatorPropertyFound" } }
}
}
}
},
"required": ["items"]
},
@ -291,12 +291,12 @@
"type": "object",
"properties":
{
"source":
{
"type": "object",
"required": ["creator"] ,
"$ref": "#/definitions/creatorValidIfPresent"
}
"source":
{
"type": "object",
"required": ["creator"] ,
"$ref": "#/definitions/creatorValidIfPresent"
}
},
"required": ["source"]
},
@ -325,16 +325,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/singleCreatorPropertyFound" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/singleCreatorPropertyFound" } }
}
}
}
},
"required": ["items"]
},
@ -347,12 +347,12 @@
"type": "object",
"properties":
{
"source":
{
"type": "object",
"required": ["creator"] ,
"$ref": "#/definitions/creatorSingularIfPresent"
}
"source":
{
"type": "object",
"required": ["creator"] ,
"$ref": "#/definitions/creatorSingularIfPresent"
}
},
"required": ["source"]
},
@ -386,7 +386,7 @@
"title": "Collate: generator key with qualifying body/target classes",
"description": "Supports implementation check of generator (if/when) used on External Web Resources, Specific Resources, Textual Body Resources (Section 3.3.1)",
"oneOf": [
{"$ref": "annotations.json#/definitions/annotationTypeValueFound"}
{"$ref": "annotations.json#/definitions/annotationTypeValueFound"}
],
"allOf": [
{"required": ["generator"]},
@ -474,16 +474,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/audiencePropertyFound" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/audiencePropertyFound" } }
}
}
}
},
"required": ["items"]
},
@ -496,12 +496,12 @@
"type": "object",
"properties":
{
"source":
{
"type": "object",
"required": ["audience"] ,
"$ref": "#/definitions/audienceValidIfPresent"
}
"source":
{
"type": "object",
"required": ["audience"] ,
"$ref": "#/definitions/audienceValidIfPresent"
}
},
"required": ["source"]
},
@ -551,16 +551,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/accessibilityPropertyFound" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/accessibilityPropertyFound" } }
}
}
}
},
"required": ["items"]
},
@ -573,12 +573,12 @@
"type": "object",
"properties":
{
"source":
{
"type": "object",
"required": ["accessibility"] ,
"$ref": "#/definitions/accessibilityValidIfPresent"
}
"source":
{
"type": "object",
"required": ["accessibility"] ,
"$ref": "#/definitions/accessibilityValidIfPresent"
}
},
"required": ["source"]
},
@ -623,16 +623,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/rightsPropertyFound" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/rightsPropertyFound" } }
}
}
}
},
"required": ["items"]
},
@ -645,12 +645,12 @@
"type": "object",
"properties":
{
"source":
{
"type": "object",
"required": ["rights"] ,
"$ref": "#/definitions/rightsValidIfPresent"
}
"source":
{
"type": "object",
"required": ["rights"] ,
"$ref": "#/definitions/rightsValidIfPresent"
}
},
"required": ["source"]
},
@ -689,16 +689,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/canonicalPropertyFound" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/canonicalPropertyFound" } }
}
}
}
},
"required": ["items"]
},
@ -711,12 +711,12 @@
"type": "object",
"properties":
{
"source":
{
"type": "object",
"required": ["canonical"] ,
"$ref": "#/definitions/canonicalValidIfPresent"
}
"source":
{
"type": "object",
"required": ["canonical"] ,
"$ref": "#/definitions/canonicalValidIfPresent"
}
},
"required": ["source"]
},
@ -761,16 +761,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/viaPropertyFound" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/viaPropertyFound" } }
}
}
}
},
"required": ["items"]
},
@ -783,12 +783,12 @@
"type": "object",
"properties":
{
"source":
{
"type": "object",
"required": ["via"] ,
"$ref": "#/definitions/viaValidIfPresent"
}
"source":
{
"type": "object",
"required": ["via"] ,
"$ref": "#/definitions/viaValidIfPresent"
}
},
"required": ["source"]
},
@ -831,16 +831,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/purposePropertyFound" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/purposePropertyFound" } }
}
}
}
},
"required": ["items"]
},
@ -866,11 +866,11 @@
"sourceCreatorAgentWithIdFound":
{ "type": "object",
"properties":
{
"source":
{ "$ref": "#/definitions/creatorAgentWithIdFound" }
},
"required": ["source"]
{
"source":
{ "$ref": "#/definitions/creatorAgentWithIdFound" }
},
"required": ["source"]
},
"itemCreatorAgentWithIdFound":
@ -878,16 +878,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/creatorAgentWithIdFound" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/creatorAgentWithIdFound" } }
}
}
}
},
"required": ["items"]
},
@ -954,11 +954,11 @@
"sourceCreatorAgentWithTypeFound":
{ "type": "object",
"properties":
{
"source":
{ "$ref": "#/definitions/creatorAgentWithTypeFound" }
},
"required": ["source"]
{
"source":
{ "$ref": "#/definitions/creatorAgentWithTypeFound" }
},
"required": ["source"]
},
"itemCreatorAgentWithTypeFound":
@ -966,16 +966,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/creatorAgentWithTypeFound" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/creatorAgentWithTypeFound" } }
}
}
}
},
"required": ["items"]
},
@ -1057,11 +1057,11 @@
"sourceCreatorAgentWithNameFound":
{ "type": "object",
"properties":
{
"source":
{ "$ref": "#/definitions/creatorAgentWithNameFound" }
},
"required": ["source"]
{
"source":
{ "$ref": "#/definitions/creatorAgentWithNameFound" }
},
"required": ["source"]
},
"itemCreatorAgentWithNameFound":
@ -1069,16 +1069,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/creatorAgentWithNameFound" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/creatorAgentWithNameFound" } }
}
}
}
},
"required": ["items"]
},
@ -1115,11 +1115,11 @@
"sourceCreatorAgentWithSingularNameFound":
{ "type": "object",
"properties":
{
"source":
{ "$ref": "#/definitions/creatorAgentWithSingularNameFound" }
},
"required": ["source"]
{
"source":
{ "$ref": "#/definitions/creatorAgentWithSingularNameFound" }
},
"required": ["source"]
},
"itemCreatorAgentWithSingularNameFound":
@ -1127,16 +1127,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/creatorAgentWithSingularNameFound" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/creatorAgentWithSingularNameFound" } }
}
}
}
},
"required": ["items"]
},
@ -1196,11 +1196,11 @@
"sourceCreatorAgentWithSingularNicknameFound":
{ "type": "object",
"properties":
{
"source":
{ "$ref": "#/definitions/creatorAgentWithSingularNicknameFound" }
},
"required": ["source"]
{
"source":
{ "$ref": "#/definitions/creatorAgentWithSingularNicknameFound" }
},
"required": ["source"]
},
"itemCreatorAgentWithSingularNicknameFound":
@ -1208,16 +1208,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/creatorAgentWithSingularNicknameFound" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/creatorAgentWithSingularNicknameFound" } }
}
}
}
},
"required": ["items"]
},
@ -1280,11 +1280,11 @@
"sourceCreatorAgentWithEmailFound":
{ "type": "object",
"properties":
{
"source":
{ "$ref": "#/definitions/creatorAgentWithEmailFound" }
},
"required": ["source"]
{
"source":
{ "$ref": "#/definitions/creatorAgentWithEmailFound" }
},
"required": ["source"]
},
"itemCreatorAgentWithEmailFound":
@ -1292,16 +1292,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/creatorAgentWithEmailFound" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/creatorAgentWithEmailFound" } }
}
}
}
},
"required": ["items"]
},
@ -1360,11 +1360,11 @@
"sourceCreatorAgentWithEmail_sha1Found":
{ "type": "object",
"properties":
{
"source":
{ "$ref": "#/definitions/creatorAgentWithEmail_sha1Found" }
},
"required": ["source"]
{
"source":
{ "$ref": "#/definitions/creatorAgentWithEmail_sha1Found" }
},
"required": ["source"]
},
"itemCreatorAgentWithEmail_sha1Found":
@ -1372,16 +1372,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/creatorAgentWithEmail_sha1Found" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/creatorAgentWithEmail_sha1Found" } }
}
}
}
},
"required": ["items"]
},
@ -1442,11 +1442,11 @@
"sourceCreatorAgentWithHomepageFound":
{ "type": "object",
"properties":
{
"source":
{ "$ref": "#/definitions/creatorAgentWithHomepageFound" }
},
"required": ["source"]
{
"source":
{ "$ref": "#/definitions/creatorAgentWithHomepageFound" }
},
"required": ["source"]
},
"itemCreatorAgentWithHomepageFound":
@ -1454,16 +1454,16 @@
"type": "object",
"properties":
{
"items":
{
"type": "array",
"minItems": 1,
"not":
"items":
{
"items":
{ "not": { "$ref": "#/definitions/creatorAgentWithHomepageFound" } }
"type": "array",
"minItems": 1,
"not":
{
"items":
{ "not": { "$ref": "#/definitions/creatorAgentWithHomepageFound" } }
}
}
}
},
"required": ["items"]
}