Germany

From semantic-mediawiki.org
Jump to: navigation, search

A fine European country.

[edit] Inverse relationships

The sample pages use Property:Located in, for example the Berlin article states the fact located in::Germany. If you want to also show this information here in the article for the object of the relationship, there are several ways to do this:

{{#ask:
  [[Located in::{{FULLPAGENAME}}]]
  | intro=Things located in {{PAGENAME}}:_ 
  | link=all
}}

Result: Things located in Germany:_Baden-Württemberg, Berlin, Frankfurt, Munich, Stuttgart

[edit] «Transitive» relationships

Some pages may not directly state that they are located in Germany, and only state they are located somewhere that in turn is located in Germany. To find things located in things located in Germany, you have to nest a subquery:

Located in
Karlsruhe Baden-Württemberg
Stuttgart Germany
Baden-Württemberg


Note that this does of course not realise true transitivity, but only a limited number of steps along the property «located in».

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox