summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/r-0009.json
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/r-0009.json')
-rw-r--r--www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/r-0009.json85
1 files changed, 85 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/r-0009.json b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/r-0009.json
new file mode 100644
index 00000000..263f6d69
--- /dev/null
+++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/r-0009.json
@@ -0,0 +1,85 @@
+{
+ "description": "Test RDF output generation that contain a monolingual text annotations `_PDESC` (`wgContLang=en`, `wgLang=es`, syntax=rdf/turtle)",
+ "setup": [
+ {
+ "namespace": "SMW_NS_PROPERTY",
+ "page": "Has number",
+ "contents": "[[Has type::Number]] [[Has property description::Is a number@en]] [[Has property description::数@ja]]"
+ }
+ ],
+ "tests": [
+ {
+ "type": "rdf",
+ "about": "#0",
+ "exportcontroller": {
+ "print-pages": [
+ "Property:Has number"
+ ],
+ "parameters": {
+ "backlinks": true,
+ "recursion": "1",
+ "revisiondate": false
+ }
+ },
+ "assert-output": {
+ "to-contain": [
+ "<owl:DatatypeProperty rdf:about=\"http://example.org/id/Property-3AHas_number\">",
+ "<skos:scopeNote xml:lang=\"en\">Is a number</skos:scopeNote>",
+ "<skos:scopeNote xml:lang=\"ja\">数</skos:scopeNote>",
+ "<property:Property_description rdf:resource=\"http://example.org/id/Property-3AHas_number-23_ML13b181afba7d1e489a656a75fa7917b2\"/>",
+ "<property:Property_description rdf:resource=\"http://example.org/id/Property-3AHas_number-23_ML4c33eabf5c7dfbb1292c817504951018\"/>",
+ "<swivt:Subject rdf:about=\"http://example.org/id/Property-3AHas_number-23_ML13b181afba7d1e489a656a75fa7917b2\">",
+ "<property:Text rdf:datatype=\"http://www.w3.org/2001/XMLSchema#string\">Is a number</property:Text>",
+ "<property:Language_code rdf:datatype=\"http://www.w3.org/2001/XMLSchema#string\">en</property:Language_code>",
+ "<swivt:Subject rdf:about=\"http://example.org/id/Property-3AHas_number-23_ML4c33eabf5c7dfbb1292c817504951018\">",
+ "<property:Text rdf:datatype=\"http://www.w3.org/2001/XMLSchema#string\">数</property:Text>",
+ "<property:Language_code rdf:datatype=\"http://www.w3.org/2001/XMLSchema#string\">ja</property:Language_code>"
+ ]
+ }
+ },
+ {
+ "type": "rdf",
+ "about": "#0",
+ "exportcontroller": {
+ "syntax": "turtle",
+ "print-pages": [
+ "Property:Has number"
+ ],
+ "parameters": {
+ "backlinks": true,
+ "recursion": "1",
+ "revisiondate": false
+ }
+ },
+ "assert-output": {
+ "to-contain": [
+ "rdfs:label \"Has number\" ;",
+ "skos:scopeNote \"Is a number\"@en , \"数\"@ja ;",
+ "property:Property_description property:Has_number-23_ML13b181afba7d1e489a656a75fa7917b2 , property:Has_number-23_ML4c33eabf5c7dfbb1292c817504951018 ;",
+ "swivt:wikiPageSortKey \"Has number\" ;",
+ "swivt:type <http://semantic-mediawiki.org/swivt/1.0#_num> .",
+ "property:Language_code \"en\" ;",
+ "property:Text \"Is a number\" .",
+ "property:Language_code \"ja\" ;",
+ "property:Text \"数\" ."
+ ]
+ }
+ }
+ ],
+ "settings": {
+ "smwgExportBCNonCanonicalFormUse": false,
+ "smwgNamespacesWithSemanticLinks": {
+ "NS_MAIN": true,
+ "NS_CATEGORY": true,
+ "SMW_NS_PROPERTY": true
+ },
+ "wgContLang": "en",
+ "wgLang": "es",
+ "smwgNamespace": "http://example.org/id/"
+ },
+ "meta": {
+ "version": "2",
+ "is-incomplete": false,
+ "debug": false
+ }
+} \ No newline at end of file