{ "description": "Test RDF output for `_txt`/`_wpg`/`_dat` (#881)", "setup": [ { "namespace": "SMW_NS_PROPERTY", "page": "Has text property for rdf", "contents": "[[Has type::Text]]" }, { "namespace": "SMW_NS_PROPERTY", "page": "Has page property for rdf", "contents": "[[Has type::Page]]" }, { "namespace": "SMW_NS_PROPERTY", "page": "Has date property for rdf", "contents": "[[Has type::Date]]" }, { "page": "Rdf-1", "contents": "[[Has page property for rdf::Test one]] [[Has text property for rdf::Test one]]" }, { "page": "Rdf-2", "contents": "[[Has page property for rdf::Test two]] [[Has text property for rdf::Test two]]" }, { "page": "Rdf-3", "contents": "{{#subobject:|Has page property for rdf=I--11--O|@sortkey=X99Y}} {{#subobject:Caractères spéciaux|Has text property for rdf={({[[&,,;-]]})} }}" }, { "page": "Rdf-4", "contents": "[[Has date property for rdf::31/12/2014]] {{#subobject:|Has date property for rdf=1/1/1970}}" }, { "page": "Rdf-5", "contents": "Not permitted to use [[Has subobject::foo]] {{DEFAULTSORT:AA-BB-CC}}" } ], "tests": [ { "type": "rdf", "about": "#0 Single subject output", "exportcontroller": { "print-pages": [ "Rdf-1" ], "parameters": { "backlinks": false, "recursion": "1", "revisiondate": false } }, "assert-output": { "to-contain": [ "", "Test one", "Rdf-1", "", "" ] } }, { "type": "rdf", "about": "#1", "exportcontroller": { "print-pages": [ "Rdf-1", "Rdf-2" ], "parameters": { "backlinks": false, "recursion": "1", "revisiondate": false } }, "assert-output": { "to-contain": [ "", "Rdf-1", "", "Rdf-2" ] } }, { "type": "rdf", "about": "#2 Output for anonymous and named subobject", "exportcontroller": { "print-pages": [ "Rdf-3" ], "parameters": { "backlinks": false, "recursion": "1", "revisiondate": false } }, "assert-output": { "to-contain": [ "", "", "", "", "", "", "{({[[&,,;-]]})}", "" ] } }, { "type": "rdf", "about": "#3 Date output", "exportcontroller": { "print-pages": [ "Rdf-4" ], "parameters": { "backlinks": false, "recursion": "1", "revisiondate": false } }, "assert-output": { "to-contain": [ "", "2014-12-31Z", "2457022.5", "", "1970-01-01Z", "2440587.5", "", "" ] } }, { "type": "rdf", "about": "#4 Property output, see #795", "exportcontroller": { "print-pages": [ "Property:Has text property for rdf", "Property:Has page property for rdf", "Property:Has date property for rdf" ], "parameters": { "backlinks": false, "recursion": "1", "revisiondate": false } }, "assert-output": { "to-contain": [ "", "Has text property for rdf", "", "", "Has page property for rdf", "", "", "Has date property for rdf", "", "" ] } }, { "type": "rdf", "about": "#5 Check for proper output despite the use of [[Has subobject:: ... ]] as annotation", "exportcontroller": { "print-pages": [ "Rdf-5" ], "parameters": { "backlinks": false, "recursion": "1", "revisiondate": false } }, "assert-output": { "to-contain": [ "", "Rdf-5", "AA-BB-CC" ] } } ], "settings": { "smwgExportBCAuxiliaryUse": true, "smwgNamespace": "http://example.org/id/", "smwgNamespacesWithSemanticLinks": { "NS_MAIN": true, "NS_HELP": true, "SMW_NS_PROPERTY": true } }, "meta": { "version": "2", "is-incomplete": false, "debug": false } }