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
|
{
"description": "Test in-text annotation with IRI export (#2188, `smwgExportResourcesAsIri=true`, `wgContLang=ru`, `wgLang=en`)",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "Заголовок",
"contents": "[[Has type::Page]]"
},
{
"namespace": "SMW_NS_PROPERTY",
"page": "Тип публикации",
"contents": "[[Has type::Page]]"
},
{
"namespace": "SMW_NS_PROPERTY",
"page": "Журнал",
"contents": "[[Has type::Text]]"
},
{
"namespace": "SMW_NS_PROPERTY",
"page": "Год",
"contents": "[[Has type::Date]]"
},
{
"page": "Example/P0447/1",
"contents": "[[Заголовок::Pollen Limitation]] [[Журнал::Arctic, Antarctic and Alpine Research]] [[Год::2009]] [[Тип публикации::Статья]]"
},
{
"page": "Example/P0447/Q.1.1",
"contents": "{{#ask: [[Заголовок::Pollen Limitation]] |?Заголовок }}"
}
],
"tests": [
{
"type": "parser",
"about": "#0",
"subject": "Example/P0447/1",
"assert-store": {
"semantic-data": {
"strictPropertyValueMatch": false,
"propertyCount": 6,
"propertyKeys": [
"_SKEY",
"_MDAT",
"Заголовок",
"Журнал",
"Год",
"Тип публикации"
]
}
}
},
{
"type": "parser",
"about": "#1",
"subject": "Example/P0447/Q.1.1",
"assert-output": {
"to-contain": [
"Property:%D0%97%D0%B0%D0%B3%D0%BE%D0%BB%D0%BE%D0%B2%D0%BE%D0%BA\" title=\"Property:Заголовок\">Заголовок</a>",
"Pollen Limitation</a>"
]
}
}
],
"settings": {
"wgContLang": "ru",
"wgLang": "en",
"smwgExportResourcesAsIri": true,
"smwgPageSpecialProperties": [
"_MDAT"
]
},
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}
|