summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/r-0020.json
blob: 076006137805194a24b7bc30ca5143cb5c928873 (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
{
	"description": "Test RDF output on `/` in porperty name (#3134)",
	"setup": [
		{
			"namespace": "SMW_NS_PROPERTY",
			"page": "R0020/URL",
			"contents": "[[Has type::URL]]"
		},
		{
			"page": "Example/R0020/1",
			"contents": "[[R0020/URL::https://example.org/Foo]]"
		}
	],
	"tests": [
		{
			"type": "rdf",
			"about": "#0",
			"dumpRDF": {
				"parameters": {
					"page": "Example/R0020/1"
				}
			},
			"assert-output": {
				"to-contain": [
					"<wiki:Property-3AR0020-2FURL rdf:resource=\"https://example.org/Foo\"/>",
					"<owl:ObjectProperty rdf:about=\"http://example.org/id/Property-3AR0020-2FURL\" />"
				]
			}
		}
	],
	"settings": {
		"wgContLang": "en",
		"wgLang": "en",
		"smwgNamespacesWithSemanticLinks": {
			"NS_MAIN": true,
			"SMW_NS_PROPERTY": true
		},
		"smwgNamespace": "http://example.org/id/"
	},
	"meta": {
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}