diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0204.json')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0204.json | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0204.json b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0204.json new file mode 100644 index 00000000..0c2d4dd3 --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/q-0204.json @@ -0,0 +1,109 @@ +{ + "description": "Test `_CONC` on predefined inverse query and subobject inverse query (#1096, skip virtuoso)", + "setup": [ + { + "namespace": "SMW_NS_PROPERTY", + "page": "Has page", + "contents": "[[Has type::Page]]" + }, + { + "page": "Page/02/04-1", + "contents": "{{#subobject:|Has page=Page/02/04-1}}" + }, + { + "page": "Page/02/04-2", + "contents": "[[Has page::Page/02/04-2]]" + }, + { + "namespace": "SMW_NS_CONCEPT", + "page": "Concept-for-inverse-pre-defined-property", + "contents": "{{#concept: [[-Has page.-Has subobject::Page/02/04-1]] }}" + }, + { + "namespace": "SMW_NS_CONCEPT", + "page": "Concept-for-inverse-user-defined-property", + "contents": "{{#concept: [[-Has page.-Has page::Page/02/04-2]] }}" + } + ], + "tests": [ + { + "type": "query", + "about": "#0 inverse for pre-defined property", + "condition": "[[-Has page.-Has subobject::Page/02/04-1]]", + "printouts": [], + "parameters": { + "limit": "10" + }, + "assert-queryresult": { + "count": 1, + "results": [ + "Page/02/04-1#0##" + ] + } + }, + { + "type": "query", + "about": "#1 inverse for user-defined-property", + "condition": "[[-Has page.-Has page::Page/02/04-2]]", + "printouts": [], + "parameters": { + "limit": "10" + }, + "assert-queryresult": { + "count": 1, + "results": [ + "Page/02/04-2#0##" + ] + } + }, + { + "type": "concept", + "about": "#2", + "condition": "[[Concept:Concept-for-inverse-pre-defined-property]]", + "parameters": { + "limit": "10" + }, + "assert-queryresult": { + "count": 1, + "results": [ + "Page/02/04-1#0##" + ] + }, + "conceptcache": [ + { + "concept": "Concept-for-inverse-pre-defined-property", + "count": 1 + } + ] + }, + { + "type": "concept", + "about": "#3", + "condition": "[[Concept:Concept-for-inverse-user-defined-property]]", + "parameters": { + "limit": "10" + }, + "assert-queryresult": { + "count": 1, + "results": [ + "Page/02/04-2#0##" + ] + }, + "conceptcache": [ + { + "concept": "Concept-for-inverse-user-defined-property", + "count": 1 + } + ] + } + ], + "settings": [], + "meta": { + "skip-on": { + "virtuoso": "Virtuoso reports 'SPARQL compiler: Blank node ... is not allowed in a constant clause', see https://github.com/openlink/virtuoso-opensource/issues/126" + }, + "version": "2", + "is-incomplete": false, + "debug": false + } +}
\ No newline at end of file |