{ "description": "Test RDF output for imported foaf vocabulary (#884, en)", "setup": [ { "namespace": "NS_MEDIAWIKI", "page": "Smw import foaf", "contents": "http://xmlns.com/foaf/0.1/|[http://www.foaf-project.org/ Friend Of A Friend]\n name|Type:Text\n homepage|Type:URL\n mbox|Type:Email\n mbox_sha1sum|Type:Text\n depiction|Type:URL\n phone|Type:Text\n Person|Category\n Organization|Category\n knows|Type:Page\n member|Type:Page\n" }, { "namespace": "NS_CATEGORY", "page": "Organization", "contents": "[[Imported from::foaf:Organization]] [[Category:Social entity]]" }, { "namespace": "SMW_NS_PROPERTY", "page": "Foaf:homepage", "contents": "[[Imported from::foaf:homepage]]" }, { "namespace": "SMW_NS_PROPERTY", "page": "Foaf:mbox", "contents": "[[Has type::Text]] [[Imported from::foaf:mbox]]" }, { "namespace": "SMW_NS_PROPERTY", "page": "Foaf:name", "contents": "[[Has type::Text]] [[Imported from::foaf:name]]" }, { "namespace": "SMW_NS_PROPERTY", "page": "Foaf:knows", "contents": "[[Has type::Page]] [[Imported from::foaf:knows]]" }, { "page": "John Doe", "contents": "[[Foaf:name::John Doe]], [[Foaf:homepage::http://example.org/JohnDoe]] [[Foaf:knows::Jane Doe]]" }, { "page": "Jane Doe", "contents": "[[Foaf:name::Jane Doe]], [[Foaf:homepage::http://example.org/JaneDoe]] [[Foaf:knows::John Doe]]" } ], "tests": [ { "type": "rdf", "about": "#0", "exportcontroller": { "print-pages": [ "John Doe" ], "parameters": { "backlinks": false, "recursion": "1", "revisiondate": false } }, "assert-output": { "to-contain": [ "", "xmlns:foaf=\"http://xmlns.com/foaf/0.1/", "", "", "John Doe", "", "", "" ] } }, { "type": "rdf", "about": "#1 export with backlinks", "exportcontroller": { "print-pages": [ "John Doe", "Jane Doe" ], "parameters": { "backlinks": true, "recursion": "2", "revisiondate": false } }, "assert-output": { "to-contain": [ "", "", "", "", "Jane Doe", "", "Foaf:knows", "foaf:knows|http://xmlns.com/foaf/0.1/", "", "", "", "" ] } }, { "type": "rdf", "about": "#2", "exportcontroller": { "print-pages": [ "Property:Foaf:knows" ], "parameters": { "backlinks": false, "recursion": "1", "revisiondate": false } }, "assert-output": { "to-contain": [ "", "Foaf:knows", "foaf:knows|http://xmlns.com/foaf/0.1/", "", "" ] } }, { "type": "rdf", "about": "#3 type definition fetched from import reference", "exportcontroller": { "print-pages": [ "Property:Foaf:homepage" ], "parameters": { "backlinks": false, "recursion": "1", "revisiondate": false } }, "assert-output": { "to-contain": [ "", "foaf:homepage|http://xmlns.com/foaf/0.1/", "", "" ] } }, { "type": "rdf", "about": "#4 user declared type definition being replaced by import type reference", "exportcontroller": { "print-pages": [ "Property:Foaf:mbox" ], "parameters": { "backlinks": false, "recursion": "1", "revisiondate": false } }, "assert-output": { "to-contain": [ "", "foaf:mbox|http://xmlns.com/foaf/0.1/", "", "" ] } }, { "type": "rdf", "about": "#5 owl:Class / Category encoding, see #1081", "exportcontroller": { "print-pages": [ "Category:Organization" ], "parameters": { "backlinks": false, "recursion": "1", "revisiondate": false } }, "assert-output": { "to-contain": [ "", "Organization", "foaf:Organization|http://xmlns.com/foaf/0.1/", "", "", "" ] } } ], "settings": { "wgContLang": "en", "smwgExportBCNonCanonicalFormUse": false, "smwgNamespace": "http://example.org/id/", "smwgNamespacesWithSemanticLinks": { "NS_MAIN": true, "SMW_NS_PROPERTY": true, "NS_CATEGORY": true } }, "meta": { "version": "2", "is-incomplete": false, "debug": false } }