Extension:Semantic Genealogy

From mediawiki.org
MediaWiki extensions manual
Semantic Genealogy
Release status: unmaintained
Implementation Special page
Description Provides the ability to view genealogy trees and export GEDCOM files
Latest version 0.3.0 (2017-08-11)
MediaWiki 1.23+
PHP 5.4+
Database changes No
License GNU General Public License 2.0 or later

  • $wgGenealogicalProperties
Translate the Semantic Genealogy extension if it is available at translatewiki.net

The Semantic Genealogy extension provides the ability to view genealogy trees and export GEDCOM files.


Having MediaWiki (version 1.23 or higher), Semantic MediaWiki (version 1.7 or higher) installed is a precondition for the Semantic Genealogy extension. The code will not work without them.

  • Download and place the file(s) in a directory called SemanticGenealogy in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    require_once "$IP/extensions/SemanticGenealogy/SemanticGenealogy.php";
  • Configure as required.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.


In your "LocalSettings.php" add e.g. the following statement after the inclusion of this extension:

$wgGenealogicalProperties = [
	'givenname' => 'Vorname',
	'surname' => 'Nachname',
	'nickname' => 'Kosename',
	'sex' => 'Geschlecht',
	'birthdate' => 'GebDatum',
	'birthplace' => 'GebOrt',
	'deathdate' => 'TodDatum',
	'deathplace' => 'TodOrt',
	'father' => 'Vater',
	'mother' => 'Mutter'

Replace the field values with the appropriate field names in your wiki. (The keywords in the second column probably need to be capitalized, so as to match the properties view of the pages.) The most importing obviously is to define the 'father' and 'mother' relationships correctly.


Go to special page "Special:FamilyTree", select a person and display either a tree of ancestors or descendants or a relationship to another person.

See also[edit]