5,418
edits
Changes
From Gramps
m
Below is a diagram of the Gramps data model (v4.1). As of October 2020, this model is reported to be valid for the v5.1 of Gramps. However, there is a minor `PlaceName` objects change in 4.2 to contain a string, language code and date range.
languages bar
{{languages|Gramps Data Model}}{{man note|Gramps data model (v4v5.12)}}
Gramps uses the pickle module to serialise object hierarchies and store them in the database.
Details of the pickle module can be found here:
* https://docs.python.org/3/library/pickle.html
The [[GEPS_045:_Place_Model_Enhancements|Places Model Enhancements]] planned for v5.3 are expected to have deeper changes. [[GEPS_045:_Place_Model_Enhancements#Documentation|One target for that Gramps Proposal]] includes this documentation.
[[File:GrampsDataModelGrampsDataModel_03.svg|1024px]]
== See also ==
* [[Using database API|Programmer's Introduction to the Gramps database API]]
** [https://gramps-project.org/wiki/index.php/File:GrampsDataModel.svg 4.1 version of this Gramps Data Model] (2014)
** [https://gramps-project.org/wiki/images/2/2e/API.svg UML (svg) diagram for Gramps 4.1.x API]<br />[[File:API.svg|3 revisions]] Created using the following [https://pylint.readthedocs.io/en/latest/pyreverse.html PyLint] command: <code>pyreverse -A -S $HOME/gramps/tree/master/gramps/gen/lib/*.py -o jpeg</code>
* [https://sourceforge.net/p/gramps/mailman/message/32882646/ Gramps data model] - discussion