{ "description": "Test RDF output generation for `_INST`/`_SUBC` pages (#922, en)", "setup": [ { "namespace": "NS_CATEGORY", "page": "Rdf-1-category", "contents": "empty" }, { "namespace": "NS_CATEGORY", "page": "Rdf-2-subcategory", "contents": "[[Category:Rdf-1-category]]" }, { "namespace": "NS_CATEGORY", "page": "Rdf-3-subsubcategory", "contents": "[[Category:Rdf-2-subcategory]]" } ], "tests": [ { "type": "rdf", "about": "#0 cat-subcat export without backlinks", "exportcontroller": { "print-pages": [ "Category:Rdf-1-category", "Category:Rdf-2-subcategory" ], "parameters": { "backlinks": false, "recursion": "1", "revisiondate": false } }, "assert-output": { "to-contain": [ "", "Rdf-1-category", "", "Rdf-2-subcategory", "" ] } }, { "type": "rdf", "about": "#1 cat-subcat export with backlinks (catches subsub-cat)", "exportcontroller": { "print-pages": [ "Category:Rdf-1-category", "Category:Rdf-2-subcategory" ], "parameters": { "backlinks": true, "recursion": "1", "revisiondate": false } }, "assert-output": { "to-contain": [ "", "", "", "Rdf-1-category", "", "Rdf-2-subcategory", "", "", "Rdf-3-subsubcategory", "", "", "Subcategory of" ] } } ], "settings": { "smwgExportBCNonCanonicalFormUse": false, "smwgNamespacesWithSemanticLinks": { "NS_MAIN": true, "NS_CATEGORY": true, "SMW_NS_PROPERTY": true }, "wgContLang": "en", "smwgNamespace": "http://example.org/id/" }, "meta": { "version": "2", "is-incomplete": false, "debug": false } }