-
Notifications
You must be signed in to change notification settings - Fork 0
/
recipe-mpr.schema.json
79 lines (78 loc) · 2.07 KB
/
recipe-mpr.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"$schema": "http://json-schema.org/draft-07/schema",
"title": "Recipe-MPR",
"description": "Recipe query, options, explanations, and correct answer",
"type": "array",
"items": {
"type": "object",
"properties": {
"query": {
"description": "Recipe query",
"type": "string"
},
"query_type": {
"description": "Query type labels where true/false represented by 1/0",
"type": "object",
"properties": {
"Specific": {
"type": "number",
"maximum": 1,
"minimum": 0
},
"Indirect": {
"type": "number",
"maximum": 1,
"minimum": 0
},
"Negated": {
"type": "number",
"maximum": 1,
"minimum": 0
},
"Analogical": {
"type": "number",
"maximum": 1,
"minimum": 0
},
"Temporal": {
"type": "number",
"maximum": 1,
"minimum": 0
}
},
"required": ["Specific", "Commonsense", "Negated", "Analogical", "Temporal"]
},
"options": {
"description": "Recipe ID and text description pairs",
"type": "object",
"patternProperties": {
"^[a-zA-Z0-9]$": {
"type": "string"
}
},
"minProperties": 5,
"maxProperties": 5
},
"answer": {
"description": "Recipe ID of correct choice",
"type": "string"
},
"correctness_explanation": {
"description": "Mapping of query terms to terms in the answer description that makes it correct",
"type": "object",
"properties": {
"[.]": {
"type": "string",
"oneOf": [
{"type" : "string"},
{"type": "array"}
]
}
},
"minProperties": 1
}
},
"required": ["query", "query_type", "options", "answer", "incorrectness_explanations", "correctness_explanation"]
},
"minProperties": 100
}