3.3.2-bodyCreatorAgentIdImplemented.json (1782B)
1 { 2 "$schema": "http://json-schema.org/draft-04/schema#", 3 "id": "3.3.2-bodyCreatorAgentIdImplemented.json", 4 "assertionType": "should", 5 "expectedResult": "valid", 6 "onUnexpectedResult" : "passAndContinue", 7 "errorMessage": "Id for Body Creator (Agent) not found or more than 1 found. Agents should have exactly one id of format uri.", 8 "title": "Implements Body-level creator (Agent) **_id_ key** with **single value** that is a **string of format uri** - [model 3.2.2](https://www.w3.org/TR/annotation-model/#agents)", 9 "description": "True when type for Body Creator (Agent) has exactly one id (Section 3.3.2)", 10 "required": [ "body" ], 11 "properties": 12 { 13 "body": 14 { 15 "oneOf": [ 16 { "anyOf": [ 17 { "$ref": "otherProperties.json#/definitions/creatorAgentWithIdFound" }, 18 { "$ref": "otherProperties.json#/definitions/sourceCreatorAgentWithIdFound" }, 19 { "$ref": "otherProperties.json#/definitions/itemCreatorAgentWithIdFound" } 20 ] 21 }, 22 { "not": 23 { "items": 24 { "not": 25 { "anyOf": [ 26 { "$ref": "otherProperties.json#/definitions/creatorAgentWithIdFound" }, 27 { "$ref": "otherProperties.json#/definitions/sourceCreatorAgentWithIdFound" }, 28 { "$ref": "otherProperties.json#/definitions/itemCreatorAgentWithIdFound" } 29 ] 30 } 31 } 32 } 33 } 34 ] 35 } 36 } 37 }