Thread:Semantic-mediawiki.org:Community portal/Is it possible to specify and obtain another pages properties in a query results table?/reply (2)

As far as I understand, this is not possible in Semantic MediaWiki directly, however it can be worked around. In short, the template format is required, and here it is:

The  template is as follows:

,, , ,

In the template above I use named arguments for easiness. However, I use  and   to store and retrieve some data from the current row. Also I use two auxiliary templates:  and   to simplify data extraction. The first template,, is just a shortcut:

to extract a property for the current page. The second template called  simplifies data extraction for the given page, not the current one:

And yes, the  just strips left and right brackets, and optional leading colon:

So I managed to crawl the following page relationships:


 * Venue to city
 * City to country
 * Country to continent