diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0601.json')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0601.json | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0601.json b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0601.json new file mode 100644 index 00000000..b66d2809 --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0601.json @@ -0,0 +1,77 @@ +{ + "description": "Test `_wpg` for property chain query queries", + "setup": [ + { + "namespace": "SMW_NS_PROPERTY", + "page": "Located in", + "contents": "[[Has type::Page]]" + }, + { + "namespace": "SMW_NS_PROPERTY", + "page": "Member of", + "contents": "[[Has type::Page]]" + }, + { + "page": "Europe", + "contents": "[[Member of::European Union]] {{#subobject:Member of=NATO}}" + }, + { + "page": "France", + "contents": "[[Located in::Europe]]" + }, + { + "page": "Germany", + "contents": "{{#set:Located in=Europe}}" + }, + { + "page": "Italy", + "contents": "{{#subobject:Located in=Europe}}" + } + ], + "tests": [ + { + "type": "query", + "about": "#0", + "condition": "[[Located in.Member of::European Union]]", + "printouts": [], + "parameters": { + "limit": "10" + }, + "assert-queryresult": { + "count": "3", + "results": [ + "Germany#0##", + "France#0##", + "Italy#0##_261bcb222bdef3105c6906115585880c" + ] + } + }, + { + "type": "query", + "about": "#1", + "condition": "[[Located in.Has subobject.Member of::NATO]]", + "printouts": [], + "parameters": { + "limit": "10" + }, + "assert-queryresult": { + "count": "3", + "results": [ + "Germany#0##", + "France#0##", + "Italy#0##_261bcb222bdef3105c6906115585880c" + ] + } + } + ], + "settings": { + "smwgPageSpecialProperties": [ + "_MDAT" + ] + }, + "meta": { + "version": "2", + "is-incomplete": false, + "debug": false + } +}
\ No newline at end of file |