blob: 5b499296b99bc4b0cc846ea829c96c3db868e9a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Check @context value",
"description": "'http://www.w3.org/ns/anno.jsonld must be' an @context value (Section 3.1)",
"assertionType": "must",
"expectedResult": "valid",
"errorMessage": "Error: 'http://www.w3.org/ns/anno.jsonld' is not an @context value.",
"type": "object",
"properties": {
"@context": {
"oneOf": [
{ "type": "string",
"$ref": "#/definitions/contextValue" },
{ "type": "array",
"$ref": "#/definitions/contextArray" }
]
}
},
"definitions": {
"contextValue":
{ "enum": [ "http://www.w3.org/ns/anno.jsonld" ] },
"contextArray":
{ "not":
{ "items":
{ "not":
{ "type": "string",
"$ref": "#/definitions/contextValue" } }
}
}
}
}
|