116 lines
2.5 KiB
JSON
116 lines
2.5 KiB
JSON
{
|
|
"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": {
|
|
"smwgNamespacesWithSemanticLinks": {
|
|
"NS_MAIN": true,
|
|
"SMW_NS_PROPERTY": true,
|
|
"SMW_NS_CONCEPT": true
|
|
}
|
|
},
|
|
"meta": {
|
|
"skip-on": {
|
|
"mediawiki": [ ">1.42.x", "Skipping, broken due to no results being returned on #2" ],
|
|
"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
|
|
}
|
|
} |