Semantic Maps examples/Querying with additional properties

From semantic-mediawiki.org
< Category:Semantic Maps examples
Semantic Maps examplesSemantic Maps examples/Querying with additional properties

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
}}
Loading 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
}}
Loading map...