Skip to content

Exports in a customizable way the family trees of historical characters based on Wikidat

License

Notifications You must be signed in to change notification settings

lmallez/wikidata-tree-generator

Repository files navigation

Wikidata Tree Generator

Requirements

This project has been realized with python 3.8.

Install dependencies : python3 -m pip install -r requirements.txt

Usage

python3 main.py {{configuration file}} {{wikidata entity id}} {{output file}}

Explanations

In order to generate a family tree the program uses the mother, father and child properties of wikidata.

The tree can be generated in different ways:

  • Ancestors : load the ancestors of the character.
  • Descendants: charges the character's descendants
  • Classic : loads the ancestors and descendants of the character
  • Full: Loads parents and children with all the characters in the tree (can take a long time)

Examples

All the graphs shown here are generated in the gramps software which allows to import the gedcom made by the program.

Clovis (descendants & load_men_children)

python3 main.py samples/Q82339.configuration.yaml Q82339 samples/Q82339.ged

Configuration Output

img

John F. Kennedy (classic)

python3 main.py samples/Q9696.1.configuration.yaml Q9696 samples/Q9696.1.ged

Configuration Output

img

John F. Kennedy (full)

python3 main.py samples/Q9696.2.configuration.yaml Q9696 samples/Q9696.2.ged

Configuration Output

img

TODO

  • error management
  • add more character properties
  • add more event (wedding)
  • add references

About

Exports in a customizable way the family trees of historical characters based on Wikidat

Topics

Resources

License

Stars

Watchers

Forks

Languages