Semantic Maps examples/KML queries

From semantic-mediawiki.org
Jump to: navigation, search
Semantic Maps examplesSemantic Maps examples/KML queries

Example queries using the KML result format provided by Semantic Maps.

Simple query with the KML format

A query for the 'Has coordinates' property of all pages in that have this property set:

{{#ask:
 [[Has coordinates::+]]
 | ?Has coordinates
 | format=kml
 | searchlabel=Export as KML-file
}}

Results in: Export as KML-file

KML format specific parameters

{{#ask:
 [[Has coordinates::+]]
 | ?Has coordinates
 | format=kml
 | pagelinktext=Check out $1 now!
 | linkabsolute=off
 | searchlabel=Export as KML-file
}}

Results in: Export as KML-file