summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0204.json
blob: 0c2d4dd31f62e94e02b37398e60a42562aea0789 (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
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
107
108
109
{
	"description": "Test `_CONC` on predefined inverse query and subobject inverse query (#1096, skip virtuoso)",
	"setup": [
		{
			"namespace": "SMW_NS_PROPERTY",
			"page": "Has page",
			"contents": "[[Has type::Page]]"
		},
		{
			"page": "Page/02/04-1",
			"contents": "{{#subobject:|Has page=Page/02/04-1}}"
		},
		{
			"page": "Page/02/04-2",
			"contents": "[[Has page::Page/02/04-2]]"
		},
		{
			"namespace": "SMW_NS_CONCEPT",
			"page": "Concept-for-inverse-pre-defined-property",
			"contents": "{{#concept: [[-Has page.-Has subobject::Page/02/04-1]] }}"
		},
		{
			"namespace": "SMW_NS_CONCEPT",
			"page": "Concept-for-inverse-user-defined-property",
			"contents": "{{#concept: [[-Has page.-Has page::Page/02/04-2]] }}"
		}
	],
	"tests": [
		{
			"type": "query",
			"about": "#0 inverse for pre-defined property",
			"condition": "[[-Has page.-Has subobject::Page/02/04-1]]",
			"printouts": [],
			"parameters": {
				"limit": "10"
			},
			"assert-queryresult": {
				"count": 1,
				"results": [
					"Page/02/04-1#0##"
				]
			}
		},
		{
			"type": "query",
			"about": "#1 inverse for user-defined-property",
			"condition": "[[-Has page.-Has page::Page/02/04-2]]",
			"printouts": [],
			"parameters": {
				"limit": "10"
			},
			"assert-queryresult": {
				"count": 1,
				"results": [
					"Page/02/04-2#0##"
				]
			}
		},
		{
			"type": "concept",
			"about": "#2",
			"condition": "[[Concept:Concept-for-inverse-pre-defined-property]]",
			"parameters": {
				"limit": "10"
			},
			"assert-queryresult": {
				"count": 1,
				"results": [
					"Page/02/04-1#0##"
				]
			},
			"conceptcache": [
				{
					"concept": "Concept-for-inverse-pre-defined-property",
					"count": 1
				}
			]
		},
		{
			"type": "concept",
			"about": "#3",
			"condition": "[[Concept:Concept-for-inverse-user-defined-property]]",
			"parameters": {
				"limit": "10"
			},
			"assert-queryresult": {
				"count": 1,
				"results": [
					"Page/02/04-2#0##"
				]
			},
			"conceptcache": [
				{
					"concept": "Concept-for-inverse-user-defined-property",
					"count": 1
				}
			]
		}
	],
	"settings": [],
	"meta": {
		"skip-on": {
			"virtuoso": "Virtuoso reports 'SPARQL compiler: Blank node ... is not allowed in a constant clause', see https://github.com/openlink/virtuoso-opensource/issues/126"
		},
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}