{ "description": "Test RDF output generation `skos` import/`skos:altLabel` as Monolingual text (`wgContLang=en`, `wgLang=en`)", "setup": [ { "namespace": "NS_MEDIAWIKI", "page": "Smw import skos", "contents": { "import-from": "/../Fixtures/skos-import.txt" } }, { "namespace": "SMW_NS_PROPERTY", "page": "Has alternative label", "contents": "[[Imported from::skos:altLabel]]" }, { "page": "Example/P0440/Triacylglycerol lipase", "contents": "[[Has alternative label::Lipase@en]], [[Has alternative label::Tributyrase@en]], [[Has alternative label::Triglyceride lipase@en]], [[Has alternative label::トリアシルグリセロールリパーゼ@ja]]" } ], "tests": [ { "type": "rdf", "about": "#0", "exportcontroller": { "print-pages": [ "Example/P0440/Triacylglycerol lipase" ], "parameters": { "backlinks": true, "recursion": "1", "revisiondate": false } }, "assert-output": { "to-contain": [ "", "", "", "", "Lipase", "Tributyrase", "Triglyceride lipase", "トリアシルグリセロールリパーゼ", "", "en", "Lipase", "", "" ] } }, { "type": "rdf", "about": "#1", "exportcontroller": { "syntax": "turtle", "print-pages": [ "Example/P0440/Triacylglycerol lipase" ], "parameters": { "backlinks": true, "recursion": "1", "revisiondate": false } }, "assert-output": { "to-contain": [ "property:Has_alternative_label , , , ;", "skos:altLabel \"Lipase\"@en , \"Tributyrase\"@en , \"Triglyceride lipase\"@en , \"トリアシルグリセロールリパーゼ\"@ja ;" ] } }, { "type": "rdf", "about": "#2", "exportcontroller": { "print-pages": [ "Property:Has alternative label" ], "parameters": { "backlinks": true, "recursion": "1", "revisiondate": false } }, "assert-output": { "to-contain": [ "", "Has alternative label", "skos:altLabel|http://www.w3.org/2004/02/skos/core#", "" ] } } ], "settings": { "wgContLang": "en", "wgLang": "en", "smwgExportBCNonCanonicalFormUse": false, "smwgNamespacesWithSemanticLinks": { "NS_MAIN": true, "SMW_NS_PROPERTY": true }, "smwgNamespace": "http://example.org/id/" }, "meta": { "version": "2", "is-incomplete": false, "debug": false } }