summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/r-0007.json
blob: 9b56bc90ed5f49d99194ced149164c19b75f1348 (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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
	"description": "Test RDF output for imported dc/gna vocabulary, owl:AnnotationProperty, owl:DatatypeProperty, owl:ObjectProperty, Equivalent URI (#795, `wgRestrictDisplayTitle`, en)",
	"setup": [
		{
			"namespace": "NS_MEDIAWIKI",
			"page": "Smw import dc",
			"contents": "http://purl.org/dc/elements/1.1/|[http://dublincore.org/documents/dces/ Dublin Core Metadata Element Set, Version 1.1] \n contributor|Type:Text \n coverage|Type:Page \n creator|Type:Text \n date|Type:Text \n description|Type:Text \n format|Type:Page \n identifier|Type:Annotation URI \n language|Type:Text \n publisher|Type:Text \n relation|Type:Page \n rights|Type:Text \n source|Type:Text \n subject|Type:Text \n title|Type:Text \n type|Type:Text \n"
		},
		{
			"namespace": "NS_MEDIAWIKI",
			"page": "Smw import gna",
			"contents": "http://rs.gbif.org/terms/1.0/|[http://rs.gbif.org/extension/gbif/1.0/ GBIF Global Names Architecture (GNA)] \n Identifier|Type:Page \n isHybrid|Type:Boolean"
		},
		{
			"namespace": "SMW_NS_PROPERTY",
			"page": "Dc:identifier",
			"contents": "[[Imported from::dc:identifier]] [[Equivalent URI::http://purl.org/dc/elements/1.1/identifier]] {{DISPLAYTITLE:dc:identifier}} [[Category:Dublin Core]]"
		},
		{
			"namespace": "SMW_NS_PROPERTY",
			"page": "Gna:isHybrid",
			"contents": "[[Imported from::gna:isHybrid]] [[dc:identifier::http://rs.gbif.org/terms/1.0/isHybrid]] {{DISPLAYTITLE:gna:isHybrid}} [[Category:GNA]] [[Category:GBIF]]"
		},
		{
			"namespace": "SMW_NS_PROPERTY",
			"page": "Gna:Identifier",
			"contents": "[[Imported from::gna:Identifier]] {{DISPLAYTITLE:gna:Identifier}} [[Category:GNA]] [[Category:GBIF]]"
		}
	],
	"tests": [
		{
			"type": "rdf",
			"about": "#0 (is owl:AnnotationProperty)",
			"exportcontroller": {
				"print-pages": [
					"Property:Dc:identifier"
				],
				"parameters": {
					"backlinks": false,
					"recursion": "1",
					"revisiondate": false
				}
			},
			"assert-output": {
				"to-contain": [
					"<owl:AnnotationProperty rdf:about=\"http://purl.org/dc/elements/1.1/identifier\">",
					"<owl:equivalentProperty rdf:resource=\"http://purl.org/dc/elements/1.1/identifier\"/>",
					"<property:Display_title_of rdf:datatype=\"http://www.w3.org/2001/XMLSchema#string\">dc:identifier</property:Display_title_of>",
					"<swivt:specialImportedFrom rdf:datatype=\"http://www.w3.org/2001/XMLSchema#string\">dc:identifier|http://purl.org/dc/elements/1.1/</swivt:specialImportedFrom>",
					"<rdf:type rdf:resource=\"http://example.org/id/Category-3ADublin_Core\"/>",
					"<owl:Class rdf:about=\"http://example.org/id/Category-3ADublin_Core\" />",
					"<swivt:type rdf:resource=\"http://semantic-mediawiki.org/swivt/1.0#_anu\"/>",
					"<rdfs:label>dc:identifier</rdfs:label>",
					"<swivt:wikiPageSortKey rdf:datatype=\"http://www.w3.org/2001/XMLSchema#string\">dc:identifier</swivt:wikiPageSortKey>"
				]
			}
		},
		{
			"type": "rdf",
			"about": "#1 (is owl:DatatypeProperty, typed boolean)",
			"exportcontroller": {
				"print-pages": [
					"Property:Gna:isHybrid"
				],
				"parameters": {
					"backlinks": false,
					"recursion": "1",
					"revisiondate": false
				}
			},
			"assert-output": {
				"to-contain": [
					"<owl:DatatypeProperty rdf:about=\"http://rs.gbif.org/terms/1.0/isHybrid\">",
					"<rdfs:label>gna:isHybrid</rdfs:label>",
					"<dc:identifier rdf:resource=\"http://rs.gbif.org/terms/1.0/isHybrid\"/>",
					"<property:Display_title_of rdf:datatype=\"http://www.w3.org/2001/XMLSchema#string\">gna:isHybrid</property:Display_title_of>",
					"<swivt:specialImportedFrom rdf:datatype=\"http://www.w3.org/2001/XMLSchema#string\">gna:isHybrid|http://rs.gbif.org/terms/1.0/</swivt:specialImportedFrom>",
					"<swivt:wikiPageSortKey rdf:datatype=\"http://www.w3.org/2001/XMLSchema#string\">gna:isHybrid</swivt:wikiPageSortKey>",
					"<swivt:type rdf:resource=\"http://semantic-mediawiki.org/swivt/1.0#_boo\"/>"
				]
			}
		},
		{
			"type": "rdf",
			"about": "#2 (is owl:ObjectProperty, typed page)",
			"exportcontroller": {
				"print-pages": [
					"Property:Gna:Identifier"
				],
				"parameters": {
					"backlinks": false,
					"recursion": "1",
					"revisiondate": false
				}
			},
			"assert-output": {
				"to-contain": [
					"<owl:ObjectProperty rdf:about=\"http://rs.gbif.org/terms/1.0/Identifier\">",
					"<rdfs:label>gna:Identifier</rdfs:label>",
					"<property:Display_title_of rdf:datatype=\"http://www.w3.org/2001/XMLSchema#string\">gna:Identifier</property:Display_title_of>",
					"<swivt:specialImportedFrom rdf:datatype=\"http://www.w3.org/2001/XMLSchema#string\">gna:Identifier|http://rs.gbif.org/terms/1.0/</swivt:specialImportedFrom>",
					"<swivt:wikiPageSortKey rdf:datatype=\"http://www.w3.org/2001/XMLSchema#string\">gna:Identifier</swivt:wikiPageSortKey>",
					"<swivt:type rdf:resource=\"http://semantic-mediawiki.org/swivt/1.0#_wpg\"/>"
				]
			}
		}
	],
	"settings": {
		"wgContLang": "en",
		"wgAllowDisplayTitle": true,
		"wgRestrictDisplayTitle": false,
		"smwgExportBCNonCanonicalFormUse": false,
		"smwgNamespace": "http://example.org/id/",
		"smwgNamespacesWithSemanticLinks": {
			"NS_MAIN": true,
			"SMW_NS_PROPERTY": true,
			"NS_CATEGORY": true
		}
	},
	"meta": {
		"version": "2",
		"is-incomplete": false,
		"debug": false
	}
}