-
Notifications
You must be signed in to change notification settings - Fork 1
/
test-schema.json
38 lines (38 loc) · 1.17 KB
/
test-schema.json
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
32
33
34
35
36
37
38
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://w3id.org/stax/dev/schema/cq-test",
"type": "object",
"title": "Schema for competency question-based SPARQL tests in RDF-STaX.",
"properties": {
"$schema": {
"const": "https://w3id.org/stax/dev/schema/cq-test"
},
"useCase": {
"type": "integer",
"title": "Use case number of the test."
},
"testNumber": {
"type": "integer",
"title": "Test number within the use case."
},
"text": {
"type": "string",
"title": "Human-readable competency question corresponding to the test.",
"minLength": 5
},
"expectation": {
"oneOf": [
{ "const": "empty" },
{ "const": "nonEmpty" },
{
"type": "object",
"properties": {
"resultsCount": { "type": "integer" }
}
}
]
}
},
"required": ["useCase", "testNumber", "text", "expectation"],
"additionalProperties": false
}