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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
{
"description": "Test RDF output generation `_uri`/`_ema`/`_tel` with spaces/underscore (`wgContLang=en`, `wgLang=en`)",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has url",
"contents": "[[Has type::URL]]"
},
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has telephone number",
"contents": "[[Has type::Telephone number]]"
},
{
"page": "Example/R0013/1",
"contents": "[[Has url::http://example.org/Foo bar]] [[Has url::http://example.org/Foo%20bar]] [[Has url::http://example.org/Foo_bar]]"
},
{
"page": "Example/R0013/2",
"contents": "[[Email::john_doe@example.org]]"
},
{
"page": "Example/R0013/3",
"contents": "[[Has telephone number::+1 201 555 5555]]"
}
],
"tests": [
{
"type": "rdf",
"about": "#0 url with underscore",
"exportcontroller": {
"print-pages": [
"Example/R0013/1"
],
"parameters": {
"backlinks": true,
"recursion": "1",
"revisiondate": false
}
},
"assert-output": {
"to-contain": [
"<property:Has_url rdf:resource=\"http://example.org/Foo_bar\"/>"
],
"not-contain": [
"<property:Has_url rdf:resource=\"http://example.org/Foo bar\"/>",
"<property:Has_url rdf:resource=\"http://example.org/Foo%20bar\"/>"
]
}
},
{
"type": "rdf",
"about": "#1 email with underscore",
"exportcontroller": {
"print-pages": [
"Example/R0013/2"
],
"parameters": {
"backlinks": true,
"recursion": "1",
"revisiondate": false
}
},
"assert-output": {
"to-contain": [
"<property:Email rdf:resource=\"mailto:john_doe@example.org\"/>"
]
}
},
{
"type": "rdf",
"about": "#2 tle with spaces",
"exportcontroller": {
"print-pages": [
"Example/R0013/3"
],
"parameters": {
"backlinks": true,
"recursion": "1",
"revisiondate": false
}
},
"assert-output": {
"to-contain": [
"<property:Has_telephone_number rdf:resource=\"tel:+1-201-555-5555\"/>"
]
}
}
],
"settings": {
"wgContLang": "en",
"wgLang": "en",
"smwgExportBCNonCanonicalFormUse": false,
"smwgNamespacesWithSemanticLinks": {
"NS_MAIN": true,
"SMW_NS_PROPERTY": true
},
"smwgNamespace": "http://example.org/id/"
},
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}
|