Semantic Maps examples/Query by category

From semantic-mediawiki.org
< Category:Semantic Maps examples
Semantic Maps examplesSemantic Maps examples/Query by category

A query for the 'Has coordinates' property of all pages in the locations category:

{{#ask:
[[Category:Locations]]
|?Has coordinates
|format=map
}}
Loading map...

For testing purposes, the list of coordinates:

{{#ask:
[[Category:Locations]]
|?Has coordinates
|format=table
}}
 Has coordinates
Asia34° 2' 52.31" N, 100° 37' 10.76" E
Belgium50° 30' 13.99" N, 4° 28' 11.77" E
Brussels50° 51' 1.22" N, 4° 21' 6.16" E
Christophe Ducamp48° 53' 9.02" N, 2° 20' 59.60" E
Coasting41° 27' 41.08" N, 12° 40' 3.97" E
Externsteine51° 52' 4.31" N, 8° 55' 4.90" E
Gent51° 3' 12.48" N, 3° 43' 49.37" E
Hamburg53° 33' 3.90" N, 9° 59' 37.25" E
Khabarovsk48° 29' 8.29" N, 135° 4' 46.52" E
Moscow55° 44' 34.05" N, 37° 36' 55.44" E
Netherlands52° 9' 37.64" N, 5° 37' 30.00" E
Norway60° 28' 19.29" N, 8° 28' 8.21" E
Portugal39° 34' 4.33" N, 8° 48' 39.73" W
Russia61° 31' 26.44" N, 105° 19' 7.52" E