Semantic Maps examples/Querying with additional properties

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

These queries demonstrate how to query additional properties, which are displayed in pop-ups you can open by clicking their corresponding marker.

Query showing all cities located in Germany or Belgium together with 'Located in' and 'Has location type' properties:

{{#ask: [[Category:Locations]] [[Has location type::City]] <q>[[Located in::Germany]]OR[[Located in::Belgium]]</q>
| ?Has coordinates
| ?Has location type
| ?Located in 
| format=map
}}

{{#ask: Has location type::City Located in::GermanyORLocated in::Belgium | ?Has coordinates | ?Has location type | ?Located in | format=map }}

Query showing all cities located in a European country together with 'Located in' and 'Has location type' properties:

{{#ask: [[Category:Locations]] [[Has location type::City]] [[Located in.Located in::Europe]]
| ?Has coordinates
| ?Has location type
| ?Located in 
| format=map
}}

{{#ask: Has location type::City Located in.Located in::Europe | ?Has coordinates | ?Has location type | ?Located in | format=map }}