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
79
80
81
82
83
84
85
86
|
{
"description": "Test `_rec` to find correct target for redirected property (#1244, en)",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has status",
"contents": "[[Has type::Text]]"
},
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has date",
"contents": "[[Has type::Date]]"
},
{
"namespace": "SMW_NS_PROPERTY",
"page": "Project",
"contents": "[[Has type::Record]] [[Has fields::Has status;Has date]]"
},
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has project status",
"contents": "[[Has type::Text]]"
},
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has status",
"contents": "#REDIRECT [[Property:Has project status]]"
},
{
"page": "Example/1103/1",
"contents": "[[Category:Record redirect example]] [[Project::closed;15 Jan 1970]]"
},
{
"page": "Example/1103/2",
"contents": "{{#ask: [[Category:Record redirect example]] [[Project::closed;~1970]]|?Project=Status|+index=1|format=plainlist}}"
}
],
"tests": [
{
"type": "format",
"about": "#0 indexed output",
"subject": "Example/1103/2",
"assert-output": {
"to-contain": [
"title=\"Property:Project\">Status</a>: closed"
]
}
},
{
"type": "query",
"about": "#0",
"condition": "[[Category:Record redirect example]] [[Project::closed;~1970]]",
"printouts": [
"Project"
],
"parameters": {
"limit": "10"
},
"assert-queryresult": {
"count": 1,
"results": [
"Example/1103/1#0##"
],
"datavalues": [
{
"property": "Project",
"value": "closed;15 Jan 1970"
}
]
},
"store": {
"clear-cache": true
}
}
],
"settings": {
"smwStrictComparators": false,
"wgContLang": "en",
"wgLang": "en"
},
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}
|