Difference between revisions of "Template:Semantic Maps installation"

From Mapping on MediaWiki
Jump to: navigation, search
Line 1: Line 1:
 
{{Semantic Maps 0.6 dependencies|right}}
 
{{Semantic Maps 0.6 dependencies|right}}
  
Make sure you have [[Semantic MediaWiki|Semantic MediaWiki]], [[Maps|Maps]] and [[Validator|Validator]] successfully installed before proceeding with the installation. Once you have downloaded the code, place the 'SemanticMaps' directory within your MediaWiki 'extensions' directory. Then add the following code to your [http://www.mediawiki.org/wiki/Manual:LocalSettings.php LocalSettings.php] file after the lines that install Maps:
+
Make sure you have [[Semantic MediaWiki|Semantic MediaWiki]], [[Maps|Maps]] and [http://www.mediawiki.org/wiki/Extension:Validator Validator] successfully installed before proceeding with the installation. Once you have downloaded the code, place the 'SemanticMaps' directory within your MediaWiki 'extensions' directory. Then add the following code to your [http://www.mediawiki.org/wiki/Manual:LocalSettings.php LocalSettings.php] file after the lines that install Maps:
  
 
<source lang="php">
 
<source lang="php">

Revision as of 03:55, May 5, 2010

Semantic Maps 0.6 dependencies
Name Required Recommended Version Supported Versions
MediaWiki Yes 1.16 or above 1.15 or above, possibly older ones
Maps Yes 0.6 0.6
Validator Yes 0.3.4 0.3.4, 0.3.3, 0.3.2, 0.3.1, 0.3
Semantic MediaWiki Yes 1.5.1 or above 1.5.1 and above
Semantic Forms No 1.9 or above 1.9 or above, possibly older ones

Make sure you have Semantic MediaWiki, Maps and Validator successfully installed before proceeding with the installation. 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 after the lines that install Maps:

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

The placement of the inclusion of Maps and Semantic Maps needs to be at a certain position. Hold the following rules into account:

  • 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 (after SMW).

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

Once you have successfully installed Semantic Maps, please add your wiki to the sites that use Semantic Maps section on mediawiki.org.

Upgrading to 0.6

When upgrading to 0.6 from any previous version, you need to run the "database installation and upgrade" script in Special:SMWAdmin. Not doing this will result into fatal PHP errors. You will also need to run the "data repair and upgrade" script on the same page, which is required in order to store all coordinates so that Semantic Maps recognizes them. Not doing this will result into queries not returning any coordinates.

Upgrading from Semantic Google Maps

Semantic Maps 0.5.5 dependencies
Name Required Recommended Version Supported Versions
MediaWiki Yes 1.15 or above 1.15 or above, possibly older ones
Maps Yes 0.5.5 0.5.5
Validator Yes 0.2.2 0.2.2
Semantic MediaWiki Yes 1.5 (no newer ones!) 1.4.2 to 1.5, possibly older ones
Semantic Forms No 1.9 or above 1.9 or above, possibly older ones

If you have Semantic Google Maps installed, and want to upgrade to Semantic Maps, these are the steps you need to follow:

  • Remove the SemanticGoogleMaps directory from your extension directory.
  • Remove (when you use it) Google Geocoder in a similar fashion.
  • Upload both Maps and Semantic Maps to your extension directory.
  • Make sure your API keys are in the right place (the variable $wgGoogleMapsKey will need to be renamed, or copied, to $egGoogleMapsKey).
  • Change all #semantic_google_map parser functions with #display_point.
  • Add parameter names to the value of the #display_point calls.

After doing all these steps, you should be done. Maps and Semantic Maps are designed to be backward compatible with SGM, so all SGM code should work on Semantic Maps. If you encounter some problem though, please let the extension developers know.