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
106
|
{
"description": "Test in-text annotation `_uri` on valid/invalid scheme/path",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has url",
"contents": "[[Has type::URL]]"
},
{
"page": "Example/P0503/1",
"contents": "[[Has url::ftp://example.com/foo]]"
},
{
"page": "Example/P0503/2",
"contents": "[[Has url::User:Test]]"
},
{
"page": "Example/P0503/3",
"contents": "[[Has url::http:///]]"
},
{
"page": "Example/P0503/Q.1",
"contents": "{{#ask: [[Has url::User:Test]] |default=No result }}"
}
],
"tests": [
{
"type": "parser",
"about": "#0 valid ftp",
"subject": "Example/P0503/1",
"assert-store": {
"semantic-data": {
"strictPropertyValueMatch": false,
"propertyCount": 3,
"propertyKeys": [
"_SKEY",
"_MDAT",
"Has url"
],
"propertyValues": [
"ftp://example.com/foo"
]
}
}
},
{
"type": "parser",
"about": "#1 invalid User:",
"subject": "Example/P0503/2",
"assert-store": {
"semantic-data": {
"strictPropertyValueMatch": false,
"propertyCount": 3,
"propertyKeys": [
"_SKEY",
"_MDAT",
"_ERRC"
]
}
}
},
{
"type": "parser",
"about": "#2 (allow invalid scheme in query context)",
"subject": "Example/P0503/Q.1",
"assert-output": {
"to-contain": [
"No result"
],
"not-contain": [
"<span class=\"smw-highlighter\" data-type=\"4\" data-state=\"inline\""
]
}
},
{
"type": "parser",
"about": "#3 invalid path `///`",
"subject": "Example/P0503/3#_ERRd3ce18ed907900b1ec8f6a2b7bce6aea",
"assert-store": {
"semantic-data": {
"strictPropertyValueMatch": false,
"propertyCount": 3,
"propertyKeys": [
"_SKEY",
"_ERRT",
"_ERRP"
],
"propertyValues": [
"\"http:///\" has been idendified to contain an invalid \"/\" authority or path component."
]
}
}
}
],
"settings": {
"wgContLang": "en",
"smwgPageSpecialProperties": [
"_MDAT"
]
},
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}
|