Semantic Maps: Difference between revisions
Line 27: | Line 27: | ||
=== Version 3.0.x === | === Version 3.0.x === | ||
Currently (Aug 2013), alpha | Currently (Aug 2013), alpha but should be working fine if you also upgrade all the dependencies. Same setup as 2.0.x. | ||
=== Version 2.0.x === | === Version 2.0.x === | ||
Line 34: | Line 34: | ||
* [https://www.mediawiki.org/wiki/Maps Maps 2.0.1] or above | * [https://www.mediawiki.org/wiki/Maps Maps 2.0.1] or above | ||
* [https://www.mediawiki.org/wiki/Extension:ParamProcessor ParamProcessor] 1.0 or above. This is a new version of Validator. | * [https://www.mediawiki.org/wiki/Extension:ParamProcessor ParamProcessor] 1.0 or above. This is a new version of Validator and it also keeps the validator extension directory. | ||
* [https://www.mediawiki.org/wiki/Extension:DataValues DataValues] (needed by ParamProcessor) | * [https://www.mediawiki.org/wiki/Extension:DataValues DataValues] (needed by ParamProcessor) | ||
* Mediawiki 1.18 or above | * Mediawiki 1.18 or above | ||
Line 45: | Line 45: | ||
* MediaWiki 1.17 or above | * MediaWiki 1.17 or above | ||
* [https://www.mediawiki.org/wiki/Validator Validator] later than 0.4.12 | * [https://www.mediawiki.org/wiki/Validator Validator] later than 0.4.12 | ||
== Installation notes == | |||
''''Not stable, I just write down the steps I am currently playing with'''' - 17:35, 16 August 2013 (CEST) | |||
=== Environment / SMW already installed === | |||
* Mediawiki version: [[Special:Version]] (this wiki) | |||
* SMW and SMF installed and working | |||
E.g. LocalSettings.php already includes something like: | |||
<course lang="PHP"> | |||
$smwgNamespaceIndex = 108; | |||
require_once( "$IP/extensions/Validator/Validator.php" ); | |||
include_once("$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php"); | |||
enableSemantics('edutechwiki.unige.ch'); // adjust to yours | |||
$smwgShowFactbox = SMW_FACTBOX_NONEMPTY; | |||
include_once("$IP/extensions/SemanticForms/SemanticForms.php"); | |||
// If one or more of your fields can contain internal links entered by users (e.g., "This is a [[cat]]") | |||
$smwgLinksInValues = true; | |||
// Semantic Drilldown. Needs yet another namespace | |||
$sdgNamespaceIndex = 118; | |||
include_once("$IP/extensions/SemanticDrilldown/SemanticDrilldown.php"); | |||
// Semantic Result Forms | |||
require_once("$IP/extensions/SemanticResultFormats/SemanticResultFormats.php"); | |||
// Semantic Forms Inpus | |||
require_once("$IP/extensions/SemanticFormsInputs/SemanticFormsInputs.php"); | |||
</source> | |||
=== Download === | |||
Keep a copy of directories that you will have to overwrite.... | |||
cd extensions | |||
cp -rp Validator Validator.save | |||
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/Maps.git | |||
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/SemanticMaps.git | |||
=== Edit LocalSettings.php === | |||
After Validator, SMW and SMF: | |||
<source lang="PHP"> | |||
# Maps | |||
require_once( "$IP/extensions/Maps/Maps.php" ); | |||
# Semantic Maps | |||
require_once( "$IP/extensions/SemanticMaps/SemanticMaps.php" ); | |||
</source> |
Revision as of 16:35, 16 August 2013
Category:MediaWiki extension Semantic Maps | |
---|---|
Extension name | Semantic Maps |
About this article / disclaimer | This is not official documentation |
Logo | |
Screenshot | |
Location of the main author | The following coordinate was not recognized: Geocoding failed. |
Coordinates of the main authors | Geocoding failed |
Developers | Jeroen De Dauw, others |
Licences | GPL v2+ |
Description | Semantic Maps is an extension to Semantic MediaWiki (SMW) that adds semantic capabilities to the Maps extension and adds the datatype Geographic coordinate. |
Mediawiki requirements | 1.17.* or greater |
Dependencies | Maps, Semantic MediaWiki, ParamProcessor |
Related extensions (documented here) | Semantic Forms, Semantic Forms Inputs, Semantic MediaWiki, Semantic Result Formats |
Related extensions | |
Discussion | |
Language support | |
Status | stable |
First release date | 2009/07/01 |
Last release date (as of 2013/08/15!) | 2012/12/13 |
Last version number | 2.0.1 (2012-12-13) |
Programming language | PHP |
Alternatives | |
Website | home page |
Publications | |
Support websites | web site |
Example websites | |
Last edited | 2013/08/15 |
“Semantic Maps is an extension to Semantic MediaWiki (SMW) that adds semantic capabilities to the Maps extension and adds the datatype Geographic coordinate. This includes the ability to add, edit, aggregate and visualize coordinate data stored through the Semantic MediaWiki extension. It is based on the Maps extension and replaces the earlier implementations Semantic Google Maps and Semantic Layers.” Semantic Maps, retrieved Aug 2013
Download, versions and dependencies
Semantic maps is based on other extensions. Typically, you must include Validator (or ParamProcessor), SMW, semantic Forms, Maps, and finally Semantic Maps.
As of August 2013, you have to make a choice between and older and a newer version. In addition, documentation for ParamProcessor isn't up-to-date, i.e. some confusion of what you need. Also read Wikidata/Notes/SMW and Wikidata
Version 3.0.x
Currently (Aug 2013), alpha but should be working fine if you also upgrade all the dependencies. Same setup as 2.0.x.
Version 2.0.x
Download and instructions: Extension:Semantic_Maps
- Maps 2.0.1 or above
- ParamProcessor 1.0 or above. This is a new version of Validator and it also keeps the validator extension directory.
- DataValues (needed by ParamProcessor)
- Mediawiki 1.18 or above
- PHP 5.3 or above
Version 1.0.5
Download and instructions: Extension:Semantic_Maps and the old documentation wiki
- Maps 1.0.5
- MediaWiki 1.17 or above
- Validator later than 0.4.12
Installation notes
'Not stable, I just write down the steps I am currently playing with' - 17:35, 16 August 2013 (CEST)
Environment / SMW already installed
- Mediawiki version: Special:Version (this wiki)
- SMW and SMF installed and working
E.g. LocalSettings.php already includes something like: <course lang="PHP"> $smwgNamespaceIndex = 108; require_once( "$IP/extensions/Validator/Validator.php" ); include_once("$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php"); enableSemantics('edutechwiki.unige.ch'); // adjust to yours $smwgShowFactbox = SMW_FACTBOX_NONEMPTY; include_once("$IP/extensions/SemanticForms/SemanticForms.php"); // If one or more of your fields can contain internal links entered by users (e.g., "This is a cat") $smwgLinksInValues = true; // Semantic Drilldown. Needs yet another namespace $sdgNamespaceIndex = 118; include_once("$IP/extensions/SemanticDrilldown/SemanticDrilldown.php"); // Semantic Result Forms require_once("$IP/extensions/SemanticResultFormats/SemanticResultFormats.php"); // Semantic Forms Inpus require_once("$IP/extensions/SemanticFormsInputs/SemanticFormsInputs.php"); </source>
Download
Keep a copy of directories that you will have to overwrite....
cd extensions cp -rp Validator Validator.save git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/Maps.git git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/SemanticMaps.git
Edit LocalSettings.php
After Validator, SMW and SMF:
# Maps
require_once( "$IP/extensions/Maps/Maps.php" );
# Semantic Maps
require_once( "$IP/extensions/SemanticMaps/SemanticMaps.php" );