Extension:Semantic Maps

From MediaWiki.org
Jump to: navigation, search
shortcut: Semantic Maps
MediaWiki extensions manual - list
Crystal Clear action run.png
Semantic Maps

Release status: stable

SemanticMaps.png
Implementation Parser function
Description Allows users to edit and display semantic coordinate data using multiple mapping services.
Author(s) Jeroen De Dauw and others
Last version 2.0.1 (2012-12-13)
MediaWiki 1.17.* or greater
PHP >=5.2
Database changes Yes
License GPL v2+
Download Go to this section or
Example Semantic Maps examples
Hooks used
AdminLinks

InputTypeHook

Check usage and version matrix; Maps stats
Bugs: list open list all report

The Semantic Maps extension adds semantic capabilities to the Maps extension. This includes the ability to add, edit, aggregate and visualize coordinate data stored through the Semantic MediaWiki extension. Since Semantic Maps uses the Maps API, you can use multiple mapping services. These include Google Maps (with Google Earth support), Yahoo! Maps, OpenLayers and OpenStreetMap.

Contents

Requirements[edit]

The latest Semantic Maps requires:

Alternatively you can get Semantic Maps 1.0.5 which requires:

Some functionality of Semantic Maps is obtained by hooking into other extensions and is only available if these are installed as well. These include:

Download[edit]

Quick link: Download Semantic Maps 2.0.1 (.zip file)

You can download the extension directly from the MediaWiki source code repository (browse code). You can get:

One of the extensions tags

Not all extensions have tags. Some extensions have tags for each release, in which case those tags have the same stability as the release. To download a tag

  • Go to the tags list
  • Click the name of the tag you want to download
  • Click "snapshot"
The latest version of one of the extensions branches

Each extension has a master branch containing the latest code (might be unstable). Extensions can have further branches as well.

  • Go to the branches list
  • Click the branch name
  • Click "snapshot"
A snapshot made during the release of a MediaWiki version.

This might be unstable and is not guaranteed to work with the associated MediaWiki version.

After you've got the code, save it into the extensions/SemanticMaps directory of your wiki.

If you are familiar with git and have shell access to your server, you can obtain the extension, with all its tags and branches, as follows:

cd extensions
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/SemanticMaps.git

Installation[edit]

Once you have downloaded the code, place the SemanticMaps directory within your MediaWiki 'extensions' directory. Then add the following code to your LocalSettings.php file:

# Semantic Maps
require_once( "$IP/extensions/SemanticMaps/SemanticMaps.php" );

You need to keep these rules in mind regarding the inclusion order of extenions:

  • Validator needs to be included before any extension using it (so you can just put it first to keep it simple).
  • Maps needs to be included before Semantic Maps.
  • Semantic MediaWiki needs to be included before Maps.
  • Semantic Forms (if used) needs to be included before Maps (but after SMW).

An example of a typical inclusion order: ..., Validator, ..., SMW, ..., SF, ..., Maps, SM, ...

Documentation and examples[edit]

Since MediaWiki.org does not have Semantic Maps installed the usage documentation is placed on semantic-mediawiki.org, where live examples work and use can be made of the automatic documentation features of Semantic Maps.

Go to the Semantic Maps documentation or the Semantic Maps examples.

Gallery[edit]

Some screenshots of Semantic MediaWiki query results displayed on maps and map form inputs:

Sites that use Semantic Maps[edit]

Are you using Semantic Maps? Then be sure to add your wiki to the top of this list, and feel free to link your favourite Semantic Maps-using articles!

No map link provided

External links[edit]

See also[edit]

Language: English  • Nederlands