diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0703.json')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0703.json | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0703.json b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0703.json new file mode 100644 index 00000000..c360aca1 --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0703.json @@ -0,0 +1,77 @@ +{ + "description": "Test to map `Foaf` property from back-end / using a localized predefined property `A le type@fr` (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": "SMW_NS_PROPERTY", + "page": "Foaf:homepage", + "contents": "[[Imported from::foaf:homepage]] [[Category:Import]]" + } + ], + "tests": [ + { + "type": "query", + "about": "#0", + "condition": "[[Has type::+]] [[Category:Import]]", + "printouts": [ + "Has type" + ], + "parameters": { + "limit": "10" + }, + "assert-queryresult": { + "count": 1, + "results": [ + "Foaf:homepage#102##" + ], + "datavalues": [ + { + "property": "Has type", + "value": "URL" + } + ] + } + }, + { + "type": "query", + "about": "#1 (A le type@fr == Has type)", + "condition": "[[A le type@fr::+]] [[Category:Import]]", + "printouts": [ + "A le type@fr" + ], + "parameters": { + "limit": "10" + }, + "assert-queryresult": { + "count": 1, + "results": [ + "Foaf:homepage#102##" + ], + "datavalues": [ + { + "property": "Has type", + "value": "URL" + } + ] + } + } + ], + "settings": { + "wgContLang": "en", + "wgLang": "en", + "smwgNamespace": "http://example.org/id/", + "smwgNamespacesWithSemanticLinks": { + "NS_MAIN": true, + "SMW_NS_PROPERTY": true + } + }, + "meta": { + "version": "2", + "is-incomplete": false, + "debug": false + } +}
\ No newline at end of file |