summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0203.json
blob: a046c4fb99afae98fcbc58f006f93e69ac729132 (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
{
	"description": "Test `_CONC` to use `CONCEPT_CACHE_ALL` (#1050, skip all SPARQL repository)",
	"setup": [
		{
			"namespace": "SMW_NS_PROPERTY",
			"page": "Has description",
			"contents": "[[Has type::Text]]"
		},
		{
			"page": "Page-one",
			"contents": "[[Has description::Bar]] [[Category:Q0203]]"
		},
		{
			"page": "Page-two",
			"contents": "[[Has description::Foo]] [[Category:Q0203]]"
		},
		{
			"namespace": "SMW_NS_CONCEPT",
			"page": "Concept-for-any-description",
			"contents": "{{#concept: [[Has description::+]] [[Category:Q0203]] }}"
		}
	],
	"tests": [
		{
			"type": "query",
			"about": "#0 any value with CONCEPT_CACHE_ALL set (wiki configuration requires the cache to be computed off-line)",
			"condition": "[[Concept:Concept-for-any-description]]",
			"printouts": [],
			"parameters": {
				"limit": "10"
			},
			"assert-queryresult": {
				"count": 0,
				"error": 1
			}
		},
		{
			"type": "concept",
			"about": "#1 Check cache",
			"condition": "[[Concept:Concept-for-any-description]]",
			"parameters": {
				"limit": "10"
			},
			"assert-queryresult": {
				"count": 0,
				"error": 1
			},
			"conceptcache": [
				{
					"concept": "Concept-for-any-description",
					"count": 2
				}
			]
		}
	],
	"settings": {
		"smwgQConceptCaching": "CONCEPT_CACHE_ALL"
	},
	"meta": {
		"skip-on": {
			"elastic": "CONCEPT_CACHE_ALL isn't implemented",
			"virtuoso": "CONCEPT_CACHE_ALL isn't implemented",
			"sesame": "CONCEPT_CACHE_ALL isn't implemented",
			"fuseki": "CONCEPT_CACHE_ALL isn't implemented",
			"blazegraph": "CONCEPT_CACHE_ALL isn't implemented"
		},
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}