52 lines
853 B
JSON
52 lines
853 B
JSON
{
|
|
"description": "Test `_INST` query (#1004, en)",
|
|
"setup": [
|
|
{
|
|
"namespace": "NS_CATEGORY",
|
|
"page": "Foo",
|
|
"contents": ""
|
|
},
|
|
{
|
|
"page": "Page-with-category",
|
|
"contents": "[[Category:Foo]]"
|
|
}
|
|
],
|
|
"tests": [
|
|
{
|
|
"type": "query",
|
|
"about": "#0 query pages with annotated category",
|
|
"condition": "[[Category:Foo]]",
|
|
"printouts": [
|
|
"_INST"
|
|
],
|
|
"parameters": {
|
|
"limit": "10"
|
|
},
|
|
"assert-queryresult": {
|
|
"count": 1,
|
|
"results": [
|
|
"Page-with-category#0##"
|
|
],
|
|
"datavalues": [
|
|
{
|
|
"property": "_INST",
|
|
"value": "Foo"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"settings": {
|
|
"smwgNamespacesWithSemanticLinks": {
|
|
"NS_MAIN": true,
|
|
"NS_CATEGORY": true,
|
|
"SMW_NS_PROPERTY": true
|
|
},
|
|
"wgContLang": "en"
|
|
},
|
|
"meta": {
|
|
"version": "2",
|
|
"is-incomplete": false,
|
|
"debug": false
|
|
}
|
|
} |