summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0601.json
blob: b66d28097e786928521e1319aafc4dd6158a610c (plain)
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
{
	"description": "Test `_wpg` for property chain query queries",
	"setup": [
		{
			"namespace": "SMW_NS_PROPERTY",
			"page": "Located in",
			"contents": "[[Has type::Page]]"
		},
		{
			"namespace": "SMW_NS_PROPERTY",
			"page": "Member of",
			"contents": "[[Has type::Page]]"
		},
		{
			"page": "Europe",
			"contents": "[[Member of::European Union]] {{#subobject:Member of=NATO}}"
		},
		{
			"page": "France",
			"contents": "[[Located in::Europe]]"
		},
		{
			"page": "Germany",
			"contents": "{{#set:Located in=Europe}}"
		},
		{
			"page": "Italy",
			"contents": "{{#subobject:Located in=Europe}}"
		}
	],
	"tests": [
		{
			"type": "query",
			"about": "#0",
			"condition": "[[Located in.Member of::European Union]]",
			"printouts": [],
			"parameters": {
				"limit": "10"
			},
			"assert-queryresult": {
				"count": "3",
				"results": [
					"Germany#0##",
					"France#0##",
					"Italy#0##_261bcb222bdef3105c6906115585880c"
				]
			}
		},
		{
			"type": "query",
			"about": "#1",
			"condition": "[[Located in.Has subobject.Member of::NATO]]",
			"printouts": [],
			"parameters": {
				"limit": "10"
			},
			"assert-queryresult": {
				"count": "3",
				"results": [
					"Germany#0##",
					"France#0##",
					"Italy#0##_261bcb222bdef3105c6906115585880c"
				]
			}
		}
	],
	"settings": {
		"smwgPageSpecialProperties": [
			"_MDAT"
		]
	},
	"meta": {
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}