Germany (inverse example)


This page shows a way to keep Property:Location of in sync with its inverse Property:Located in. See the discussion on the main Germany page.

We want a query that finds everything located in Germany to output wiki text that has the markup for several location of semantic annotations.

The difficulty is specifying additional wiki markup in the sep parameter to an inline query. So we create a template Template:Semantic-invert to provide it.

[[Location of::Baden-WürttembergTemplate:Semantic-invertBerlinTemplate:Semantic-invertCologneTemplate:Semantic-invertExternsteineTemplate:Semantic-invertFrankfurtTemplate:Semantic-invertHamburgTemplate:Semantic-invertMichaelZ70Template:Semantic-invertMunichTemplate:Semantic-invertStuttgartTemplate:Semantic-invertWürzburg ]]