summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/r-0017.json
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/r-0017.json')
-rw-r--r--www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/r-0017.json104
1 files changed, 104 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/r-0017.json b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/r-0017.json
new file mode 100644
index 00000000..bb427db3
--- /dev/null
+++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/r-0017.json
@@ -0,0 +1,104 @@
+{
+ "description": "Test RDF output generation with special characters (#2188, `smwgExportResourcesAsIri=true`, `wgContLang=en`, `wgLang=en`)",
+ "setup": [
+ {
+ "page": "Example/R0017/1/特殊字符",
+ "contents": "{{#subobject: ^[0-9]*$ |特殊字符=^[0-9]*$ }}"
+ },
+ {
+ "page": "Example/R0017/2/特殊字符",
+ "contents": "{{#subobject: {({[[&,,;-.]]})} |特殊字符={({[[&,,;-]]})} }}"
+ },
+ {
+ "page": "Example/R0017/3/特殊 字符",
+ "contents": "{{#subobject: <> |特殊字符=<>\\'/\" }}"
+ }
+ ],
+ "tests": [
+ {
+ "type": "rdf",
+ "about": "#0",
+ "exportcontroller": {
+ "print-pages": [
+ "Example/R0017/1/特殊字符"
+ ],
+ "parameters": {
+ "backlinks": true,
+ "recursion": "1",
+ "revisiondate": false
+ }
+ },
+ "assert-output": {
+ "to-contain": [
+ "<swivt:Subject rdf:about=\"http://example.org/id/Example/R0017/1/特殊字符\">",
+ "<rdfs:label>Example/R0017/1/特殊字符</rdfs:label>",
+ "<property:Has_subobject rdf:resource=\"&wiki;Example/R0017/1/特殊字符-23-5E-5B0-2D9-5D-2A-24\"/>",
+ "<swivt:Subject rdf:about=\"http://example.org/id/Example/R0017/1/特殊字符-23_ERRb4cc1ce66e816f93b716adeeddb0fa46\">",
+ "<swivt:Subject rdf:about=\"http://example.org/id/Example/R0017/1/特殊字符-23-5E-5B0-2D9-5D-2A-24\">"
+ ]
+ }
+ },
+ {
+ "type": "rdf",
+ "about": "#1",
+ "exportcontroller": {
+ "print-pages": [
+ "Example/R0017/2/特殊字符"
+ ],
+ "parameters": {
+ "backlinks": true,
+ "recursion": "1",
+ "revisiondate": false
+ }
+ },
+ "assert-output": {
+ "to-contain": [
+ "<swivt:Subject rdf:about=\"http://example.org/id/Example/R0017/2/特殊字符\">",
+ "<rdfs:label>Example/R0017/2/特殊字符</rdfs:label>",
+ "<property:Has_subobject rdf:resource=\"&wiki;Example/R0017/2/特殊字符-23-7B-28-7B-5B-5B-26-2C-2C-3B-2D.-5D-5D-7D-29-7D\"/>",
+ "<swivt:Subject rdf:about=\"http://example.org/id/Example/R0017/2/特殊字符-23_ERRb4cc1ce66e816f93b716adeeddb0fa46\">",
+ "<swivt:Subject rdf:about=\"http://example.org/id/Example/R0017/2/特殊字符-23-7B-28-7B-5B-5B-26-2C-2C-3B-2D.-5D-5D-7D-29-7D\">"
+ ]
+ }
+ },
+ {
+ "type": "rdf",
+ "about": "#2",
+ "exportcontroller": {
+ "print-pages": [
+ "Example/R0017/3/特殊 字符"
+ ],
+ "parameters": {
+ "backlinks": true,
+ "recursion": "1",
+ "revisiondate": false
+ }
+ },
+ "assert-output": {
+ "to-contain": [
+ "<swivt:Subject rdf:about=\"http://example.org/id/Example/R0017/3/特殊_字符\">",
+ "<rdfs:label>Example/R0017/3/特殊 字符</rdfs:label>",
+ "<property:Has_subobject rdf:resource=\"&wiki;Example/R0017/3/特殊_字符-23-3C-3E\"/>",
+ "<swivt:Subject rdf:about=\"http://example.org/id/Example/R0017/3/特殊_字符-23_ERRb4cc1ce66e816f93b716adeeddb0fa46\">",
+ "<swivt:Subject rdf:about=\"http://example.org/id/Example/R0017/3/特殊_字符-23-3C-3E\">"
+ ]
+ }
+ }
+ ],
+ "settings": {
+ "wgContLang": "en",
+ "wgLang": "en",
+ "smwgExportBCNonCanonicalFormUse": false,
+ "smwgExportResourcesAsIri": true,
+ "smwgNamespacesWithSemanticLinks": {
+ "NS_MAIN": true,
+ "SMW_NS_PROPERTY": true
+ },
+ "smwgNamespace": "http://example.org/id/"
+ },
+ "meta": {
+ "version": "2",
+ "is-incomplete": false,
+ "debug": false
+ }
+} \ No newline at end of file