Semantic MediaWiki: Difference between revisions
From Maps for MediaWiki
No edit summary |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[https://www.semantic-mediawiki | [https://www.pro.wiki/semantic-mediawiki 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. | 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. | ||
Line 9: | Line 9: | ||
== Semantic queries == | == Semantic queries == | ||
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]. | |||
=== | * 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 | |||
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 01:02, 26 January 2023
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
See https://www.semantic-mediawiki.org/wiki/Help:Type_Geographic_coordinates
Semantic queries
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:
- 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