Tree format query does not render as a nested list

From semantic-mediawiki.org

The issue is that the countries e.g. Netherlands are not assigned to the "City" category. In your query you are asking for pages which are in the category "City" only. Have a look at more examples in the sandbox wiki.

16:05, 8 November 2017

Thanks for the reply. Seems like I overestimated what a result format can do.

Including a country in the query does indeed have the desired effect:

{{#ask:
 [[Germany]]
 OR
 [[Category:City]] [[Located in::Germany]]
 | format = tree
 | parent = Located in
 | limit = 5
}}

Result:



Nice :)

19:58, 8 November 2017

Some result formats indeed need a special data structure to work on. Here it appears more to be a matter of selecting pages. Have a look at inferencing too.

23:27, 8 November 2017