77 lines
1.4 KiB
JSON
77 lines
1.4 KiB
JSON
{
|
|
"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
|
|
}
|
|
} |