Difference between revisions of "Semantic MediaWiki"

From Maps for MediaWiki
m
 
Line 9: Line 9:
== Semantic queries ==
== Semantic queries ==


See https://www.semantic-mediawiki.org/wiki/Help:Map_format
Maps adds SMW result formats that can be used in [https://www.semantic-mediawiki.org/wiki/Help:Inline_queries inline queries] and in other [https://www.semantic-mediawiki.org/wiki/Help:Semantic_search semantic queries].


=== Distance queries ===
* format=map - to show query results on a map, by default Leaflet
* [[Leaflet_SMW_queries|format=leaflet]] - to show query results on a Leaflet map
* [[Google_Maps_SMW_queries|format=googlemaps]] - to show query results on Google Maps
* [[KML export|format=kml]] - to export query results as KML


=== KML export ===
For map specific customization parameters, see [[Leaflet SMW queries]] or [[Google Maps SMW queries]].
 
Documentation on more advanced queries:
 
* [[Queries with templates]] - customize what gets shown in popups
* [[Distance queries]] - restrict query results based on distance from a point
* [[Compound queries]] - combine queries and differentiate their results with different icons or other attributes

Latest revision as of 00:30, 11 May 2020

Semantic MediaWiki (SMW) is a popular extension to MediaWiki that lets you store and query data in your wiki.

Maps integrates with SMW by adding support for geographical values. These values can then be queried together with other information stored in your wiki. Query results can be shown on maps, which can be customized the same way you customize standard maps provided by the Maps extension.

Geographic coordinates datatype[edit | edit source]

See https://www.semantic-mediawiki.org/wiki/Help:Type_Geographic_coordinates

Semantic queries[edit | edit source]

Maps adds SMW result formats that can be used in inline queries and in other semantic queries.

  • format=map - to show query results on a map, by default Leaflet
  • format=leaflet - to show query results on a Leaflet map
  • format=googlemaps - to show query results on Google Maps
  • format=kml - to export query results as KML

For map specific customization parameters, see Leaflet SMW queries or Google Maps SMW queries.

Documentation on more advanced queries: